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

Iterator for iterating over xmlns declarations. More...

#include <xml/XMLDom.h>

Public Types

using value_type = std::string
 STL-conform typedefs. More...
 
using pointer = std::string *
 The pointer type. More...
 
using reference = std::string &
 The reference type. More...
 
using difference_type = ptrdiff_t
 The difference type. More...
 
using iterator_category = std::bidirectional_iterator_tag
 The iterator category. More...
 

Public Member Functions

 namespace_iterator ()=default
 Constructor. More...
 
 namespace_iterator (_xmlNs *ns)
 Constructor. More...
 
namespace_iteratoroperator++ ()
 Preincrement. More...
 
bool operator== (const namespace_iterator &other) const
 Compare two iterators. More...
 
bool operator!= (const namespace_iterator &other) const
 Compare two iterators. More...
 
std::string prefix () const
 Get the prefix of the ns. More...
 
std::string href () const
 Get the href of the ns. More...
 

Detailed Description

Iterator for iterating over xmlns declarations.

Member Typedef Documentation

◆ value_type

using value_type = std::string

STL-conform typedefs.

The value type.

◆ pointer

using pointer = std::string *

The pointer type.

◆ reference

using reference = std::string &

The reference type.

◆ difference_type

using difference_type = ptrdiff_t

The difference type.

◆ iterator_category

using iterator_category = std::bidirectional_iterator_tag

The iterator category.

Constructor & Destructor Documentation

◆ namespace_iterator() [1/2]

namespace_iterator ( )
default

Constructor.

◆ namespace_iterator() [2/2]

namespace_iterator ( _xmlNs *  ns)
inline

Constructor.

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

Member Function Documentation

◆ operator++()

namespace_iterator& operator++ ( )

Preincrement.

◆ operator==()

bool operator== ( const namespace_iterator other) const

Compare two iterators.

Parameters
[in]otherThe other iterator
Returns
true if equal

◆ operator!=()

bool operator!= ( const namespace_iterator other) const

Compare two iterators.

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

◆ prefix()

std::string prefix ( ) const

Get the prefix of the ns.

Returns
The prefix.

◆ href()

std::string href ( ) const

Get the href of the ns.

Returns
The href.

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