MIRA
|
Const iterator for iterating over attributes. More...
#include <xml/XMLDom.h>
Public Types | |
typedef std::string | value_type |
STL-conform typedefs. More... | |
typedef const std::string * | pointer |
The pointer type. More... | |
typedef const std::string & | reference |
The reference type. More... | |
typedef ptrdiff_t | difference_type |
The difference type. More... | |
typedef std::bidirectional_iterator_tag | iterator_category |
The iterator category. More... | |
Public Member Functions | |
const_attribute_iterator () | |
Constructor. More... | |
const_attribute_iterator (_xmlNode *iNode, _xmlAttr *iAttribute) | |
Constructor. More... | |
bool | operator== (const const_attribute_iterator &other) const |
Compare two attribute iterators. More... | |
bool | operator!= (const const_attribute_iterator &other) const |
Compare two attribute iterators. More... | |
const_attribute_iterator & | operator++ () |
Preincrement. More... | |
const_attribute_iterator & | operator-- () |
Predecrement. More... | |
Attribute | operator* () const |
Dereference operator Attribute. More... | |
std::string | name () const |
Get the name of the attribute. More... | |
std::string | value () const |
Get the value of the attribute. More... | |
NameSpace | nameSpace () const |
Return the namespace information of the attribute. More... | |
Const iterator for iterating over attributes.
typedef std::string value_type |
STL-conform typedefs.
The value type.
typedef const std::string* pointer |
The pointer type.
typedef const std::string& reference |
The reference type.
typedef ptrdiff_t difference_type |
The difference type.
typedef std::bidirectional_iterator_tag iterator_category |
The iterator category.
Constructor.
const_attribute_iterator | ( | _xmlNode * | iNode, |
_xmlAttr * | iAttribute | ||
) |
Constructor.
[in] | iNode | the parent node for the attribute |
[in] | iAttribute | the attribute |
bool operator== | ( | const const_attribute_iterator & | other | ) | const |
Compare two attribute iterators.
[in] | other | The other iterator |
bool operator!= | ( | const const_attribute_iterator & | other | ) | const |
Compare two attribute iterators.
[in] | other | The other iterator |
const_attribute_iterator& operator++ | ( | ) |
Preincrement.
const_attribute_iterator& operator-- | ( | ) |
Predecrement.
Attribute operator* | ( | ) | const |
Dereference operator Attribute.
std::string name | ( | ) | const |
Get the name of the attribute.
std::string value | ( | ) | const |
Get the value of the attribute.
NameSpace nameSpace | ( | ) | const |
Return the namespace information of the attribute.