CARLA
Classes | Public Member Functions | Static Public Member Functions | Public Attributes | List of all members
xpath_parser Struct Reference
+ Collaboration diagram for xpath_parser:

Classes

struct  binary_op_t
 

Public Member Functions

void * alloc_node ()
 
xpath_ast_nodealloc_node (ast_type_t type, xpath_value_type rettype, const char_t *value)
 
xpath_ast_nodealloc_node (ast_type_t type, xpath_value_type rettype, double value)
 
xpath_ast_nodealloc_node (ast_type_t type, xpath_value_type rettype, xpath_variable *value)
 
xpath_ast_nodealloc_node (ast_type_t type, xpath_value_type rettype, xpath_ast_node *left=0, xpath_ast_node *right=0)
 
xpath_ast_nodealloc_node (ast_type_t type, xpath_ast_node *left, axis_t axis, nodetest_t test, const char_t *contents)
 
xpath_ast_nodealloc_node (ast_type_t type, xpath_ast_node *left, xpath_ast_node *right, predicate_t test)
 
const char_t * alloc_string (const xpath_lexer_string &value)
 
xpath_ast_nodeerror (const char *message)
 
xpath_ast_nodeerror_oom ()
 
xpath_ast_nodeparse ()
 
axis_t parse_axis_name (const xpath_lexer_string &name, bool &specified)
 
xpath_ast_nodeparse_expression (int limit=0)
 
xpath_ast_nodeparse_expression_rec (xpath_ast_node *lhs, int limit)
 
xpath_ast_nodeparse_filter_expression ()
 
xpath_ast_nodeparse_function (const xpath_lexer_string &name, size_t argc, xpath_ast_node *args[2])
 
xpath_ast_nodeparse_location_path ()
 
nodetest_t parse_node_test_type (const xpath_lexer_string &name)
 
xpath_ast_nodeparse_path_or_unary_expression ()
 
xpath_ast_nodeparse_primary_expression ()
 
xpath_ast_nodeparse_relative_location_path (xpath_ast_node *set)
 
xpath_ast_nodeparse_step (xpath_ast_node *set)
 
 xpath_parser (const char_t *query, xpath_variable_set *variables, xpath_allocator *alloc, xpath_parse_result *result)
 

Static Public Member Functions

static xpath_ast_nodeparse (const char_t *query, xpath_variable_set *variables, xpath_allocator *alloc, xpath_parse_result *result)
 

Public Attributes

xpath_allocator_alloc
 
xpath_lexer _lexer
 
const char_t * _query
 
xpath_parse_result * _result
 
char_t _scratch [32]
 
xpath_variable_set * _variables
 

Detailed Description

Definition at line 10987 of file pugixml.cpp.

Constructor & Destructor Documentation

◆ xpath_parser()

xpath_parser::xpath_parser ( const char_t *  query,
xpath_variable_set *  variables,
xpath_allocator alloc,
xpath_parse_result *  result 
)
inline

Definition at line 11859 of file pugixml.cpp.

Member Function Documentation

◆ alloc_node() [1/7]

void* xpath_parser::alloc_node ( )
inline

Definition at line 11015 of file pugixml.cpp.

References xpath_allocator::allocate().

+ Here is the call graph for this function:

◆ alloc_node() [2/7]

xpath_ast_node* xpath_parser::alloc_node ( ast_type_t  type,
xpath_value_type  rettype,
const char_t *  value 
)
inline

Definition at line 11020 of file pugixml.cpp.

◆ alloc_node() [3/7]

xpath_ast_node* xpath_parser::alloc_node ( ast_type_t  type,
xpath_value_type  rettype,
double  value 
)
inline

Definition at line 11026 of file pugixml.cpp.

◆ alloc_node() [4/7]

xpath_ast_node* xpath_parser::alloc_node ( ast_type_t  type,
xpath_value_type  rettype,
xpath_variable value 
)
inline

Definition at line 11032 of file pugixml.cpp.

◆ alloc_node() [5/7]

xpath_ast_node* xpath_parser::alloc_node ( ast_type_t  type,
xpath_value_type  rettype,
xpath_ast_node left = 0,
xpath_ast_node right = 0 
)
inline

Definition at line 11038 of file pugixml.cpp.

◆ alloc_node() [6/7]

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

Definition at line 11044 of file pugixml.cpp.

◆ alloc_node() [7/7]

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

Definition at line 11050 of file pugixml.cpp.

◆ alloc_string()

const char_t* xpath_parser::alloc_string ( const xpath_lexer_string value)
inline

Definition at line 11056 of file pugixml.cpp.

References xpath_allocator::allocate(), xpath_lexer_string::begin, xpath_lexer_string::end, and PUGIXML_TEXT.

+ Here is the call graph for this function:

◆ error()

xpath_ast_node* xpath_parser::error ( const char *  message)
inline

Definition at line 10999 of file pugixml.cpp.

References xpath_lexer::current_pos().

+ Here is the call graph for this function:

◆ error_oom()

xpath_ast_node* xpath_parser::error_oom ( )
inline

Definition at line 11007 of file pugixml.cpp.

References xpath_allocator::_error.

◆ parse() [1/2]

xpath_ast_node* xpath_parser::parse ( )
inline

Definition at line 11863 of file pugixml.cpp.

References xpath_lexer::current(), and lex_eof.

Referenced by parse().

+ Here is the call graph for this function:
+ Here is the caller graph for this function:

◆ parse() [2/2]

static xpath_ast_node* xpath_parser::parse ( const char_t *  query,
xpath_variable_set *  variables,
xpath_allocator alloc,
xpath_parse_result *  result 
)
inlinestatic

Definition at line 11875 of file pugixml.cpp.

References parse().

+ Here is the call graph for this function:

◆ parse_axis_name()

axis_t xpath_parser::parse_axis_name ( const xpath_lexer_string name,
bool &  specified 
)
inline

◆ parse_expression()

xpath_ast_node* xpath_parser::parse_expression ( int  limit = 0)
inline

Definition at line 11851 of file pugixml.cpp.

◆ parse_expression_rec()

xpath_ast_node* xpath_parser::parse_expression_rec ( xpath_ast_node lhs,
int  limit 
)
inline

Definition at line 11800 of file pugixml.cpp.

References ast_op_union, ast_unknown, xpath_parser::binary_op_t::asttype, xpath_lexer::next(), xpath_parser::binary_op_t::precedence, xpath_ast_node::rettype(), xpath_parser::binary_op_t::rettype, and pugi::xpath_type_node_set.

+ Here is the call graph for this function:

◆ parse_filter_expression()

xpath_ast_node* xpath_parser::parse_filter_expression ( )
inline

Definition at line 11402 of file pugixml.cpp.

References ast_filter, xpath_lexer::current(), lex_close_square_brace, lex_open_square_brace, xpath_lexer::next(), predicate_default, xpath_ast_node::rettype(), and pugi::xpath_type_node_set.

+ Here is the call graph for this function:

◆ parse_function()

xpath_ast_node* xpath_parser::parse_function ( const xpath_lexer_string name,
size_t  argc,
xpath_ast_node args[2] 
)
inline

◆ parse_location_path()

xpath_ast_node* xpath_parser::parse_location_path ( )
inline

Definition at line 11628 of file pugixml.cpp.

References ast_step, ast_step_root, axis_descendant_or_self, xpath_lexer::current(), lex_axis_attribute, lex_dot, lex_double_dot, lex_double_slash, lex_multiply, lex_slash, lex_string, xpath_lexer::next(), nodetest_type_node, and pugi::xpath_type_node_set.

+ Here is the call graph for this function:

◆ parse_node_test_type()

nodetest_t xpath_parser::parse_node_test_type ( const xpath_lexer_string name)
inline

◆ parse_path_or_unary_expression()

xpath_ast_node* xpath_parser::parse_path_or_unary_expression ( )
inline

◆ parse_primary_expression()

xpath_ast_node* xpath_parser::parse_primary_expression ( )
inline

◆ parse_relative_location_path()

xpath_ast_node* xpath_parser::parse_relative_location_path ( xpath_ast_node set)
inline

Definition at line 11603 of file pugixml.cpp.

References ast_step, axis_descendant_or_self, xpath_lexer::current(), lex_double_slash, lex_slash, xpath_lexer::next(), and nodetest_type_node.

+ Here is the call graph for this function:

◆ parse_step()

xpath_ast_node* xpath_parser::parse_step ( xpath_ast_node set)
inline

Member Data Documentation

◆ _alloc

xpath_allocator* xpath_parser::_alloc

Definition at line 10989 of file pugixml.cpp.

◆ _lexer

xpath_lexer xpath_parser::_lexer

Definition at line 10990 of file pugixml.cpp.

◆ _query

const char_t* xpath_parser::_query

Definition at line 10992 of file pugixml.cpp.

◆ _result

xpath_parse_result* xpath_parser::_result

Definition at line 10995 of file pugixml.cpp.

◆ _scratch

char_t xpath_parser::_scratch[32]

Definition at line 10997 of file pugixml.cpp.

◆ _variables

xpath_variable_set* xpath_parser::_variables

Definition at line 10993 of file pugixml.cpp.


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