MADARA
3.0.6
|
A class used to manage a group of attributes. More...
#include <tinyxml.h>
Public Member Functions | |
TiXmlAttributeSet () | |
~TiXmlAttributeSet () | |
void | Add (TiXmlAttribute *attribute) |
TiXmlAttribute * | Find (const char *_name) const |
TiXmlAttribute * | Find (const std::string &_name) const |
TiXmlAttribute * | FindOrCreate (const char *_name) |
TiXmlAttribute * | FindOrCreate (const std::string &_name) |
const TiXmlAttribute * | First () const |
TiXmlAttribute * | First () |
const TiXmlAttribute * | Last () const |
TiXmlAttribute * | Last () |
void | Remove (TiXmlAttribute *attribute) |
Private Member Functions | |
TiXmlAttributeSet (const TiXmlAttributeSet &) | |
void | operator= (const TiXmlAttributeSet &) |
Private Attributes | |
TiXmlAttribute | sentinel |
A class used to manage a group of attributes.
It is only used internally, both by the ELEMENT and the DECLARATION.
The set can be changed transparent to the Element and Declaration classes that use it, but NOT transparent to the Attribute which has to implement a next() and previous() method. Which makes it a bit problematic and prevents the use of STL.
This version is implemented with circular lists because:
TiXmlAttributeSet::TiXmlAttributeSet | ( | ) |
Definition at line 1455 of file tinyxml.cpp.
TiXmlAttributeSet::~TiXmlAttributeSet | ( | ) |
Definition at line 1462 of file tinyxml.cpp.
|
private |
void TiXmlAttributeSet::Add | ( | TiXmlAttribute * | attribute | ) |
Definition at line 1469 of file tinyxml.cpp.
TiXmlAttribute * TiXmlAttributeSet::Find | ( | const char * | _name | ) | const |
Definition at line 1527 of file tinyxml.cpp.
TiXmlAttribute * TiXmlAttributeSet::Find | ( | const std::string & | _name | ) | const |
Definition at line 1504 of file tinyxml.cpp.
TiXmlAttribute * TiXmlAttributeSet::FindOrCreate | ( | const char * | _name | ) |
Definition at line 1538 of file tinyxml.cpp.
TiXmlAttribute * TiXmlAttributeSet::FindOrCreate | ( | const std::string & | _name | ) |
Definition at line 1514 of file tinyxml.cpp.
|
inline |
|
inline |
|
inline |
|
inline |
|
private |
void TiXmlAttributeSet::Remove | ( | TiXmlAttribute * | attribute | ) |
Definition at line 1484 of file tinyxml.cpp.
|
private |