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

TinyXPath::expression_result Class Reference

Class holding the result of an expression (e_expression_type). More...

#include <xpath_expression.h>

Inheritance diagram for TinyXPath::expression_result:

Inheritance graph
[legend]
Collaboration diagram for TinyXPath::expression_result:

Collaboration graph
[legend]
List of all members.

Public Member Functions

 expression_result ()
 Dummy constructor.

 expression_result (const expression_result &er_2)
 Copy constructor.

expression_resultoperator= (const expression_result &er_2)
void v_set_bool (bool o_in)
 Set expression_result to a bool.

void v_set_int (int i_in)
 Set expression_result to an int.

void v_set_string (const char *cp_in)
 Set expression_result to a string.

void v_set_string (TIXML_STRING S_in)
 Set expression_result to a string.

void v_set_double (double d_in)
 Set expression_result to a double.

void v_set_comment (const char *cp_in)
 Set the comment associated with a stack element. This is for debuging.

int i_get_int ()
 Get the expression_result as an int.

TIXML_STRING S_get_string ()
 Get the expression_result as a string.

const char * cp_get_string ()
 Get the expression_result as a string.

bool o_get_bool ()
 Get the expression_result as a bool
The boolean function converts its argument to a boolean as follows: - a number is true if and only if it is neither positive or negative zero nor NaN - a node-set is true if and only if it is non-empty - a string is true if and only if its length is non-zero - an object of a type other than the four basic types is converted to a boolean in a way that is dependent on that type.

double d_get_double ()
 Get the expression_result as a double.

void v_set_node_set (node_set *nsp_source)
 Set the expression_result as a node set.

void v_set_node_set (TiXmlNode *XNp_root)
 Set the expression_result as a node set.

void v_set_node_set (TiXmlNode *XNp_root, const char *cp_lookup)
 Set the expression_result as a node set.

void v_set_node_set_recursive (TiXmlNode *XNp_root)
 Set the expression_result as a node set.

void v_set_node_set_recursive (TiXmlNode *XNp_root, const char *cp_lookup)
 Set the expression_result as a node set.

void v_set_node_set ()
 Set the expression_result as an empty node set.

node_setnsp_get_node_set ()
 Get the expression_result as a node set.

void v_dump ()
 Debug function to print an expression_result to stdout.


Public Attributes

e_expression_type e_type
 expression type


Protected Attributes

TIXML_STRING S_content
 String content.

TIXML_STRING S_comment
 Comment. This is for debuging only, for stack dump.

bool o_content
 bool content

int i_content
 integer content

double d_content
 double content

node_set ns_set
 node set content


Detailed Description

Class holding the result of an expression (e_expression_type).


Constructor & Destructor Documentation

TinyXPath::expression_result::expression_result  )  [inline]
 

Dummy constructor.

TinyXPath::expression_result::expression_result const expression_result er_2  )  [inline]
 

Copy constructor.


Member Function Documentation

const char* TinyXPath::expression_result::cp_get_string  )  [inline]
 

Get the expression_result as a string.

double TinyXPath::expression_result::d_get_double  ) 
 

Get the expression_result as a double.

int TinyXPath::expression_result::i_get_int  ) 
 

Get the expression_result as an int.

node_set* TinyXPath::expression_result::nsp_get_node_set  )  [inline]
 

Get the expression_result as a node set.

bool TinyXPath::expression_result::o_get_bool  ) 
 

Get the expression_result as a bool
The boolean function converts its argument to a boolean as follows: - a number is true if and only if it is neither positive or negative zero nor NaN - a node-set is true if and only if it is non-empty - a string is true if and only if its length is non-zero - an object of a type other than the four basic types is converted to a boolean in a way that is dependent on that type.

expression_result& TinyXPath::expression_result::operator= const expression_result er_2  )  [inline]
 

TIXML_STRING TinyXPath::expression_result::S_get_string  ) 
 

Get the expression_result as a string.

void TinyXPath::expression_result::v_dump  ) 
 

Debug function to print an expression_result to stdout.

Reimplemented in TinyXPath::result_and_next.

void TinyXPath::expression_result::v_set_bool bool  o_in  )  [inline]
 

Set expression_result to a bool.

void TinyXPath::expression_result::v_set_comment const char *  cp_in  )  [inline]
 

Set the comment associated with a stack element. This is for debuging.

void TinyXPath::expression_result::v_set_double double  d_in  )  [inline]
 

Set expression_result to a double.

void TinyXPath::expression_result::v_set_int int  i_in  )  [inline]
 

Set expression_result to an int.

void TinyXPath::expression_result::v_set_node_set  )  [inline]
 

Set the expression_result as an empty node set.

void TinyXPath::expression_result::v_set_node_set TiXmlNode XNp_root,
const char *  cp_lookup
[inline]
 

Set the expression_result as a node set.

void TinyXPath::expression_result::v_set_node_set TiXmlNode XNp_root  )  [inline]
 

Set the expression_result as a node set.

void TinyXPath::expression_result::v_set_node_set node_set nsp_source  )  [inline]
 

Set the expression_result as a node set.

void TinyXPath::expression_result::v_set_node_set_recursive TiXmlNode XNp_root,
const char *  cp_lookup
[inline]
 

Set the expression_result as a node set.

void TinyXPath::expression_result::v_set_node_set_recursive TiXmlNode XNp_root  )  [inline]
 

Set the expression_result as a node set.

void TinyXPath::expression_result::v_set_string TIXML_STRING  S_in  )  [inline]
 

Set expression_result to a string.

void TinyXPath::expression_result::v_set_string const char *  cp_in  )  [inline]
 

Set expression_result to a string.


Member Data Documentation

double TinyXPath::expression_result::d_content [protected]
 

double content

e_expression_type TinyXPath::expression_result::e_type
 

expression type

int TinyXPath::expression_result::i_content [protected]
 

integer content

node_set TinyXPath::expression_result::ns_set [protected]
 

node set content

bool TinyXPath::expression_result::o_content [protected]
 

bool content

TIXML_STRING TinyXPath::expression_result::S_comment [protected]
 

Comment. This is for debuging only, for stack dump.

TIXML_STRING TinyXPath::expression_result::S_content [protected]
 

String content.


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