Open
Graph Drawing
Framework

 v. 2023.09 (Elderberry)
 

pugi::xml_attribute Class Reference

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

Public Member Functions

 xml_attribute ()
 
 xml_attribute (xml_attribute_struct *attr)
 
bool as_bool (bool def=false) const
 
double as_double (double def=0) const
 
float as_float (float def=0) const
 
int as_int (int def=0) const
 
long long as_llong (long long def=0) const
 
const char_tas_string (const char_t *def=PUGIXML_TEXT("")) const
 
unsigned int as_uint (unsigned int def=0) const
 
unsigned long long as_ullong (unsigned long long def=0) const
 
bool empty () const
 
size_t hash_value () const
 
xml_attribute_struct * internal_object () const
 
const char_tname () const
 
xml_attribute next_attribute () const
 
 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
 
xml_attributeoperator= (bool rhs)
 
xml_attributeoperator= (const char_t *rhs)
 
xml_attributeoperator= (double rhs)
 
xml_attributeoperator= (float rhs)
 
xml_attributeoperator= (int rhs)
 
xml_attributeoperator= (long long rhs)
 
xml_attributeoperator= (unsigned int rhs)
 
xml_attributeoperator= (unsigned long long rhs)
 
bool operator== (const xml_attribute &r) const
 
bool operator> (const xml_attribute &r) const
 
bool operator>= (const xml_attribute &r) const
 
xml_attribute previous_attribute () const
 
bool set_name (const char_t *rhs)
 
bool set_value (bool rhs)
 
bool set_value (const char_t *rhs)
 
bool set_value (double rhs)
 
bool set_value (float rhs)
 
bool set_value (int rhs)
 
bool set_value (long long rhs)
 
bool set_value (unsigned int rhs)
 
bool set_value (unsigned long long rhs)
 
const char_tvalue () const
 

Private Types

using unspecified_bool_type = void(*)(xml_attribute ***)
 

Private Attributes

xml_attribute_struct * _attr
 

Friends

class xml_attribute_iterator
 
class xml_node
 

Detailed Description

Definition at line 299 of file pugixml.h.

Member Typedef Documentation

◆ unspecified_bool_type

Definition at line 307 of file pugixml.h.

Constructor & Destructor Documentation

◆ xml_attribute() [1/2]

pugi::xml_attribute::xml_attribute ( )

◆ xml_attribute() [2/2]

pugi::xml_attribute::xml_attribute ( xml_attribute_struct *  attr)
explicit

Member Function Documentation

◆ as_bool()

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

◆ as_double()

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

◆ as_float()

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

◆ as_int()

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

◆ as_llong()

long long pugi::xml_attribute::as_llong ( long long  def = 0) const

◆ as_string()

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

◆ as_uint()

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

◆ as_ullong()

unsigned long long pugi::xml_attribute::as_ullong ( unsigned long long  def = 0) const

◆ empty()

bool pugi::xml_attribute::empty ( ) const

◆ hash_value()

size_t pugi::xml_attribute::hash_value ( ) const

◆ internal_object()

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

◆ name()

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

◆ next_attribute()

xml_attribute pugi::xml_attribute::next_attribute ( ) const

◆ operator unspecified_bool_type()

pugi::xml_attribute::operator unspecified_bool_type ( ) const

◆ operator!()

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

◆ operator!=()

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

◆ operator<()

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

◆ operator<=()

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

◆ operator=() [1/8]

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

◆ operator=() [2/8]

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

◆ operator=() [3/8]

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

◆ operator=() [4/8]

xml_attribute& pugi::xml_attribute::operator= ( float  rhs)

◆ operator=() [5/8]

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

◆ operator=() [6/8]

xml_attribute& pugi::xml_attribute::operator= ( long long  rhs)

◆ operator=() [7/8]

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

◆ operator=() [8/8]

xml_attribute& pugi::xml_attribute::operator= ( unsigned long long  rhs)

◆ operator==()

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

◆ operator>()

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

◆ operator>=()

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

◆ previous_attribute()

xml_attribute pugi::xml_attribute::previous_attribute ( ) const

◆ set_name()

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

◆ set_value() [1/8]

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

◆ set_value() [2/8]

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

◆ set_value() [3/8]

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

◆ set_value() [4/8]

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

◆ set_value() [5/8]

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

◆ set_value() [6/8]

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

◆ set_value() [7/8]

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

◆ set_value() [8/8]

bool pugi::xml_attribute::set_value ( unsigned long long  rhs)

◆ value()

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

Friends And Related Function Documentation

◆ xml_attribute_iterator

friend class xml_attribute_iterator
friend

Definition at line 301 of file pugixml.h.

◆ xml_node

friend class xml_node
friend

Definition at line 302 of file pugixml.h.

Member Data Documentation

◆ _attr

xml_attribute_struct* pugi::xml_attribute::_attr
private

Definition at line 305 of file pugixml.h.


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