Class holding the result of an expression (e_expression_type). More...
#include <xpath_expression.h>
Class holding the result of an expression (e_expression_type).
TinyXPath::expression_result::expression_result | ( | ) | [inline] |
TinyXPath::expression_result::expression_result | ( | const expression_result & | er_2 | ) | [inline] |
Copy constructor.
expression_result& TinyXPath::expression_result::operator= | ( | const expression_result & | er_2 | ) | [inline] |
References d_content, TinyXPath::e_bool, TinyXPath::e_double, TinyXPath::e_int, TinyXPath::e_node_set, TinyXPath::e_string, e_type, i_content, ns_set, o_content, and S_content.
void TinyXPath::expression_result::v_set_bool | ( | bool | o_in | ) | [inline] |
Set expression_result to a bool.
void TinyXPath::expression_result::v_set_int | ( | int | i_in | ) | [inline] |
Set expression_result to an int.
void TinyXPath::expression_result::v_set_string | ( | const char * | cp_in | ) | [inline] |
Set expression_result to a string.
void TinyXPath::expression_result::v_set_string | ( | TiXmlString | S_in | ) | [inline] |
Set expression_result to a string.
void TinyXPath::expression_result::v_set_double | ( | double | d_in | ) | [inline] |
Set expression_result to a double.
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().
TiXmlString TinyXPath::expression_result::S_get_string | ( | ) |
Get the expression_result as a string.
References d_get_double(), TinyXPath::e_bool, TinyXPath::e_double, TinyXPath::e_int, TinyXPath::e_node_set, TinyXPath::e_string, e_type, i_get_int(), nsp_get_node_set(), o_get_bool(), S_content, TIXML_STRING, TinyXPath::v_assign_double_to_string(), and TinyXPath::v_assign_int_to_string().
Referenced by d_get_double(), and i_get_int().
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:
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().
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().
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 | ( | TiXmlNode * | XNp_root | ) | [inline] |
Set the expression_result as a 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_recursive | ( | TiXmlNode * | XNp_root | ) | [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 | ( | ) | [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().
TiXmlString TinyXPath::expression_result::S_content [protected] |
String content.
Referenced by cp_get_string(), o_get_bool(), operator=(), S_get_string(), and v_set_string().
bool TinyXPath::expression_result::o_content [protected] |
bool content
Referenced by d_get_double(), expression_result(), i_get_int(), o_get_bool(), operator=(), and v_set_bool().
int TinyXPath::expression_result::i_content [protected] |
integer content
Referenced by d_get_double(), expression_result(), i_get_int(), o_get_bool(), operator=(), and v_set_int().
double TinyXPath::expression_result::d_content [protected] |
double content
Referenced by d_get_double(), expression_result(), i_get_int(), operator=(), and v_set_double().
node_set TinyXPath::expression_result::ns_set [protected] |
node set content
Referenced by nsp_get_node_set(), operator=(), v_set_node_set(), and v_set_node_set_recursive().
expression type
Referenced by cp_get_string(), d_get_double(), expression_result(), i_get_int(), o_get_bool(), operator=(), S_get_string(), v_set_bool(), v_set_double(), v_set_int(), v_set_node_set(), v_set_node_set_recursive(), and v_set_string().