Open
Graph Drawing
Framework

 v. 2023.09 (Elderberry)
 

pugi::xml_node Class Reference

#include <ogdf/lib/pugixml/pugixml.h>

+ Inheritance diagram for pugi::xml_node:

Public Types

using attribute_iterator = xml_attribute_iterator
 
using iterator = xml_node_iterator
 

Public Member Functions

 xml_node ()
 
 xml_node (xml_node_struct *p)
 
xml_attribute append_attribute (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)
 
xml_node append_child (const char_t *name)
 
xml_node append_child (xml_node_type type=node_element)
 
xml_attribute append_copy (const xml_attribute &proto)
 
xml_node append_copy (const xml_node &proto)
 
xml_node append_move (const xml_node &moved)
 
xml_attribute attribute (const char_t *name) const
 
xml_attribute attribute (const char_t *name, xml_attribute &hint) const
 
xml_object_range< xml_attribute_iteratorattributes () const
 
attribute_iterator attributes_begin () const
 
attribute_iterator attributes_end () const
 
iterator begin () const
 
xml_node child (const char_t *name) const
 
const char_tchild_value () const
 
const char_tchild_value (const char_t *name) const
 
xml_object_range< xml_node_iteratorchildren () const
 
xml_object_range< xml_named_node_iteratorchildren (const char_t *name) const
 
bool empty () const
 
iterator end () const
 
template<typename Predicate >
xml_attribute find_attribute (Predicate pred) const
 
template<typename Predicate >
xml_node find_child (Predicate pred) const
 
xml_node find_child_by_attribute (const char_t *attr_name, const char_t *attr_value) const
 
xml_node find_child_by_attribute (const char_t *name, const char_t *attr_name, const char_t *attr_value) const
 
template<typename Predicate >
xml_node find_node (Predicate pred) const
 
xml_attribute first_attribute () const
 
xml_node first_child () const
 
xml_node first_element_by_path (const char_t *path, char_t delimiter='/') const
 
size_t hash_value () const
 
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_node insert_child_after (const char_t *name, const xml_node &node)
 
xml_node insert_child_after (xml_node_type type, const xml_node &node)
 
xml_node insert_child_before (const char_t *name, const xml_node &node)
 
xml_node insert_child_before (xml_node_type type, const xml_node &node)
 
xml_attribute insert_copy_after (const xml_attribute &proto, const xml_attribute &attr)
 
xml_node insert_copy_after (const xml_node &proto, const xml_node &node)
 
xml_attribute insert_copy_before (const xml_attribute &proto, const xml_attribute &attr)
 
xml_node insert_copy_before (const xml_node &proto, const xml_node &node)
 
xml_node insert_move_after (const xml_node &moved, const xml_node &node)
 
xml_node insert_move_before (const xml_node &moved, const xml_node &node)
 
xml_node_struct * internal_object () const
 
xml_attribute last_attribute () const
 
xml_node last_child () const
 
const char_tname () const
 
xml_node next_sibling () const
 
xml_node next_sibling (const char_t *name) const
 
ptrdiff_t offset_debug () const
 
 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
 
xml_node parent () const
 
string_t path (char_t delimiter='/') const
 
xml_attribute prepend_attribute (const char_t *name)
 
xml_node prepend_child (const char_t *name)
 
xml_node prepend_child (xml_node_type type=node_element)
 
xml_attribute prepend_copy (const xml_attribute &proto)
 
xml_node prepend_copy (const xml_node &proto)
 
xml_node prepend_move (const xml_node &moved)
 
xml_node previous_sibling () const
 
xml_node previous_sibling (const char_t *name) 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
 
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
 
bool remove_attribute (const char_t *name)
 
bool remove_attribute (const xml_attribute &a)
 
bool remove_child (const char_t *name)
 
bool remove_child (const xml_node &n)
 
xml_node root () const
 
xpath_node select_node (const char_t *query, xpath_variable_set *variables=0) const
 
xpath_node select_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
 
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
 
bool set_name (const char_t *rhs)
 
bool set_value (const char_t *rhs)
 
xml_text text () const
 
bool traverse (xml_tree_walker &walker)
 
xml_node_type type () const
 
const char_tvalue () const
 

Protected Types

using unspecified_bool_type = void(*)(xml_node ***)
 

Protected Attributes

xml_node_struct * _root
 

Friends

class xml_attribute_iterator
 
class xml_named_node_iterator
 
class xml_node_iterator
 

Detailed Description

Definition at line 401 of file pugixml.h.

Member Typedef Documentation

◆ attribute_iterator

◆ iterator

Definition at line 623 of file pugixml.h.

◆ unspecified_bool_type

using pugi::xml_node::unspecified_bool_type = void (*)(xml_node***)
protected

Definition at line 410 of file pugixml.h.

Constructor & Destructor Documentation

◆ xml_node() [1/2]

pugi::xml_node::xml_node ( )

◆ xml_node() [2/2]

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

Member Function Documentation

◆ append_attribute()

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

◆ append_buffer()

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]

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

◆ append_child() [2/2]

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

◆ append_copy() [1/2]

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

◆ append_copy() [2/2]

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

◆ append_move()

xml_node pugi::xml_node::append_move ( const xml_node moved)

◆ attribute() [1/2]

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

◆ attribute() [2/2]

xml_attribute pugi::xml_node::attribute ( const char_t name,
xml_attribute hint 
) const

◆ attributes()

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

◆ attributes_begin()

attribute_iterator pugi::xml_node::attributes_begin ( ) const

◆ attributes_end()

attribute_iterator pugi::xml_node::attributes_end ( ) const

◆ begin()

iterator pugi::xml_node::begin ( ) const

◆ child()

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

◆ child_value() [1/2]

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

◆ child_value() [2/2]

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

◆ children() [1/2]

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

◆ children() [2/2]

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

◆ empty()

bool pugi::xml_node::empty ( ) const

◆ end()

iterator pugi::xml_node::end ( ) const

◆ find_attribute()

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

Definition at line 536 of file pugixml.h.

◆ find_child()

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

Definition at line 548 of file pugixml.h.

◆ find_child_by_attribute() [1/2]

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]

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 560 of file pugixml.h.

◆ first_attribute()

xml_attribute pugi::xml_node::first_attribute ( ) const

◆ first_child()

xml_node pugi::xml_node::first_child ( ) const

◆ first_element_by_path()

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

◆ hash_value()

size_t pugi::xml_node::hash_value ( ) const

◆ insert_attribute_after()

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

◆ insert_attribute_before()

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

◆ insert_child_after() [1/2]

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

◆ insert_child_after() [2/2]

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

◆ insert_child_before() [1/2]

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

◆ insert_child_before() [2/2]

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

◆ insert_copy_after() [1/2]

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

◆ insert_copy_after() [2/2]

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

◆ insert_copy_before() [1/2]

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

◆ insert_copy_before() [2/2]

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

◆ insert_move_after()

xml_node pugi::xml_node::insert_move_after ( const xml_node moved,
const xml_node node 
)

◆ insert_move_before()

xml_node pugi::xml_node::insert_move_before ( const xml_node moved,
const xml_node node 
)

◆ internal_object()

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

◆ last_attribute()

xml_attribute pugi::xml_node::last_attribute ( ) const

◆ last_child()

xml_node pugi::xml_node::last_child ( ) const

◆ name()

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

◆ next_sibling() [1/2]

xml_node pugi::xml_node::next_sibling ( ) const

◆ next_sibling() [2/2]

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

◆ offset_debug()

ptrdiff_t pugi::xml_node::offset_debug ( ) const

◆ operator unspecified_bool_type()

pugi::xml_node::operator unspecified_bool_type ( ) const

◆ operator!()

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

◆ operator!=()

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

◆ operator<()

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

◆ operator<=()

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

◆ operator==()

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

◆ operator>()

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

◆ operator>=()

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

◆ parent()

xml_node pugi::xml_node::parent ( ) const

◆ path()

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

◆ prepend_attribute()

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

◆ prepend_child() [1/2]

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

◆ prepend_child() [2/2]

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

◆ prepend_copy() [1/2]

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

◆ prepend_copy() [2/2]

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

◆ prepend_move()

xml_node pugi::xml_node::prepend_move ( const xml_node moved)

◆ previous_sibling() [1/2]

xml_node pugi::xml_node::previous_sibling ( ) const

◆ previous_sibling() [2/2]

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

◆ 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]

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

◆ remove_attribute() [1/2]

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

◆ remove_attribute() [2/2]

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

◆ remove_child() [1/2]

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

◆ remove_child() [2/2]

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

◆ root()

xml_node pugi::xml_node::root ( ) const

◆ select_node() [1/2]

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

◆ select_node() [2/2]

xpath_node pugi::xml_node::select_node ( const xpath_query query) const

◆ select_nodes() [1/2]

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

◆ select_nodes() [2/2]

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

◆ select_single_node() [1/2]

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

◆ select_single_node() [2/2]

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

◆ set_name()

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

◆ set_value()

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

◆ text()

xml_text pugi::xml_node::text ( ) const

◆ traverse()

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

◆ type()

xml_node_type pugi::xml_node::type ( ) const

◆ value()

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

Friends And Related Function Documentation

◆ xml_attribute_iterator

friend class xml_attribute_iterator
friend

Definition at line 403 of file pugixml.h.

◆ xml_named_node_iterator

friend class xml_named_node_iterator
friend

Definition at line 405 of file pugixml.h.

◆ xml_node_iterator

friend class xml_node_iterator
friend

Definition at line 404 of file pugixml.h.

Member Data Documentation

◆ _root

xml_node_struct* pugi::xml_node::_root
protected

Definition at line 408 of file pugixml.h.


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