RobWorkProject  23.9.11-
Public Types | Public Member Functions | List of all members
DOMElem::Iterator Class Reference

DOMElem iterator based on concrete ItImpl implementations. More...

#include <DOMElem.hpp>

Public Types

typedef std::forward_iterator_tag iterator_category
 
typedef rw::core::Ptr< DOMElemvalue_type
 
typedef rw::core::Ptr< DOMElempointer
 
typedef rw::core::Ptr< DOMElemreference
 
typedef ptrdiff_t difference_type
 

Public Member Functions

 Iterator ()
 constructor
 
 Iterator (ItImpl *impl)
 constructor
 
 Iterator (Iterator const &right)
 constructor
 
virtual ~Iterator ()
 destructor
 
Iteratoroperator= (Iterator const &right)
 Assignment operator. More...
 
virtual rw::core::Ptr< DOMElemoperator* ()
 Reference to the T element.
 
virtual rw::core::Ptr< DOMElemoperator-> ()
 Pointer to the T element.
 
Iteratoroperator++ ()
 Increments the position of the iterator. More...
 
virtual bool operator== (const Iterator &other) const
 Increments the position of the iterator. More...
 
virtual bool operator!= (const Iterator &other) const
 Tests whether the positions of two iterators are unequal. More...
 

Detailed Description

DOMElem iterator based on concrete ItImpl implementations.

Member Typedef Documentation

◆ difference_type

typedef ptrdiff_t difference_type

Difference type.

◆ iterator_category

typedef std::forward_iterator_tag iterator_category

Iterator category.

◆ pointer

Pointer type.

◆ reference

Reference type.

◆ value_type

Value type.

Member Function Documentation

◆ operator!=()

virtual bool operator!= ( const Iterator other) const
inlinevirtual

Tests whether the positions of two iterators are unequal.

Parameters
other[in] ConcatVectorIterator to compare with
Returns
true if unequal

◆ operator++()

Iterator& operator++ ( )
inline

Increments the position of the iterator.

Returns
Reference to the incremented iterator

◆ operator=()

Iterator& operator= ( Iterator const &  right)
inline

Assignment operator.

Parameters
right[in] the Iterator to assign.
Returns
a reference to this iterator (for chaining).

◆ operator==()

virtual bool operator== ( const Iterator other) const
inlinevirtual

Increments the position of the iterator.

Returns
the ConcatVectorIterator with the value before the incrementation

Tests whether the positions of two iterators are equal

Parameters
other[in] ConcatVectorIterator to compare with
Returns
true if equal

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