MIRA
|
Iterator for iterating over attributes. More...
#include <xml/XMLDom.h>
Public Types | |
typedef std::string | value_type |
STL-conform typedefs. More... | |
typedef std::string * | pointer |
The pointer type. More... | |
typedef 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 | |
attribute_iterator () | |
Constructor. More... | |
attribute_iterator (_xmlNode *iNode, _xmlAttr *iAttribute) | |
Constructor. More... | |
const attribute_iterator & | operator= (const std::string &value) |
Set the value of the attribute. More... | |
bool | operator== (const attribute_iterator &other) const |
Compare two attribute iterators. More... | |
bool | operator!= (const attribute_iterator &other) const |
Compare two attribute iterators. More... | |
attribute_iterator & | operator++ () |
Preincrement. More... | |
attribute_iterator & | operator-- () |
Predecrement. More... | |
Attribute | operator* () const |
Dereference operator to 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 node. More... | |
Friends | |
class | sibling_iterator |
Iterator for iterating over attributes.
typedef std::string value_type |
STL-conform typedefs.
The value type.
typedef std::string* pointer |
The pointer type.
typedef 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.
attribute_iterator | ( | _xmlNode * | iNode, |
_xmlAttr * | iAttribute | ||
) |
Constructor.
[in] | iNode | the parent node for the attribute |
[in] | iAttribute | the attribute |
const attribute_iterator& operator= | ( | const std::string & | value | ) |
Set the value of the attribute.
[in] | value | The value. |
bool operator== | ( | const attribute_iterator & | other | ) | const |
Compare two attribute iterators.
[in] | other | The other iterator |
bool operator!= | ( | const attribute_iterator & | other | ) | const |
Compare two attribute iterators.
[in] | other | The other iterator |
attribute_iterator& operator++ | ( | ) |
Preincrement.
attribute_iterator& operator-- | ( | ) |
Predecrement.
Attribute operator* | ( | ) | const |
Dereference operator to 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 node.
|
friend |