MADARA  3.0.6
TiXmlAttributeSet Class Reference

A class used to manage a group of attributes. More...

#include <tinyxml.h>

Collaboration diagram for TiXmlAttributeSet:

Public Member Functions

 TiXmlAttributeSet ()
 
 ~TiXmlAttributeSet ()
 
void Add (TiXmlAttribute *attribute)
 
TiXmlAttributeFind (const char *_name) const
 
TiXmlAttributeFind (const std::string &_name) const
 
TiXmlAttributeFindOrCreate (const char *_name)
 
TiXmlAttributeFindOrCreate (const std::string &_name)
 
const TiXmlAttributeFirst () const
 
TiXmlAttributeFirst ()
 
const TiXmlAttributeLast () const
 
TiXmlAttributeLast ()
 
void Remove (TiXmlAttribute *attribute)
 

Private Member Functions

 TiXmlAttributeSet (const TiXmlAttributeSet &)
 
void operator= (const TiXmlAttributeSet &)
 

Private Attributes

TiXmlAttribute sentinel
 

Detailed Description

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:

  • I like circular lists
  • it demonstrates some independence from the (typical) doubly linked list.

Definition at line 927 of file tinyxml.h.

Constructor & Destructor Documentation

TiXmlAttributeSet::TiXmlAttributeSet ( )

Definition at line 1455 of file tinyxml.cpp.

TiXmlAttributeSet::~TiXmlAttributeSet ( )

Definition at line 1462 of file tinyxml.cpp.

TiXmlAttributeSet::TiXmlAttributeSet ( const TiXmlAttributeSet )
private

Member Function Documentation

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.

const TiXmlAttribute* TiXmlAttributeSet::First ( ) const
inline

Definition at line 936 of file tinyxml.h.

TiXmlAttribute* TiXmlAttributeSet::First ( )
inline

Definition at line 937 of file tinyxml.h.

const TiXmlAttribute* TiXmlAttributeSet::Last ( ) const
inline

Definition at line 938 of file tinyxml.h.

TiXmlAttribute* TiXmlAttributeSet::Last ( )
inline

Definition at line 939 of file tinyxml.h.

void TiXmlAttributeSet::operator= ( const TiXmlAttributeSet )
private
void TiXmlAttributeSet::Remove ( TiXmlAttribute attribute)

Definition at line 1484 of file tinyxml.cpp.

Member Data Documentation

TiXmlAttribute TiXmlAttributeSet::sentinel
private

Definition at line 956 of file tinyxml.h.


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