ddc
Public Member Functions | Protected Attributes | List of all members
TinyXPath::action_store Class Reference

#include <action_store.h>

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

Public Member Functions

 action_store ()
 constructor More...
 
 ~ action_store ()
 
void v_add (int i_1, int i_2, int i_3, const char *cp_string)
 add an element on the placeholder, given its details More...
 
int i_get_size ()
 Get the current nb of stored elements. More...
 
void v_get (int i_position, int &i_1, int &i_2, int &i_3, TiXmlString &S_out)
 Get one element from the placeholder. More...
 
int i_get_position ()
 Get the current position. See i_position. More...
 
void v_set_position (int i_where)
 Set the position to an arbitrary value. See i_position. More...
 
void v_dec_position ()
 Decrement the position. See i_position. More...
 

Protected Attributes

int i_size
 Used number of elements. More...
 
int i_position
 
int i_alloc
 Nb of allocated elements. More...
 
action_item ** aipp_list
 Pointers to the allocated elements. More...
 

Detailed Description

The XPath action stack. Not a stack per se, only a placeholder
It's able to store quadruplets (3 integers and a string)
It allocates them by set of 100

Constructor & Destructor Documentation

◆ action_store()

TinyXPath::action_store::action_store ( )

constructor

References aipp_list, i_alloc, i_position, i_size, and ~ action_store().

Here is the call graph for this function:

◆ ~ action_store()

TinyXPath::action_store::~ action_store ( )

Referenced by action_store().

Here is the caller graph for this function:

Member Function Documentation

◆ v_add()

void TinyXPath::action_store::v_add ( int  i_1,
int  i_2,
int  i_3,
const char *  cp_string 
)

add an element on the placeholder, given its details

References aipp_list, i_alloc, TinyXPath::i_alloc_size, and i_size.

◆ i_get_size()

int TinyXPath::action_store::i_get_size ( )
inline

Get the current nb of stored elements.

References TIXML_STRING, and TinyXPath::action_item::v_get().

Here is the call graph for this function:

◆ v_get()

void TinyXPath::action_store::v_get ( int  i_position,
int &  i_1,
int &  i_2,
int &  i_3,
TiXmlString S_out 
)

Get one element from the placeholder.

References aipp_list, and i_size.

◆ i_get_position()

int TinyXPath::action_store::i_get_position ( )
inline

Get the current position. See i_position.

◆ v_set_position()

void TinyXPath::action_store::v_set_position ( int  i_where)
inline

Set the position to an arbitrary value. See i_position.

◆ v_dec_position()

void TinyXPath::action_store::v_dec_position ( )
inline

Decrement the position. See i_position.

Member Data Documentation

◆ i_size

int TinyXPath::action_store::i_size
protected

Used number of elements.

Referenced by action_store(), v_add(), and v_get().

◆ i_position

int TinyXPath::action_store::i_position
protected

This value is informative and is not related to the nb of elements in the placeholder

Referenced by action_store().

◆ i_alloc

int TinyXPath::action_store::i_alloc
protected

Nb of allocated elements.

Referenced by action_store(), and v_add().

◆ aipp_list

action_item** TinyXPath::action_store::aipp_list
protected

Pointers to the allocated elements.

Referenced by action_store(), v_add(), and v_get().


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