#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 | |
void | operator= (const TiXmlAttributeSet &) |
TiXmlAttributeSet (const TiXmlAttributeSet &) | |
Private Attributes | |
TiXmlAttribute | sentinel |
TiXmlAttributeSet::TiXmlAttributeSet | ( | ) |
Definition at line 1504 of file tinyxml.cc.
References TiXmlAttribute::next, TiXmlAttribute::prev, and sentinel.
TiXmlAttributeSet::~TiXmlAttributeSet | ( | ) |
Definition at line 1511 of file tinyxml.cc.
References TiXmlAttribute::next, TiXmlAttribute::prev, and sentinel.
TiXmlAttributeSet::TiXmlAttributeSet | ( | const TiXmlAttributeSet & | ) | [private] |
void TiXmlAttributeSet::Add | ( | TiXmlAttribute * | attribute | ) |
Definition at line 1518 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 920 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 925 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 1577 of file tinyxml.cc.
References AlCaRecoCosmics_cfg::name, TiXmlAttribute::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 914 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 916 of file tinyxml.h.
References TiXmlAttribute::prev, and sentinel.
Referenced by TiXmlElement::LastAttribute().
TiXmlAttribute* TiXmlAttributeSet::Last | ( | ) | [inline] |
void TiXmlAttributeSet::operator= | ( | const TiXmlAttributeSet & | ) | [private] |
void TiXmlAttributeSet::Remove | ( | TiXmlAttribute * | attribute | ) |
Definition at line 1533 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 937 of file tinyxml.h.
Referenced by Add(), Find(), First(), Last(), Remove(), TiXmlAttributeSet(), and ~TiXmlAttributeSet().