Main Page | Namespace List | Class Hierarchy | Class List | File List | Namespace Members | Class Members | File Members | Related Pages

TinyXPath::xpath_stack Class Reference

The XPath execution stack
All elements are result_and_next elements. More...

#include <xpath_stack.h>

Collaboration diagram for TinyXPath::xpath_stack:

Collaboration graph
[legend]
List of all members.

Public Member Functions

 xpath_stack ()
 Constructor.

 ~xpath_stack ()
 Destructor.

void v_push (expression_result er_res)
 Push a new element on the stack.

void v_push_int (int i_elem, const char *cp_comment=NULL)
 Push an integer on the stack.

void v_push_bool (bool o_in)
 Push a bool on the stack.

void v_push_string (TIXML_STRING S_in)
 Push a string on the stack.

void v_push_double (double d_elem)
 Push a double on the stack.

void v_push_node_set (node_set *nsp_ptr)
 Push a node_set on the stack.

expression_resulterp_top ()
 Retrieve top expression from the stack.

int i_top_int ()
 Query the top integer.

void v_pop (unsigned u_nb=1)
 Pop N element from the stack.

int i_pop_int ()
 Pops the top integer from the stack.

TIXML_STRING S_pop_string ()
 Pops the top string from the stack.

bool o_pop_bool ()
 Pops the top bool from the stack.

node_set ns_pop_node_set ()
 Pops the top node_set from the stack.

unsigned u_get_size ()
 Return the stack's size.

expression_resulterp_previous (unsigned u_nb)
 Retrieve a previous expression from the stack.

void v_dump ()
 Dumps the content of the stack to stdout.


Protected Member Functions

void v_pop_one ()
 Pop one element from the stack.


Protected Attributes

result_and_nextrnp_first
 First element in the stack.

unsigned u_size
 Stack size.


Detailed Description

The XPath execution stack
All elements are result_and_next elements.


Constructor & Destructor Documentation

TinyXPath::xpath_stack::xpath_stack  ) 
 

Constructor.

TinyXPath::xpath_stack::~xpath_stack  ) 
 

Destructor.


Member Function Documentation

expression_result * TinyXPath::xpath_stack::erp_previous unsigned  u_nb  ) 
 

Retrieve a previous expression from the stack.

Parameters:
u_nb  Nb of items to skip.

expression_result * TinyXPath::xpath_stack::erp_top  ) 
 

Retrieve top expression from the stack.

int TinyXPath::xpath_stack::i_pop_int  ) 
 

Pops the top integer from the stack.

int TinyXPath::xpath_stack::i_top_int  ) 
 

Query the top integer.

node_set TinyXPath::xpath_stack::ns_pop_node_set  ) 
 

Pops the top node_set from the stack.

bool TinyXPath::xpath_stack::o_pop_bool  ) 
 

Pops the top bool from the stack.

TIXML_STRING TinyXPath::xpath_stack::S_pop_string  ) 
 

Pops the top string from the stack.

unsigned TinyXPath::xpath_stack::u_get_size  )  [inline]
 

Return the stack's size.

void TinyXPath::xpath_stack::v_dump  ) 
 

Dumps the content of the stack to stdout.

void TinyXPath::xpath_stack::v_pop unsigned  u_nb = 1  ) 
 

Pop N element from the stack.

void TinyXPath::xpath_stack::v_pop_one  )  [protected]
 

Pop one element from the stack.

void TinyXPath::xpath_stack::v_push expression_result  er_res  ) 
 

Push a new element on the stack.

void TinyXPath::xpath_stack::v_push_bool bool  o_in  ) 
 

Push a bool on the stack.

void TinyXPath::xpath_stack::v_push_double double  d_elem  ) 
 

Push a double on the stack.

void TinyXPath::xpath_stack::v_push_int int  i_elem,
const char *  cp_comment = NULL
 

Push an integer on the stack.

void TinyXPath::xpath_stack::v_push_node_set node_set nsp_ptr  ) 
 

Push a node_set on the stack.

void TinyXPath::xpath_stack::v_push_string TIXML_STRING  S_in  ) 
 

Push a string on the stack.


Member Data Documentation

result_and_next* TinyXPath::xpath_stack::rnp_first [protected]
 

First element in the stack.

unsigned TinyXPath::xpath_stack::u_size [protected]
 

Stack size.


The documentation for this class was generated from the following files:
Generated for TinyXPath by doxygen SourceForge Logo