ddc
Public Member Functions | Private Attributes | List of all members
TinyXPath::byte_stream Class Reference

#include <byte_stream.h>

Inheritance diagram for TinyXPath::byte_stream:
Inheritance graph
[legend]

Public Member Functions

 byte_stream (const char *cp_in)
 constructor More...
 
 ~ byte_stream ()
 destructor More...
 
_byte_ b_top ()
 Returns the byte on top. More...
 
_byte_ b_pop ()
 Consumes one byte. More...
 
bool o_is_valid ()
 true if there are still some byte to consume More...
 
unsigned u_remain ()
 number of bytes still to consume More...
 
_byte_ b_forward (unsigned u_nb_char)
 peek a byte a little further down the stream More...
 
const _byte_bp_get_backward (unsigned u_amount)
 get a byte backward pointer to the stream More...
 

Private Attributes

unsigned u_length
 Length of the total string, + 1. More...
 
_byte_bp_in
 Total string. More...
 
_byte_bp_current
 Current read position. More...
 
_byte_bp_end
 First invalid position. More...
 
bool o_valid
 true when there are still some byte to read More...
 

Detailed Description

A Byte stream class, very crude. The only purpose of this class is to walk in a byte stream, available at construction time.

Constructor & Destructor Documentation

◆ byte_stream()

TinyXPath::byte_stream::byte_stream ( const char *  cp_in)
inline

constructor

References bp_end, bp_in, and u_length.

◆ ~ byte_stream()

TinyXPath::byte_stream::~ byte_stream ( )
inline

destructor

References bp_in.

Member Function Documentation

◆ b_top()

_byte_ TinyXPath::byte_stream::b_top ( )
inline

Returns the byte on top.

References bp_current.

Referenced by TinyXPath::xpath_stream::v_lexico_decode().

Here is the caller graph for this function:

◆ b_pop()

_byte_ TinyXPath::byte_stream::b_pop ( )
inline

Consumes one byte.

References bp_end, and o_is_valid().

Referenced by TinyXPath::xpath_stream::v_lexico_decode().

Here is the call graph for this function:
Here is the caller graph for this function:

◆ o_is_valid()

bool TinyXPath::byte_stream::o_is_valid ( )
inline

true if there are still some byte to consume

References o_valid.

Referenced by b_pop().

Here is the caller graph for this function:

◆ u_remain()

unsigned TinyXPath::byte_stream::u_remain ( )
inline

number of bytes still to consume

References bp_current.

Referenced by b_forward().

Here is the caller graph for this function:

◆ b_forward()

_byte_ TinyXPath::byte_stream::b_forward ( unsigned  u_nb_char)
inline

peek a byte a little further down the stream

References u_remain().

Referenced by TinyXPath::xpath_stream::v_lexico_decode().

Here is the call graph for this function:
Here is the caller graph for this function:

◆ bp_get_backward()

const _byte_* TinyXPath::byte_stream::bp_get_backward ( unsigned  u_amount)
inline

get a byte backward pointer to the stream

Referenced by TinyXPath::xpath_stream::v_lexico_decode().

Here is the caller graph for this function:

Member Data Documentation

◆ u_length

unsigned TinyXPath::byte_stream::u_length
private

Length of the total string, + 1.

Referenced by byte_stream().

◆ bp_in

_byte_* TinyXPath::byte_stream::bp_in
private

Total string.

Referenced by byte_stream(), and ~ byte_stream().

◆ bp_current

_byte_* TinyXPath::byte_stream::bp_current
private

Current read position.

Referenced by b_top(), and u_remain().

◆ bp_end

_byte_* TinyXPath::byte_stream::bp_end
private

First invalid position.

Referenced by b_pop(), and byte_stream().

◆ o_valid

bool TinyXPath::byte_stream::o_valid
private

true when there are still some byte to read

Referenced by o_is_valid().


The documentation for this class was generated from the following file: