pugi::xml_attribute Class Reference

#include <pugixml.hpp>

Collaboration diagram for pugi::xml_attribute:

Collaboration graph
[legend]

List of all members.

Public Member Functions

 xml_attribute ()
 xml_attribute (xml_attribute_struct *attr)
 operator unspecified_bool_type () const
bool operator! () const
bool operator== (const xml_attribute &r) const
bool operator!= (const xml_attribute &r) const
bool operator< (const xml_attribute &r) const
bool operator> (const xml_attribute &r) const
bool operator<= (const xml_attribute &r) const
bool operator>= (const xml_attribute &r) const
bool empty () const
const char_tname () const
const char_tvalue () 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_name (const char_t *rhs)
bool set_value (const char_t *rhs)
bool set_value (int rhs)
bool set_value (unsigned int rhs)
bool set_value (double rhs)
bool set_value (bool rhs)
xml_attributeoperator= (const char_t *rhs)
xml_attributeoperator= (int rhs)
xml_attributeoperator= (unsigned int rhs)
xml_attributeoperator= (double rhs)
xml_attributeoperator= (bool rhs)
xml_attribute next_attribute () const
xml_attribute previous_attribute () const
size_t hash_value () const
xml_attribute_structinternal_object () const

Friends

class xml_attribute_iterator
class xml_node


Detailed Description

Definition at line 274 of file pugixml.hpp.


Constructor & Destructor Documentation

PUGI__FN pugi::xml_attribute::xml_attribute (  ) 

Definition at line 3346 of file pugixml.cpp.

Referenced by next_attribute(), and previous_attribute().

Here is the caller graph for this function:

PUGI__FN pugi::xml_attribute::xml_attribute ( xml_attribute_struct attr  )  [explicit]

Definition at line 3350 of file pugixml.cpp.


Member Function Documentation

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

Definition at line 3433 of file pugixml.cpp.

References get_value_bool(), and pugi::xml_attribute_struct::value.

Here is the call graph for this function:

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

Definition at line 3423 of file pugixml.cpp.

References get_value_double(), and pugi::xml_attribute_struct::value.

Here is the call graph for this function:

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

Definition at line 3428 of file pugixml.cpp.

References get_value_float(), and pugi::xml_attribute_struct::value.

Here is the call graph for this function:

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

Definition at line 3413 of file pugixml.cpp.

References get_value_int(), and pugi::xml_attribute_struct::value.

Here is the call graph for this function:

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

Definition at line 3408 of file pugixml.cpp.

References pugi::xml_attribute_struct::value.

Referenced by AlignedSentenceSyntax::XMLParse().

Here is the caller graph for this function:

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

Definition at line 3418 of file pugixml.cpp.

References get_value_uint(), and pugi::xml_attribute_struct::value.

Here is the call graph for this function:

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

Definition at line 3438 of file pugixml.cpp.

Referenced by pugi::xml_node::insert_attribute_after(), and pugi::xml_node::insert_attribute_before().

Here is the caller graph for this function:

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

Definition at line 3453 of file pugixml.cpp.

PUGI__FN xml_attribute_struct * pugi::xml_attribute::internal_object (  )  const

Definition at line 3458 of file pugixml.cpp.

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

PUGI__FN xml_attribute pugi::xml_attribute::next_attribute (  )  const

Definition at line 3398 of file pugixml.cpp.

References pugi::xml_attribute_struct::next_attribute, and xml_attribute().

Here is the call graph for this function:

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

Definition at line 3358 of file pugixml.cpp.

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

Definition at line 3363 of file pugixml.cpp.

PUGI__FN bool pugi::xml_attribute::operator!= ( const xml_attribute r  )  const

Definition at line 3373 of file pugixml.cpp.

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

Definition at line 3378 of file pugixml.cpp.

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

Definition at line 3388 of file pugixml.cpp.

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

Definition at line 3487 of file pugixml.cpp.

References set_value().

Here is the call graph for this function:

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

Definition at line 3481 of file pugixml.cpp.

References set_value().

Here is the call graph for this function:

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

Definition at line 3475 of file pugixml.cpp.

References set_value().

Here is the call graph for this function:

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

Definition at line 3469 of file pugixml.cpp.

References set_value().

Here is the call graph for this function:

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

Definition at line 3463 of file pugixml.cpp.

References set_value().

Here is the call graph for this function:

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

Definition at line 3368 of file pugixml.cpp.

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

Definition at line 3383 of file pugixml.cpp.

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

Definition at line 3393 of file pugixml.cpp.

PUGI__FN xml_attribute pugi::xml_attribute::previous_attribute (  )  const

Definition at line 3403 of file pugixml.cpp.

References pugi::xml_attribute_struct::next_attribute, pugi::xml_attribute_struct::prev_attribute_c, and xml_attribute().

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

Here is the call graph for this function:

Here is the caller graph for this function:

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

Definition at line 3493 of file pugixml.cpp.

References pugi::xml_attribute_struct::header, pugi::xml_attribute_struct::name, and strcpy_insitu().

Referenced by pugi::xml_node::append_attribute(), pugi::xml_node::insert_attribute_after(), pugi::xml_node::insert_attribute_before(), and pugi::xml_node::prepend_attribute().

Here is the call graph for this function:

Here is the caller graph for this function:

PUGI__FN bool pugi::xml_attribute::set_value ( bool  rhs  ) 

Definition at line 3528 of file pugixml.cpp.

References pugi::xml_attribute_struct::header, set_value_convert(), and pugi::xml_attribute_struct::value.

Here is the call graph for this function:

PUGI__FN bool pugi::xml_attribute::set_value ( double  rhs  ) 

Definition at line 3521 of file pugixml.cpp.

References pugi::xml_attribute_struct::header, set_value_convert(), and pugi::xml_attribute_struct::value.

Here is the call graph for this function:

PUGI__FN bool pugi::xml_attribute::set_value ( unsigned int  rhs  ) 

Definition at line 3514 of file pugixml.cpp.

References pugi::xml_attribute_struct::header, set_value_convert(), and pugi::xml_attribute_struct::value.

Here is the call graph for this function:

PUGI__FN bool pugi::xml_attribute::set_value ( int  rhs  ) 

Definition at line 3507 of file pugixml.cpp.

References pugi::xml_attribute_struct::header, set_value_convert(), and pugi::xml_attribute_struct::value.

Here is the call graph for this function:

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

Definition at line 3500 of file pugixml.cpp.

References pugi::xml_attribute_struct::header, strcpy_insitu(), and pugi::xml_attribute_struct::value.

Referenced by pugi::xml_node::append_copy(), pugi::xml_node::insert_copy_after(), pugi::xml_node::insert_copy_before(), operator=(), and pugi::xml_node::prepend_copy().

Here is the call graph for this function:

Here is the caller graph for this function:

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


Friends And Related Function Documentation

friend class xml_attribute_iterator [friend]

Definition at line 276 of file pugixml.hpp.

friend class xml_node [friend]

Definition at line 277 of file pugixml.hpp.


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

Generated on Thu Jul 6 00:34:22 2017 for Moses by  doxygen 1.5.9