μHAL (v2.7.9)
Part of the IPbus software repository
Public Member Functions | Private Types | Private Member Functions | Private Attributes | Friends | List of all members
pugi::xml_text Class Reference

#include <_static/pugixml.hpp>

Collaboration diagram for pugi::xml_text:
[legend]

Public Member Functions

 xml_text ()
 
 operator unspecified_bool_type () const
 
bool operator! () const
 
bool empty () const
 
const char_tget () const
 
const char_tas_string (const char_t *def=PUGIXML_TEXT("")) const
 
int as_int (int def=0) const
 
unsigned int as_uint (unsigned int def=0) const
 
double as_double (double def=0) const
 
float as_float (float def=0) const
 
bool as_bool (bool def=false) const
 
bool set (const char_t *rhs)
 
bool set (int rhs)
 
bool set (unsigned int rhs)
 
bool set (long rhs)
 
bool set (unsigned long rhs)
 
bool set (double rhs)
 
bool set (float rhs)
 
bool set (bool rhs)
 
xml_textoperator= (const char_t *rhs)
 
xml_textoperator= (int rhs)
 
xml_textoperator= (unsigned int rhs)
 
xml_textoperator= (long rhs)
 
xml_textoperator= (unsigned long rhs)
 
xml_textoperator= (double rhs)
 
xml_textoperator= (float rhs)
 
xml_textoperator= (bool rhs)
 
xml_node data () const
 

Private Types

typedef void(* unspecified_bool_type) (xml_text ***)
 

Private Member Functions

 xml_text (xml_node_struct *root)
 
xml_node_struct_data_new ()
 
xml_node_struct_data () const
 

Private Attributes

xml_node_struct_root
 

Friends

class xml_node
 

Detailed Description

Definition at line 709 of file pugixml.hpp.

Member Typedef Documentation

◆ unspecified_bool_type

typedef void(* pugi::xml_text::unspecified_bool_type) (xml_text ***)
private

Definition at line 715 of file pugixml.hpp.

Constructor & Destructor Documentation

◆ xml_text() [1/2]

PUGI__FN pugi::xml_text::xml_text ( xml_node_struct root)
explicitprivate

Definition at line 6352 of file pugixml.cpp.

◆ xml_text() [2/2]

PUGI__FN pugi::xml_text::xml_text ( )

Definition at line 6379 of file pugixml.cpp.

Member Function Documentation

◆ _data()

PUGI__FN xml_node_struct * pugi::xml_text::_data ( ) const
private

◆ _data_new()

PUGI__FN xml_node_struct * pugi::xml_text::_data_new ( )
private

Definition at line 6371 of file pugixml.cpp.

References _data(), _root, pugi::node_pcdata, and xml_node.

Referenced by set().

◆ as_bool()

PUGI__FN bool pugi::xml_text::as_bool ( bool  def = false) const

Definition at line 6444 of file pugixml.cpp.

References _data(), and get_value_bool().

◆ as_double()

PUGI__FN double pugi::xml_text::as_double ( double  def = 0) const

Definition at line 6430 of file pugixml.cpp.

References _data(), and get_value_double().

◆ as_float()

PUGI__FN float pugi::xml_text::as_float ( float  def = 0) const

Definition at line 6437 of file pugixml.cpp.

References _data(), and get_value_float().

◆ as_int()

PUGI__FN int pugi::xml_text::as_int ( int  def = 0) const

Definition at line 6416 of file pugixml.cpp.

References _data(), and get_value_int().

◆ as_string()

PUGI__FN const char_t * pugi::xml_text::as_string ( const char_t def = PUGIXML_TEXT("")) const

Definition at line 6409 of file pugixml.cpp.

References _data().

◆ as_uint()

PUGI__FN unsigned int pugi::xml_text::as_uint ( unsigned int  def = 0) const

Definition at line 6423 of file pugixml.cpp.

References _data(), and get_value_uint().

◆ data()

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

Definition at line 6601 of file pugixml.cpp.

References _data(), and xml_node.

◆ empty()

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

Definition at line 6397 of file pugixml.cpp.

References _data().

◆ get()

PUGI__FN const char_t * pugi::xml_text::get ( ) const

Definition at line 6402 of file pugixml.cpp.

References _data(), and PUGIXML_TEXT.

◆ operator unspecified_bool_type()

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

Definition at line 6387 of file pugixml.cpp.

References _data(), and pugi::unspecified_bool_xml_text().

◆ operator!()

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

Definition at line 6392 of file pugixml.cpp.

References _data().

◆ operator=() [1/8]

PUGI__FN xml_text & pugi::xml_text::operator= ( bool  rhs)

Definition at line 6581 of file pugixml.cpp.

References set().

◆ operator=() [2/8]

PUGI__FN xml_text & pugi::xml_text::operator= ( const char_t rhs)

Definition at line 6539 of file pugixml.cpp.

References set().

◆ operator=() [3/8]

PUGI__FN xml_text & pugi::xml_text::operator= ( double  rhs)

Definition at line 6569 of file pugixml.cpp.

References set().

◆ operator=() [4/8]

PUGI__FN xml_text & pugi::xml_text::operator= ( float  rhs)

Definition at line 6575 of file pugixml.cpp.

References set().

◆ operator=() [5/8]

PUGI__FN xml_text & pugi::xml_text::operator= ( int  rhs)

Definition at line 6545 of file pugixml.cpp.

References set().

◆ operator=() [6/8]

PUGI__FN xml_text & pugi::xml_text::operator= ( long  rhs)

Definition at line 6557 of file pugixml.cpp.

References set().

◆ operator=() [7/8]

PUGI__FN xml_text & pugi::xml_text::operator= ( unsigned int  rhs)

Definition at line 6551 of file pugixml.cpp.

References set().

◆ operator=() [8/8]

PUGI__FN xml_text & pugi::xml_text::operator= ( unsigned long  rhs)

Definition at line 6563 of file pugixml.cpp.

References set().

◆ set() [1/8]

PUGI__FN bool pugi::xml_text::set ( bool  rhs)

Definition at line 6516 of file pugixml.cpp.

References _data_new(), set_value_bool(), and xml_memory_page_value_allocated_mask.

◆ set() [2/8]

PUGI__FN bool pugi::xml_text::set ( const char_t rhs)

Definition at line 6467 of file pugixml.cpp.

References _data_new(), strcpy_insitu(), strlength(), and xml_memory_page_value_allocated_mask.

Referenced by operator=().

◆ set() [3/8]

PUGI__FN bool pugi::xml_text::set ( double  rhs)

◆ set() [4/8]

PUGI__FN bool pugi::xml_text::set ( float  rhs)

◆ set() [5/8]

PUGI__FN bool pugi::xml_text::set ( int  rhs)

Definition at line 6474 of file pugixml.cpp.

References _data_new(), and xml_memory_page_value_allocated_mask.

◆ set() [6/8]

PUGI__FN bool pugi::xml_text::set ( long  rhs)

Definition at line 6488 of file pugixml.cpp.

References _data_new(), and xml_memory_page_value_allocated_mask.

◆ set() [7/8]

PUGI__FN bool pugi::xml_text::set ( unsigned int  rhs)

Definition at line 6481 of file pugixml.cpp.

References _data_new(), and xml_memory_page_value_allocated_mask.

◆ set() [8/8]

PUGI__FN bool pugi::xml_text::set ( unsigned long  rhs)

Definition at line 6495 of file pugixml.cpp.

References _data_new(), and xml_memory_page_value_allocated_mask.

Friends And Related Function Documentation

◆ xml_node

friend class xml_node
friend

Definition at line 711 of file pugixml.hpp.

Referenced by _data_new(), and data().

Member Data Documentation

◆ _root

xml_node_struct* pugi::xml_text::_root
private

Definition at line 713 of file pugixml.hpp.

Referenced by _data(), and _data_new().


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