Public Member Functions | Public Attributes | Protected Attributes

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

Public Attributes

Protected Attributes


Detailed Description

Class holding the result of an expression (e_expression_type).


Constructor & Destructor Documentation

TinyXPath::expression_result::expression_result (  )  [inline]

Dummy constructor.

References d_content, e_type, i_content, and o_content.

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

Copy constructor.


Member Function Documentation

expression_result& TinyXPath::expression_result::operator= ( const expression_result er_2  )  [inline]
void TinyXPath::expression_result::v_set_bool ( bool  o_in  )  [inline]

Set expression_result to a bool.

References e_type, and o_content.

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

Set expression_result to an int.

References e_type, and i_content.

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

Set expression_result to a string.

References e_type, and S_content.

void TinyXPath::expression_result::v_set_string ( TiXmlString  S_in  )  [inline]

Set expression_result to a string.

References e_type, and S_content.

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

Set expression_result to a double.

References d_content, and e_type.

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

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

int TinyXPath::expression_result::i_get_int (  ) 

Get the expression_result as an int.

References d_content, TinyXPath::e_bool, TinyXPath::e_double, TinyXPath::e_int, e_type, i_content, o_content, and S_get_string().

Referenced by S_get_string().

Here is the call graph for this function:

Here is the caller graph for this function:

TiXmlString TinyXPath::expression_result::S_get_string (  ) 
const char* TinyXPath::expression_result::cp_get_string (  )  [inline]

Get the expression_result as a string.

References TinyXPath::e_string, e_type, and S_content.

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

References d_get_double(), TinyXPath::e_bool, TinyXPath::e_double, TinyXPath::e_int, TinyXPath::e_node_set, TinyXPath::e_string, e_type, i_content, nsp_get_node_set(), o_content, and S_content.

Referenced by S_get_string().

Here is the call graph for this function:

Here is the caller graph for this function:

double TinyXPath::expression_result::d_get_double (  ) 

Get the expression_result as a double.

References d_content, TinyXPath::e_bool, TinyXPath::e_double, TinyXPath::e_int, e_type, i_content, o_content, and S_get_string().

Referenced by o_get_bool(), and S_get_string().

Here is the call graph for this function:

Here is the caller graph for this function:

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

Set the expression_result as a node set.

References e_type, and ns_set.

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

Set the expression_result as a node set.

References e_type, and ns_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.

References e_type, and ns_set.

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

Set the expression_result as a node set.

References e_type, and ns_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.

References e_type, and ns_set.

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

Set the expression_result as an empty node set.

References e_type.

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

Get the expression_result as a node set.

References ns_set.

Referenced by o_get_bool(), and S_get_string().

Here is the caller graph for this function:


Member Data Documentation

String content.

Referenced by cp_get_string(), o_get_bool(), operator=(), S_get_string(), and v_set_string().


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