ETISS 0.8.0
Extendable Translating Instruction Set Simulator (version 0.8.0)
Public Types | Public Member Functions | Protected Types | Protected Attributes | Friends | List of all members
pugi::xml_node Class Reference

#include <pugixml.hpp>

Inheritance diagram for pugi::xml_node:
Inheritance graph
[legend]
Collaboration diagram for pugi::xml_node:
Collaboration graph
[legend]

Public Types

typedef xml_node_iterator iterator
 
typedef xml_attribute_iterator attribute_iterator
 

Public Member Functions

 xml_node ()
 
 xml_node (xml_node_struct *p)
 
 operator unspecified_bool_type () const
 
bool operator! () const
 
bool operator== (const xml_node &r) const
 
bool operator!= (const xml_node &r) const
 
bool operator< (const xml_node &r) const
 
bool operator> (const xml_node &r) const
 
bool operator<= (const xml_node &r) const
 
bool operator>= (const xml_node &r) const
 
bool empty () const
 
xml_node_type type () const
 
const char_tname () const
 
const char_tvalue () const
 
xml_attribute first_attribute () const
 
xml_attribute last_attribute () const
 
xml_node first_child () const
 
xml_node last_child () const
 
xml_node next_sibling () const
 
xml_node previous_sibling () const
 
xml_node parent () const
 
xml_node root () const
 
xml_text text () const
 
xml_node child (const char_t *name) const
 
xml_attribute attribute (const char_t *name) const
 
xml_node next_sibling (const char_t *name) const
 
xml_node previous_sibling (const char_t *name) const
 
const char_tchild_value () const
 
const char_tchild_value (const char_t *name) const
 
bool set_name (const char_t *rhs)
 
bool set_value (const char_t *rhs)
 
xml_attribute append_attribute (const char_t *name)
 
xml_attribute prepend_attribute (const char_t *name)
 
xml_attribute insert_attribute_after (const char_t *name, const xml_attribute &attr)
 
xml_attribute insert_attribute_before (const char_t *name, const xml_attribute &attr)
 
xml_attribute append_copy (const xml_attribute &proto)
 
xml_attribute prepend_copy (const xml_attribute &proto)
 
xml_attribute insert_copy_after (const xml_attribute &proto, const xml_attribute &attr)
 
xml_attribute insert_copy_before (const xml_attribute &proto, const xml_attribute &attr)
 
xml_node append_child (xml_node_type type=node_element)
 
xml_node prepend_child (xml_node_type type=node_element)
 
xml_node insert_child_after (xml_node_type type, const xml_node &node)
 
xml_node insert_child_before (xml_node_type type, const xml_node &node)
 
xml_node append_child (const char_t *name)
 
xml_node prepend_child (const char_t *name)
 
xml_node insert_child_after (const char_t *name, const xml_node &node)
 
xml_node insert_child_before (const char_t *name, const xml_node &node)
 
xml_node append_copy (const xml_node &proto)
 
xml_node prepend_copy (const xml_node &proto)
 
xml_node insert_copy_after (const xml_node &proto, const xml_node &node)
 
xml_node insert_copy_before (const xml_node &proto, const xml_node &node)
 
bool remove_attribute (const xml_attribute &a)
 
bool remove_attribute (const char_t *name)
 
bool remove_child (const xml_node &n)
 
bool remove_child (const char_t *name)
 
xml_parse_result append_buffer (const void *contents, size_t size, unsigned int options=parse_default, xml_encoding encoding=encoding_auto)
 
template<typename Predicate >
xml_attribute find_attribute (Predicate pred) const
 
template<typename Predicate >
xml_node find_child (Predicate pred) const
 
template<typename Predicate >
xml_node find_node (Predicate pred) const
 
xml_node find_child_by_attribute (const char_t *name, const char_t *attr_name, const char_t *attr_value) const
 
xml_node find_child_by_attribute (const char_t *attr_name, const char_t *attr_value) const
 
string_t path (char_t delimiter='/') const
 
xml_node first_element_by_path (const char_t *path, char_t delimiter='/') const
 
bool traverse (xml_tree_walker &walker)
 
xpath_node select_single_node (const char_t *query, xpath_variable_set *variables=0) const
 
xpath_node select_single_node (const xpath_query &query) const
 
xpath_node_set select_nodes (const char_t *query, xpath_variable_set *variables=0) const
 
xpath_node_set select_nodes (const xpath_query &query) const
 
void print (xml_writer &writer, const char_t *indent=PUGIXML_TEXT("\t"), unsigned int flags=format_default, xml_encoding encoding=encoding_auto, unsigned int depth=0) const
 
void print (std::basic_ostream< char, std::char_traits< char > > &os, const char_t *indent=PUGIXML_TEXT("\t"), unsigned int flags=format_default, xml_encoding encoding=encoding_auto, unsigned int depth=0) const
 
void print (std::basic_ostream< wchar_t, std::char_traits< wchar_t > > &os, const char_t *indent=PUGIXML_TEXT("\t"), unsigned int flags=format_default, unsigned int depth=0) const
 
iterator begin () const
 
iterator end () const
 
attribute_iterator attributes_begin () const
 
attribute_iterator attributes_end () const
 
xml_object_range< xml_node_iteratorchildren () const
 
xml_object_range< xml_named_node_iteratorchildren (const char_t *name) const
 
xml_object_range< xml_attribute_iteratorattributes () const
 
ptrdiff_t offset_debug () const
 
size_t hash_value () const
 
xml_node_structinternal_object () const
 

Protected Types

typedef void(* unspecified_bool_type) (xml_node ***)
 

Protected Attributes

xml_node_struct_root
 

Friends

class xml_attribute_iterator
 
class xml_node_iterator
 
class xml_named_node_iterator
 

Detailed Description

Definition at line 396 of file pugixml.hpp.

Member Typedef Documentation

◆ attribute_iterator

Definition at line 610 of file pugixml.hpp.

◆ iterator

Definition at line 604 of file pugixml.hpp.

◆ unspecified_bool_type

typedef void(* pugi::xml_node::unspecified_bool_type) (xml_node ***)
protected

Definition at line 405 of file pugixml.hpp.

Constructor & Destructor Documentation

◆ xml_node() [1/2]

PUGI__FN pugi::xml_node::xml_node ( )

◆ xml_node() [2/2]

PUGI__FN pugi::xml_node::xml_node ( xml_node_struct p)
explicit

Definition at line 4579 of file pugixml.cpp.

Member Function Documentation

◆ append_attribute()

PUGI__FN xml_attribute pugi::xml_node::append_attribute ( const char_t name)

Definition at line 4837 of file pugixml.cpp.

References _root, append_attribute_ll(), get_allocator(), pugi::node_declaration, pugi::node_element, pugi::xml_attribute::set_name(), and type().

Referenced by append_copy(), and etiss::fault::xml::setAttribute().

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

◆ append_buffer()

PUGI__FN xml_parse_result pugi::xml_node::append_buffer ( const void *  contents,
size_t  size,
unsigned int  options = parse_default,
xml_encoding  encoding = encoding_auto 
)

◆ append_child() [1/2]

PUGI__FN xml_node pugi::xml_node::append_child ( const char_t name)

Definition at line 5082 of file pugixml.cpp.

References append_child(), pugi::node_element, and set_name().

Here is the call graph for this function:

◆ append_child() [2/2]

PUGI__FN xml_node pugi::xml_node::append_child ( xml_node_type  type = node_element)

Definition at line 4983 of file pugixml.cpp.

References _root, allow_insert_child(), append_node(), get_allocator(), pugi::node_declaration, PUGIXML_TEXT, set_name(), type(), and xml_node().

Referenced by append_child(), append_copy(), etiss::fault::Action::toString(), and etiss::fault::Fault::toString().

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

◆ append_copy() [1/2]

PUGI__FN xml_attribute pugi::xml_node::append_copy ( const xml_attribute proto)

Definition at line 4939 of file pugixml.cpp.

References append_attribute(), pugi::xml_attribute::name(), pugi::xml_attribute::set_value(), and pugi::xml_attribute::value().

Referenced by pugi::xml_document::reset().

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

◆ append_copy() [2/2]

PUGI__FN xml_node pugi::xml_node::append_copy ( const xml_node proto)

Definition at line 5118 of file pugixml.cpp.

References append_child(), recursive_copy_skip(), and type().

Here is the call graph for this function:

◆ attribute()

PUGI__FN xml_attribute pugi::xml_node::attribute ( const char_t name) const

Definition at line 4691 of file pugixml.cpp.

References _root, pugi::xml_node_struct::first_attribute, pugi::xml_attribute_struct::next_attribute, and strequal().

Referenced by remove_attribute().

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

◆ attributes()

PUGI__FN xml_object_range< xml_attribute_iterator > pugi::xml_node::attributes ( ) const

Definition at line 4624 of file pugixml.cpp.

References attributes_begin(), and attributes_end().

Here is the call graph for this function:

◆ attributes_begin()

PUGI__FN xml_node::attribute_iterator pugi::xml_node::attributes_begin ( ) const

Definition at line 4603 of file pugixml.cpp.

References _root, and pugi::xml_node_struct::first_attribute.

Referenced by attributes().

Here is the caller graph for this function:

◆ attributes_end()

PUGI__FN xml_node::attribute_iterator pugi::xml_node::attributes_end ( ) const

Definition at line 4608 of file pugixml.cpp.

References _root.

Referenced by attributes().

Here is the caller graph for this function:

◆ begin()

PUGI__FN xml_node::iterator pugi::xml_node::begin ( ) const

Definition at line 4593 of file pugixml.cpp.

References _root, and pugi::xml_node_struct::first_child.

Referenced by children().

Here is the caller graph for this function:

◆ child()

PUGI__FN xml_node pugi::xml_node::child ( const char_t name) const

Definition at line 4679 of file pugixml.cpp.

References _root, pugi::xml_node_struct::first_child, pugi::xml_node_struct::next_sibling, strequal(), and xml_node().

Referenced by child_value(), children(), and remove_child().

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

◆ child_value() [1/2]

PUGI__FN const char_t * pugi::xml_node::child_value ( ) const

Definition at line 4770 of file pugixml.cpp.

References _root, pugi::xml_node_struct::first_child, is_text_node(), pugi::xml_node_struct::next_sibling, and PUGIXML_TEXT.

Referenced by child_value().

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

◆ child_value() [2/2]

PUGI__FN const char_t * pugi::xml_node::child_value ( const char_t name) const

Definition at line 4782 of file pugixml.cpp.

References child(), and child_value().

Here is the call graph for this function:

◆ children() [1/2]

PUGI__FN xml_object_range< xml_node_iterator > pugi::xml_node::children ( ) const

Definition at line 4613 of file pugixml.cpp.

References begin(), and end().

Here is the call graph for this function:

◆ children() [2/2]

PUGI__FN xml_object_range< xml_named_node_iterator > pugi::xml_node::children ( const char_t name) const

Definition at line 4618 of file pugixml.cpp.

References _root, child(), and xml_named_node_iterator.

Here is the call graph for this function:

◆ empty()

PUGI__FN bool pugi::xml_node::empty ( ) const

Definition at line 4659 of file pugixml.cpp.

References _root.

Referenced by traverse().

Here is the caller graph for this function:

◆ end()

PUGI__FN xml_node::iterator pugi::xml_node::end ( ) const

Definition at line 4598 of file pugixml.cpp.

References _root.

Referenced by children().

Here is the caller graph for this function:

◆ find_attribute()

template<typename Predicate >
xml_attribute pugi::xml_node::find_attribute ( Predicate  pred) const
inline

Definition at line 522 of file pugixml.hpp.

References pugi::xml_attribute::next_attribute().

Here is the call graph for this function:

◆ find_child()

template<typename Predicate >
xml_node pugi::xml_node::find_child ( Predicate  pred) const
inline

Definition at line 534 of file pugixml.hpp.

References next_sibling().

Here is the call graph for this function:

◆ find_child_by_attribute() [1/2]

PUGI__FN xml_node pugi::xml_node::find_child_by_attribute ( const char_t attr_name,
const char_t attr_value 
) const

◆ find_child_by_attribute() [2/2]

PUGI__FN xml_node pugi::xml_node::find_child_by_attribute ( const char_t name,
const char_t attr_name,
const char_t attr_value 
) const

◆ find_node()

template<typename Predicate >
xml_node pugi::xml_node::find_node ( Predicate  pred) const
inline

Definition at line 546 of file pugixml.hpp.

References _root, first_child(), next_sibling(), and parent().

Here is the call graph for this function:

◆ first_attribute()

PUGI__FN xml_attribute pugi::xml_node::first_attribute ( ) const

Definition at line 4787 of file pugixml.cpp.

References _root, and pugi::xml_node_struct::first_attribute.

Referenced by etiss::fault::xml::getAttribute().

Here is the caller graph for this function:

◆ first_child()

PUGI__FN xml_node pugi::xml_node::first_child ( ) const

Definition at line 4797 of file pugixml.cpp.

References _root, pugi::xml_node_struct::first_child, and xml_node().

Referenced by find_node(), etiss::fault::xml::parse< std::vector< etiss::fault::Fault > >(), pugi::xml_document::reset(), and traverse().

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

◆ first_element_by_path()

PUGI__FN xml_node pugi::xml_node::first_element_by_path ( const char_t path,
char_t  delimiter = '/' 
) const

Definition at line 5311 of file pugixml.cpp.

References _root, pugi::xml_node_struct::first_child, first_element_by_path(), pugi::xml_node_struct::next_sibling, parent(), root(), strequalrange(), and xml_node().

Referenced by first_element_by_path().

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

◆ hash_value()

PUGI__FN size_t pugi::xml_node::hash_value ( ) const

Definition at line 5413 of file pugixml.cpp.

References _root.

◆ insert_attribute_after()

PUGI__FN xml_attribute pugi::xml_node::insert_attribute_after ( const char_t name,
const xml_attribute attr 
)

◆ insert_attribute_before()

PUGI__FN xml_attribute pugi::xml_node::insert_attribute_before ( const char_t name,
const xml_attribute attr 
)

◆ insert_child_after() [1/2]

PUGI__FN xml_node pugi::xml_node::insert_child_after ( const char_t name,
const xml_node node 
)

Definition at line 5100 of file pugixml.cpp.

References insert_child_after(), pugi::node_element, and set_name().

Here is the call graph for this function:

◆ insert_child_after() [2/2]

PUGI__FN xml_node pugi::xml_node::insert_child_after ( xml_node_type  type,
const xml_node node 
)

◆ insert_child_before() [1/2]

PUGI__FN xml_node pugi::xml_node::insert_child_before ( const char_t name,
const xml_node node 
)

Definition at line 5109 of file pugixml.cpp.

References insert_child_before(), pugi::node_element, and set_name().

Here is the call graph for this function:

◆ insert_child_before() [2/2]

PUGI__FN xml_node pugi::xml_node::insert_child_before ( xml_node_type  type,
const xml_node node 
)

◆ insert_copy_after() [1/2]

PUGI__FN xml_attribute pugi::xml_node::insert_copy_after ( const xml_attribute proto,
const xml_attribute attr 
)

Definition at line 4961 of file pugixml.cpp.

References insert_attribute_after(), pugi::xml_attribute::name(), pugi::xml_attribute::set_value(), and pugi::xml_attribute::value().

Here is the call graph for this function:

◆ insert_copy_after() [2/2]

PUGI__FN xml_node pugi::xml_node::insert_copy_after ( const xml_node proto,
const xml_node node 
)

Definition at line 5138 of file pugixml.cpp.

References insert_child_after(), recursive_copy_skip(), and type().

Here is the call graph for this function:

◆ insert_copy_before() [1/2]

PUGI__FN xml_attribute pugi::xml_node::insert_copy_before ( const xml_attribute proto,
const xml_attribute attr 
)

Definition at line 4972 of file pugixml.cpp.

References insert_attribute_before(), pugi::xml_attribute::name(), pugi::xml_attribute::set_value(), and pugi::xml_attribute::value().

Here is the call graph for this function:

◆ insert_copy_before() [2/2]

PUGI__FN xml_node pugi::xml_node::insert_copy_before ( const xml_node proto,
const xml_node node 
)

Definition at line 5148 of file pugixml.cpp.

References insert_child_before(), recursive_copy_skip(), and type().

Here is the call graph for this function:

◆ internal_object()

PUGI__FN xml_node_struct * pugi::xml_node::internal_object ( ) const

Definition at line 5418 of file pugixml.cpp.

References _root.

◆ last_attribute()

PUGI__FN xml_attribute pugi::xml_node::last_attribute ( ) const

Definition at line 4792 of file pugixml.cpp.

References _root, pugi::xml_node_struct::first_attribute, and pugi::xml_attribute_struct::prev_attribute_c.

Referenced by pugi::xml_attribute_iterator::operator--().

Here is the caller graph for this function:

◆ last_child()

PUGI__FN xml_node pugi::xml_node::last_child ( ) const

Definition at line 4802 of file pugixml.cpp.

References _root, pugi::xml_node_struct::first_child, pugi::xml_node_struct::prev_sibling_c, and xml_node().

Referenced by pugi::xml_node_iterator::operator--(), and pugi::xml_named_node_iterator::operator--().

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

◆ name()

PUGI__FN const char_t * pugi::xml_node::name ( ) const

Definition at line 4664 of file pugixml.cpp.

References _root, pugi::xml_node_struct::name, and PUGIXML_TEXT.

Referenced by pugi::xml_named_node_iterator::operator--(), path(), and get_metrics.MemRange::stats().

Here is the caller graph for this function:

◆ next_sibling() [1/2]

PUGI__FN xml_node pugi::xml_node::next_sibling ( ) const

Definition at line 4715 of file pugixml.cpp.

References _root, pugi::xml_node_struct::next_sibling, and xml_node().

Referenced by find_child(), find_node(), pugi::xml_named_node_iterator::operator++(), etiss::fault::xml::parse< std::vector< etiss::fault::Fault > >(), pugi::xml_document::reset(), and traverse().

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

◆ next_sibling() [2/2]

PUGI__FN xml_node pugi::xml_node::next_sibling ( const char_t name) const

Definition at line 4703 of file pugixml.cpp.

References _root, pugi::xml_node_struct::next_sibling, strequal(), and xml_node().

Here is the call graph for this function:

◆ offset_debug()

PUGI__FN ptrdiff_t pugi::xml_node::offset_debug ( ) const

◆ operator unspecified_bool_type()

PUGI__FN pugi::xml_node::operator xml_node::unspecified_bool_type ( ) const

Definition at line 4583 of file pugixml.cpp.

References _root, and pugi::unspecified_bool_xml_node().

Here is the call graph for this function:

◆ operator!()

PUGI__FN bool pugi::xml_node::operator! ( ) const

Definition at line 4588 of file pugixml.cpp.

References _root.

◆ operator!=()

Definition at line 4634 of file pugixml.cpp.

References _root.

◆ operator<()

PUGI__FN bool pugi::xml_node::operator< ( const xml_node r) const

Definition at line 4639 of file pugixml.cpp.

References _root.

◆ operator<=()

PUGI__FN bool pugi::xml_node::operator<= ( const xml_node r) const

Definition at line 4649 of file pugixml.cpp.

References _root.

◆ operator==()

PUGI__FN bool pugi::xml_node::operator== ( const xml_node r) const

Definition at line 4629 of file pugixml.cpp.

References _root.

◆ operator>()

PUGI__FN bool pugi::xml_node::operator> ( const xml_node r) const

Definition at line 4644 of file pugixml.cpp.

References _root.

◆ operator>=()

PUGI__FN bool pugi::xml_node::operator>= ( const xml_node r) const

Definition at line 4654 of file pugixml.cpp.

References _root.

◆ parent()

PUGI__FN xml_node pugi::xml_node::parent ( ) const

Definition at line 4749 of file pugixml.cpp.

References _root, pugi::xml_node_struct::parent, and xml_node().

Referenced by find_node(), first_element_by_path(), pugi::xpath_node::parent(), path(), and traverse().

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

◆ path()

PUGI__FN string_t pugi::xml_node::path ( char_t  delimiter = '/') const

Definition at line 5291 of file pugixml.cpp.

References name(), and parent().

Here is the call graph for this function:

◆ prepend_attribute()

PUGI__FN xml_attribute pugi::xml_node::prepend_attribute ( const char_t name)

◆ prepend_child() [1/2]

PUGI__FN xml_node pugi::xml_node::prepend_child ( const char_t name)

Definition at line 5091 of file pugixml.cpp.

References pugi::node_element, prepend_child(), and set_name().

Here is the call graph for this function:

◆ prepend_child() [2/2]

PUGI__FN xml_node pugi::xml_node::prepend_child ( xml_node_type  type = node_element)

◆ prepend_copy() [1/2]

PUGI__FN xml_attribute pugi::xml_node::prepend_copy ( const xml_attribute proto)

Definition at line 4950 of file pugixml.cpp.

References pugi::xml_attribute::name(), prepend_attribute(), pugi::xml_attribute::set_value(), and pugi::xml_attribute::value().

Here is the call graph for this function:

◆ prepend_copy() [2/2]

PUGI__FN xml_node pugi::xml_node::prepend_copy ( const xml_node proto)

Definition at line 5128 of file pugixml.cpp.

References prepend_child(), recursive_copy_skip(), and type().

Here is the call graph for this function:

◆ previous_sibling() [1/2]

PUGI__FN xml_node pugi::xml_node::previous_sibling ( ) const

Definition at line 4738 of file pugixml.cpp.

References _root, pugi::xml_node_struct::next_sibling, pugi::xml_node_struct::prev_sibling_c, and xml_node().

Referenced by pugi::xml_node_iterator::operator--(), and pugi::xml_named_node_iterator::operator--().

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

◆ previous_sibling() [2/2]

PUGI__FN xml_node pugi::xml_node::previous_sibling ( const char_t name) const

Definition at line 4726 of file pugixml.cpp.

References _root, pugi::xml_node_struct::next_sibling, pugi::xml_node_struct::prev_sibling_c, strequal(), and xml_node().

Here is the call graph for this function:

◆ print() [1/3]

void pugi::xml_node::print ( std::basic_ostream< char, std::char_traits< char > > &  os,
const char_t indent = PUGIXML_TEXT("\t"),
unsigned int  flags = format_default,
xml_encoding  encoding = encoding_auto,
unsigned int  depth = 0 
) const

◆ print() [2/3]

void pugi::xml_node::print ( std::basic_ostream< wchar_t, std::char_traits< wchar_t > > &  os,
const char_t indent = PUGIXML_TEXT("\t"),
unsigned int  flags = format_default,
unsigned int  depth = 0 
) const

◆ print() [3/3]

PUGI__FN void pugi::xml_node::print ( xml_writer writer,
const char_t indent = PUGIXML_TEXT("\t"),
unsigned int  flags = format_default,
xml_encoding  encoding = encoding_auto,
unsigned int  depth = 0 
) const

Definition at line 5423 of file pugixml.cpp.

References _root, etiss::interfaces::depth(), node_output(), and get_metrics::writer.

Here is the call graph for this function:

◆ remove_attribute() [1/2]

PUGI__FN bool pugi::xml_node::remove_attribute ( const char_t name)

Definition at line 5158 of file pugixml.cpp.

References attribute(), and remove_attribute().

Here is the call graph for this function:

◆ remove_attribute() [2/2]

PUGI__FN bool pugi::xml_node::remove_attribute ( const xml_attribute a)

Definition at line 5163 of file pugixml.cpp.

References pugi::xml_attribute::_attr, _root, destroy_attribute(), pugi::xml_node_struct::first_attribute, get_allocator(), pugi::xml_attribute_struct::next_attribute, and pugi::xml_attribute_struct::prev_attribute_c.

Referenced by remove_attribute().

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

◆ remove_child() [1/2]

PUGI__FN bool pugi::xml_node::remove_child ( const char_t name)

Definition at line 5192 of file pugixml.cpp.

References child(), and remove_child().

Here is the call graph for this function:

◆ remove_child() [2/2]

PUGI__FN bool pugi::xml_node::remove_child ( const xml_node n)

Definition at line 5197 of file pugixml.cpp.

References _root, destroy_node(), pugi::xml_node_struct::first_child, get_allocator(), pugi::xml_node_struct::next_sibling, pugi::xml_node_struct::parent, and pugi::xml_node_struct::prev_sibling_c.

Referenced by remove_child().

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

◆ root()

PUGI__FN xml_node pugi::xml_node::root ( ) const

Definition at line 4754 of file pugixml.cpp.

References _root, pugi::xml_node_struct::header, xml_memory_page_pointer_mask, and xml_node().

Referenced by append_buffer(), first_element_by_path(), and offset_debug().

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

◆ select_nodes() [1/2]

PUGI__FN xpath_node_set pugi::xml_node::select_nodes ( const char_t query,
xpath_variable_set variables = 0 
) const

Definition at line 11156 of file pugixml.cpp.

◆ select_nodes() [2/2]

PUGI__FN xpath_node_set pugi::xml_node::select_nodes ( const xpath_query query) const

Definition at line 11162 of file pugixml.cpp.

References pugi::xpath_query::evaluate_node_set().

Here is the call graph for this function:

◆ select_single_node() [1/2]

PUGI__FN xpath_node pugi::xml_node::select_single_node ( const char_t query,
xpath_variable_set variables = 0 
) const

Definition at line 11144 of file pugixml.cpp.

◆ select_single_node() [2/2]

PUGI__FN xpath_node pugi::xml_node::select_single_node ( const xpath_query query) const

Definition at line 11150 of file pugixml.cpp.

References pugi::xpath_query::evaluate_node_set(), and s.

Here is the call graph for this function:

◆ set_name()

PUGI__FN bool pugi::xml_node::set_name ( const char_t rhs)

Definition at line 4807 of file pugixml.cpp.

References _root, pugi::xml_node_struct::header, pugi::xml_node_struct::name, pugi::node_declaration, pugi::node_element, pugi::node_pi, strcpy_insitu(), type(), and xml_memory_page_name_allocated_mask.

Referenced by append_child(), insert_child_after(), insert_child_before(), and prepend_child().

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

◆ set_value()

PUGI__FN bool pugi::xml_node::set_value ( const char_t rhs)

◆ text()

PUGI__FN xml_text pugi::xml_node::text ( ) const

Definition at line 4765 of file pugixml.cpp.

References _root.

◆ traverse()

PUGI__FN bool pugi::xml_node::traverse ( xml_tree_walker walker)

◆ type()

PUGI__FN xml_node_type pugi::xml_node::type ( ) const

◆ value()

PUGI__FN const char_t * pugi::xml_node::value ( ) const

Definition at line 4674 of file pugixml.cpp.

References _root, PUGIXML_TEXT, and pugi::xml_node_struct::value.

Friends And Related Function Documentation

◆ xml_attribute_iterator

friend class xml_attribute_iterator
friend

Definition at line 398 of file pugixml.hpp.

◆ xml_named_node_iterator

friend class xml_named_node_iterator
friend

Definition at line 400 of file pugixml.hpp.

Referenced by children().

◆ xml_node_iterator

friend class xml_node_iterator
friend

Definition at line 399 of file pugixml.hpp.

Member Data Documentation

◆ _root

xml_node_struct* pugi::xml_node::_root
protected

Definition at line 403 of file pugixml.hpp.

Referenced by append_attribute(), append_buffer(), append_child(), attribute(), attributes_begin(), attributes_end(), begin(), child(), child_value(), children(), pugi::xml_document::create(), pugi::xml_document::destroy(), pugi::xml_document::document_element(), empty(), end(), find_child_by_attribute(), find_node(), first_attribute(), first_child(), first_element_by_path(), hash_value(), insert_attribute_after(), insert_attribute_before(), insert_child_after(), insert_child_before(), internal_object(), last_attribute(), last_child(), pugi::xml_document::load_buffer(), pugi::xml_document::load_buffer_inplace(), pugi::xml_document::load_buffer_inplace_own(), name(), next_sibling(), offset_debug(), operator unspecified_bool_type(), operator!(), pugi::xml_attribute_iterator::operator!=(), pugi::xml_named_node_iterator::operator!=(), operator!=(), pugi::xml_node_iterator::operator!=(), pugi::xml_node_iterator::operator*(), pugi::xml_named_node_iterator::operator*(), pugi::xml_node_iterator::operator++(), pugi::xml_named_node_iterator::operator++(), pugi::xml_node_iterator::operator--(), pugi::xml_named_node_iterator::operator--(), pugi::xml_node_iterator::operator->(), pugi::xml_named_node_iterator::operator->(), operator<(), operator<=(), pugi::xml_attribute_iterator::operator==(), pugi::xml_named_node_iterator::operator==(), operator==(), pugi::xml_node_iterator::operator==(), operator>(), operator>=(), parent(), prepend_attribute(), prepend_child(), previous_sibling(), print(), remove_attribute(), remove_child(), root(), set_name(), set_value(), text(), type(), and value().


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