CARLA
Loading...
Searching...
No Matches
xpath_ast_node Class Reference

Public Member Functions

bool eval_boolean (const xpath_context &c, const xpath_stack &stack)
xpath_node_set_raw eval_node_set (const xpath_context &c, const xpath_stack &stack, nodeset_eval_t eval)
double eval_number (const xpath_context &c, const xpath_stack &stack)
xpath_string eval_string (const xpath_context &c, const xpath_stack &stack)
xpath_string eval_string_concat (const xpath_context &c, const xpath_stack &stack)
bool is_posinv_expr () const
bool is_posinv_step () const
void optimize (xpath_allocator *alloc)
void optimize_self (xpath_allocator *alloc)
xpath_value_type rettype () const
void set_next (xpath_ast_node *value)
void set_right (xpath_ast_node *value)
 xpath_ast_node (ast_type_t type, xpath_ast_node *left, axis_t axis, nodetest_t test, const char_t *contents)
 xpath_ast_node (ast_type_t type, xpath_ast_node *left, xpath_ast_node *right, predicate_t test)
 xpath_ast_node (ast_type_t type, xpath_value_type rettype_, const char_t *value)
 xpath_ast_node (ast_type_t type, xpath_value_type rettype_, double value)
 xpath_ast_node (ast_type_t type, xpath_value_type rettype_, xpath_ast_node *left=0, xpath_ast_node *right=0)
 xpath_ast_node (ast_type_t type, xpath_value_type rettype_, xpath_variable *value)

Private Member Functions

void apply_predicate (xpath_node_set_raw &ns, size_t first, const xpath_stack &stack, bool once)
void apply_predicates (xpath_node_set_raw &ns, size_t first, const xpath_stack &stack, nodeset_eval_t eval)
xpath_ast_node & operator= (const xpath_ast_node &)
template<class T>
xpath_node_set_raw step_do (const xpath_context &c, const xpath_stack &stack, nodeset_eval_t eval, T v)
template<class T>
void step_fill (xpath_node_set_raw &ns, const xpath_node &xn, xpath_allocator *alloc, bool once, T v)
template<class T>
void step_fill (xpath_node_set_raw &ns, xml_attribute_struct *a, xml_node_struct *p, xpath_allocator *alloc, bool once, T v)
template<class T>
void step_fill (xpath_node_set_raw &ns, xml_node_struct *n, xpath_allocator *alloc, bool once, T)
bool step_push (xpath_node_set_raw &ns, xml_attribute_struct *a, xml_node_struct *parent, xpath_allocator *alloc)
bool step_push (xpath_node_set_raw &ns, xml_node_struct *n, xpath_allocator *alloc)
 xpath_ast_node (const xpath_ast_node &)

Static Private Member Functions

static void apply_predicate_boolean (xpath_node_set_raw &ns, size_t first, xpath_ast_node *expr, const xpath_stack &stack, bool once)
static void apply_predicate_number (xpath_node_set_raw &ns, size_t first, xpath_ast_node *expr, const xpath_stack &stack, bool once)
static void apply_predicate_number_const (xpath_node_set_raw &ns, size_t first, xpath_ast_node *expr, const xpath_stack &stack)
template<class Comp>
static bool compare_eq (xpath_ast_node *lhs, xpath_ast_node *rhs, const xpath_context &c, const xpath_stack &stack, const Comp &comp)
template<class Comp>
static bool compare_rel (xpath_ast_node *lhs, xpath_ast_node *rhs, const xpath_context &c, const xpath_stack &stack, const Comp &comp)
static bool eval_once (xpath_node_set::type_t type, nodeset_eval_t eval)

Private Attributes

char _axis
union xpath_ast_node:: { ... }  _data
xpath_ast_node * _left
xpath_ast_node * _next
char _rettype
xpath_ast_node * _right
char _test
char _type

Detailed Description

Definition at line 9380 of file pugixml.cpp.

Constructor & Destructor Documentation

◆ xpath_ast_node() [1/7]

◆ xpath_ast_node() [2/7]

xpath_ast_node::xpath_ast_node ( ast_type_t type,
xpath_value_type rettype_,
const char_t * value )
inline

Definition at line 10130 of file pugixml.cpp.

References _axis, _data, _left, _next, _rettype, _right, _test, _type, and ast_string_constant.

◆ xpath_ast_node() [3/7]

xpath_ast_node::xpath_ast_node ( ast_type_t type,
xpath_value_type rettype_,
double value )
inline

Definition at line 10137 of file pugixml.cpp.

References _axis, _data, _left, _next, _rettype, _right, _test, _type, and ast_number_constant.

◆ xpath_ast_node() [4/7]

xpath_ast_node::xpath_ast_node ( ast_type_t type,
xpath_value_type rettype_,
xpath_variable * value )
inline

Definition at line 10144 of file pugixml.cpp.

References _axis, _data, _left, _next, _rettype, _right, _test, _type, and ast_variable.

◆ xpath_ast_node() [5/7]

xpath_ast_node::xpath_ast_node ( ast_type_t type,
xpath_value_type rettype_,
xpath_ast_node * left = 0,
xpath_ast_node * right = 0 )
inline

Definition at line 10151 of file pugixml.cpp.

References _axis, _left, _next, _rettype, _right, _test, _type, and xpath_ast_node().

◆ xpath_ast_node() [6/7]

xpath_ast_node::xpath_ast_node ( ast_type_t type,
xpath_ast_node * left,
axis_t axis,
nodetest_t test,
const char_t * contents )
inline

◆ xpath_ast_node() [7/7]

xpath_ast_node::xpath_ast_node ( ast_type_t type,
xpath_ast_node * left,
xpath_ast_node * right,
predicate_t test )
inline

Definition at line 10163 of file pugixml.cpp.

References _axis, _left, _next, _rettype, _right, _test, _type, ast_filter, ast_predicate, and xpath_ast_node().

Member Function Documentation

◆ apply_predicate()

void xpath_ast_node::apply_predicate ( xpath_node_set_raw & ns,
size_t first,
const xpath_stack & stack,
bool once )
inlineprivate

◆ apply_predicate_boolean()

void xpath_ast_node::apply_predicate_boolean ( xpath_node_set_raw & ns,
size_t first,
xpath_ast_node * expr,
const xpath_stack & stack,
bool once )
inlinestaticprivate

◆ apply_predicate_number()

void xpath_ast_node::apply_predicate_number ( xpath_node_set_raw & ns,
size_t first,
xpath_ast_node * expr,
const xpath_stack & stack,
bool once )
inlinestaticprivate

◆ apply_predicate_number_const()

void xpath_ast_node::apply_predicate_number_const ( xpath_node_set_raw & ns,
size_t first,
xpath_ast_node * expr,
const xpath_stack & stack )
inlinestaticprivate

◆ apply_predicates()

void xpath_ast_node::apply_predicates ( xpath_node_set_raw & ns,
size_t first,
const xpath_stack & stack,
nodeset_eval_t eval )
inlineprivate

◆ compare_eq()

template<class Comp>
bool xpath_ast_node::compare_eq ( xpath_ast_node * lhs,
xpath_ast_node * rhs,
const xpath_context & c,
const xpath_stack & stack,
const Comp & comp )
inlinestaticprivate

◆ compare_rel()

template<class Comp>
bool xpath_ast_node::compare_rel ( xpath_ast_node * lhs,
xpath_ast_node * rhs,
const xpath_context & c,
const xpath_stack & stack,
const Comp & comp )
inlinestaticprivate

◆ eval_boolean()

◆ eval_node_set()

◆ eval_number()

◆ eval_once()

bool xpath_ast_node::eval_once ( xpath_node_set::type_t type,
nodeset_eval_t eval )
inlinestaticprivate

Definition at line 9503 of file pugixml.cpp.

References nodeset_eval_all, and nodeset_eval_any.

Referenced by apply_predicates(), eval_node_set(), and step_do().

◆ eval_string()

◆ eval_string_concat()

◆ is_posinv_expr()

bool xpath_ast_node::is_posinv_expr ( ) const
inline

◆ is_posinv_step()

bool xpath_ast_node::is_posinv_step ( ) const
inline

Definition at line 10966 of file pugixml.cpp.

References _next, _right, _type, ast_predicate, ast_step, predicate_posinv, and xpath_ast_node().

Referenced by optimize_self().

◆ operator=()

xpath_ast_node & xpath_ast_node::operator= ( const xpath_ast_node & )
private

References xpath_ast_node().

◆ optimize()

void xpath_ast_node::optimize ( xpath_allocator * alloc)
inline

Definition at line 10861 of file pugixml.cpp.

References _left, _next, _right, optimize(), and optimize_self().

Referenced by optimize().

◆ optimize_self()

◆ rettype()

◆ set_next()

void xpath_ast_node::set_next ( xpath_ast_node * value)
inline

Definition at line 10169 of file pugixml.cpp.

References _next, and xpath_ast_node().

Referenced by xpath_parser::parse_primary_expression(), and xpath_parser::parse_step().

◆ set_right()

void xpath_ast_node::set_right ( xpath_ast_node * value)
inline

Definition at line 10174 of file pugixml.cpp.

References _right, and xpath_ast_node().

Referenced by xpath_parser::parse_step().

◆ step_do()

◆ step_fill() [1/3]

template<class T>
void xpath_ast_node::step_fill ( xpath_node_set_raw & ns,
const xpath_node & xn,
xpath_allocator * alloc,
bool once,
T v )
inlineprivate

◆ step_fill() [2/3]

template<class T>
void xpath_ast_node::step_fill ( xpath_node_set_raw & ns,
xml_attribute_struct * a,
xml_node_struct * p,
xpath_allocator * alloc,
bool once,
T v )
inlineprivate

◆ step_fill() [3/3]

◆ step_push() [1/2]

bool xpath_ast_node::step_push ( xpath_node_set_raw & ns,
xml_attribute_struct * a,
xml_node_struct * parent,
xpath_allocator * alloc )
inlineprivate

◆ step_push() [2/2]

Member Data Documentation

◆ _axis

char xpath_ast_node::_axis
private

◆ _data

◆ _left

◆ _next

◆ _rettype

◆ _right

◆ _test

◆ _type


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