MIRA
Public Types | Public Member Functions | Friends | List of all members
XMLDom::attribute_iterator Class Reference

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_iteratoroperator= (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_iteratoroperator++ ()
 Preincrement. More...
 
attribute_iteratoroperator-- ()
 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
 

Detailed Description

Iterator for iterating over attributes.

Member Typedef Documentation

◆ value_type

typedef std::string value_type

STL-conform typedefs.

The value type.

◆ pointer

typedef std::string* pointer

The pointer type.

◆ reference

typedef std::string& reference

The reference type.

◆ difference_type

typedef ptrdiff_t difference_type

The difference type.

◆ iterator_category

typedef std::bidirectional_iterator_tag iterator_category

The iterator category.

Constructor & Destructor Documentation

◆ attribute_iterator() [1/2]

Constructor.

◆ attribute_iterator() [2/2]

attribute_iterator ( _xmlNode *  iNode,
_xmlAttr *  iAttribute 
)

Constructor.

Parameters
[in]iNodethe parent node for the attribute
[in]iAttributethe attribute

Member Function Documentation

◆ operator=()

const attribute_iterator& operator= ( const std::string &  value)

Set the value of the attribute.

Parameters
[in]valueThe value.

◆ operator==()

bool operator== ( const attribute_iterator other) const

Compare two attribute iterators.

Parameters
[in]otherThe other iterator
Returns
true if equal

◆ operator!=()

bool operator!= ( const attribute_iterator other) const

Compare two attribute iterators.

Parameters
[in]otherThe other iterator
Returns
true if not equal

◆ operator++()

attribute_iterator& operator++ ( )

Preincrement.

◆ operator--()

attribute_iterator& operator-- ( )

Predecrement.

◆ operator*()

Attribute operator* ( ) const

Dereference operator to Attribute.

Returns
A pair of attribute name and value attribute.

◆ name()

std::string name ( ) const

Get the name of the attribute.

Returns
The name.

◆ value()

std::string value ( ) const

Get the value of the attribute.

Returns
The value.

◆ nameSpace()

NameSpace nameSpace ( ) const

Return the namespace information of the node.

Returns
Namespace information

Friends And Related Function Documentation

◆ sibling_iterator

friend class sibling_iterator
friend

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