#include <tinyxml.h>
Public Member Functions | |
void | Add (TiXmlAttribute *attribute) |
const TiXmlAttribute * | Find (const char *_name) const |
TiXmlAttribute * | Find (const char *_name) |
const TiXmlAttribute * | Find (const std::string &_name) const |
TiXmlAttribute * | Find (const std::string &_name) |
const TiXmlAttribute * | First () const |
TiXmlAttribute * | First () |
TiXmlAttribute * | Last () |
const TiXmlAttribute * | Last () const |
void | Remove (TiXmlAttribute *attribute) |
TiXmlAttributeSet () | |
~TiXmlAttributeSet () | |
Private Member Functions | |
TiXmlAttributeSet & | operator= (const TiXmlAttributeSet &) |
TiXmlAttributeSet (const TiXmlAttributeSet &) | |
Private Attributes | |
TiXmlAttribute | sentinel |
TiXmlAttributeSet::TiXmlAttributeSet | ( | ) |
Definition at line 1520 of file tinyxml.cc.
References TiXmlAttribute::next, TiXmlAttribute::prev, and sentinel.
TiXmlAttributeSet::~TiXmlAttributeSet | ( | ) |
Definition at line 1527 of file tinyxml.cc.
References TiXmlAttribute::next, TiXmlAttribute::prev, and sentinel.
TiXmlAttributeSet::TiXmlAttributeSet | ( | const TiXmlAttributeSet & | ) | [private] |
void TiXmlAttributeSet::Add | ( | TiXmlAttribute * | attribute | ) |
Definition at line 1534 of file tinyxml.cc.
References Find(), TiXmlAttribute::Name(), TiXmlAttribute::next, TiXmlAttribute::prev, sentinel, and TIXML_STRING.
Referenced by TiXmlElement::Parse(), and TiXmlElement::SetAttribute().
{ #ifdef TIXML_USE_STL assert( !Find( TIXML_STRING( addMe->Name() ) ) ); // Shouldn't be multiply adding to the set. #else assert( !Find( addMe->Name() ) ); // Shouldn't be multiply adding to the set. #endif addMe->next = &sentinel; addMe->prev = sentinel.prev; sentinel.prev->next = addMe; sentinel.prev = addMe; }
TiXmlAttribute* TiXmlAttributeSet::Find | ( | const char * | _name | ) | [inline] |
Definition at line 922 of file tinyxml.h.
{ return const_cast< TiXmlAttribute* >( (const_cast< const TiXmlAttributeSet* >(this))->Find( _name ) ); }
const TiXmlAttribute* TiXmlAttributeSet::Find | ( | const std::string & | _name | ) | const |
TiXmlAttribute* TiXmlAttributeSet::Find | ( | const std::string & | _name | ) | [inline] |
Definition at line 927 of file tinyxml.h.
{ return const_cast< TiXmlAttribute* >( (const_cast< const TiXmlAttributeSet* >(this))->Find( _name ) ); }
const TiXmlAttribute * TiXmlAttributeSet::Find | ( | const char * | _name | ) | const |
Definition at line 1593 of file tinyxml.cc.
References TiXmlAttribute::name, mergeVDriftHistosByStation::name, TiXmlAttribute::next, python::Node::node, and sentinel.
Referenced by Add(), TiXmlElement::Attribute(), TiXmlElement::Parse(), TiXmlElement::QueryDoubleAttribute(), TiXmlElement::QueryIntAttribute(), TiXmlElement::QueryValueAttribute(), TiXmlElement::RemoveAttribute(), and TiXmlElement::SetAttribute().
TiXmlAttribute* TiXmlAttributeSet::First | ( | ) | [inline] |
const TiXmlAttribute* TiXmlAttributeSet::First | ( | ) | const [inline] |
Definition at line 916 of file tinyxml.h.
References TiXmlAttribute::next, and sentinel.
Referenced by TiXmlElement::Accept(), TiXmlElement::ClearThis(), TiXmlElement::CopyTo(), TiXmlElement::FirstAttribute(), and TiXmlElement::Print().
const TiXmlAttribute* TiXmlAttributeSet::Last | ( | ) | const [inline] |
Definition at line 918 of file tinyxml.h.
References TiXmlAttribute::prev, and sentinel.
Referenced by TiXmlElement::LastAttribute().
TiXmlAttribute* TiXmlAttributeSet::Last | ( | ) | [inline] |
TiXmlAttributeSet& TiXmlAttributeSet::operator= | ( | const TiXmlAttributeSet & | ) | [private] |
void TiXmlAttributeSet::Remove | ( | TiXmlAttribute * | attribute | ) |
Definition at line 1549 of file tinyxml.cc.
References TiXmlAttribute::next, python::Node::node, TiXmlAttribute::prev, and sentinel.
Referenced by TiXmlElement::ClearThis(), and TiXmlElement::RemoveAttribute().
TiXmlAttribute TiXmlAttributeSet::sentinel [private] |
Definition at line 939 of file tinyxml.h.
Referenced by Add(), Find(), First(), Last(), Remove(), TiXmlAttributeSet(), and ~TiXmlAttributeSet().