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

#include <lex_token.h>

Collaboration diagram for TinyXPath::lex_token:
Collaboration graph
[legend]

Public Member Functions

 lex_token (lexico l_in_enum, const _byte_ *bp_in_value, unsigned u_in_size)
 constructor More...
 
void v_set_next (lex_token *ltp_in_next)
 set the next element in list More...
 
void v_set_prev (lex_token *ltp_in_prev)
 set the previous element in list More...
 
 ~ lex_token ()
 destructor. doesn't destroys next in list More...
 
lex_tokenltp_get_next () const
 get next in list More...
 
lex_tokenltp_get_prev () const
 get next in list More...
 
lex_tokenltp_get_next (int i_nb)
 Return the next i-th element in the list. More...
 
lexico lex_get_value () const
 return the value of a lexical element More...
 
void v_set (lexico lex_in, const char *cp_repre)
 Set the string value of a lexical element. More...
 
const char * cp_get_literal ()
 return the string value of a lexical element More...
 
bool o_is_valid () const
 check if the lexical element is valid More...
 

Private Attributes

char * cp_value
 Representation. More...
 
lexico l_enum
 lexical value More...
 
lex_tokenltp_next
 pointer to next element More...
 
lex_tokenltp_prev
 

Detailed Description

A lexical token stream, part of a single linked list

Constructor & Destructor Documentation

◆ lex_token()

TinyXPath::lex_token::lex_token ( lexico  l_in_enum,
const _byte_ bp_in_value,
unsigned  u_in_size 
)
inline

constructor

◆ ~ lex_token()

TinyXPath::lex_token::~ lex_token ( )
inline

destructor. doesn't destroys next in list

References cp_value.

Member Function Documentation

◆ v_set_next()

void TinyXPath::lex_token::v_set_next ( lex_token ltp_in_next)
inline

set the next element in list

◆ v_set_prev()

void TinyXPath::lex_token::v_set_prev ( lex_token ltp_in_prev)
inline

set the previous element in list

◆ ltp_get_next() [1/2]

lex_token* TinyXPath::lex_token::ltp_get_next ( ) const
inline

get next in list

References ltp_next.

Referenced by ltp_get_next().

Here is the caller graph for this function:

◆ ltp_get_prev()

lex_token* TinyXPath::lex_token::ltp_get_prev ( ) const
inline

get next in list

References ltp_prev.

◆ ltp_get_next() [2/2]

lex_token* TinyXPath::lex_token::ltp_get_next ( int  i_nb)
inline

Return the next i-th element in the list.

References ltp_get_next(), and o_is_valid().

Here is the call graph for this function:

◆ lex_get_value()

lexico TinyXPath::lex_token::lex_get_value ( ) const
inline

return the value of a lexical element

References l_enum.

◆ v_set()

void TinyXPath::lex_token::v_set ( lexico  lex_in,
const char *  cp_repre 
)
inline

Set the string value of a lexical element.

References cp_value.

◆ cp_get_literal()

const char* TinyXPath::lex_token::cp_get_literal ( )
inline

return the string value of a lexical element

References cp_value.

◆ o_is_valid()

bool TinyXPath::lex_token::o_is_valid ( ) const
inline

check if the lexical element is valid

References TinyXPath::lex_null.

Referenced by ltp_get_next().

Here is the caller graph for this function:

Member Data Documentation

◆ cp_value

char* TinyXPath::lex_token::cp_value
private

Representation.

Referenced by cp_get_literal(), v_set(), and ~ lex_token().

◆ l_enum

lexico TinyXPath::lex_token::l_enum
private

lexical value

Referenced by lex_get_value().

◆ ltp_next

lex_token* TinyXPath::lex_token::ltp_next
private

pointer to next element

Referenced by ltp_get_next().

◆ ltp_prev

lex_token * TinyXPath::lex_token::ltp_prev
private

Referenced by ltp_get_prev().


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