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

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

Detailed Description

Const iterator for iterating over attributes.

Member Typedef Documentation

◆ value_type

typedef std::string value_type

STL-conform typedefs.

The value type.

◆ pointer

typedef const std::string* pointer

The pointer type.

◆ reference

typedef const 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

◆ const_attribute_iterator() [1/2]

Constructor.

◆ const_attribute_iterator() [2/2]

const_attribute_iterator ( _xmlNode *  iNode,
_xmlAttr *  iAttribute 
)

Constructor.

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

Member Function Documentation

◆ operator==()

bool operator== ( const const_attribute_iterator other) const

Compare two attribute iterators.

Parameters
[in]otherThe other iterator
Returns
true if equal

◆ operator!=()

bool operator!= ( const const_attribute_iterator other) const

Compare two attribute iterators.

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

◆ operator++()

const_attribute_iterator& operator++ ( )

Preincrement.

◆ operator--()

const_attribute_iterator& operator-- ( )

Predecrement.

◆ operator*()

Attribute operator* ( ) const

Dereference operator 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 attribute.

Returns
Namespace information

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