ADTF  3.15.1
ElementIterator< ElementAccessType >

The element iterator. More...

Public Types

using element_type = typename ElementAccessType::element_type
 The element type in use.
 
using value_type = element_type
 Value type of the iterator.
 
using reference = value_type &
 Reference value type.
 
using const_reference = const value_type &
 const reference value type
 
using pointer = value_type *
 Pointer type.
 
using const_pointer = const value_type *
 pointer to const data value type
 
using difference_type = int
 difference value type
 
using iterator_category = std::forward_iterator_tag
 iterator type
 

Public Member Functions

 ElementIterator ()=delete
 default CTOR
 
 ElementIterator (value_type &&element)
 CTOR for one element. More...
 
ElementIteratoroperator++ ()
 increasing operator to the next position. More...
 
ElementIterator operator++ (int)
 iterator increasing. More...
 
bool operator== (const ElementIterator &rhs) const
 checks for equality (refering the same element!) More...
 
bool operator!= (const ElementIterator &rhs) const
 checks for not equality (does not refer the same element!) More...
 
const_reference operator* () const
 defering access (check for end!) More...
 
const_pointer operator-> () const
 pointer access (check for end!) More...
 
reference operator* ()
 defering access (check for end!) More...
 
pointer operator-> ()
 pointer access (check for end!) More...
 

Private Member Functions

void next ()
 

Private Attributes

element_type _element
 

Detailed Description

template<typename ElementAccessType>
class ddl::codec::ElementIterator< ElementAccessType >

The element iterator.

See also
ChildElements.
Template Parameters
ElementAccessTypeThe element access concept type. (see concept templates FactoryElementAccess, DecoderElementAccess, CodecElementAccess)

Definition at line 48 of file codec_iterator.h.

Constructor & Destructor Documentation

◆ ElementIterator()

ElementIterator ( value_type &&  element)
inline

CTOR for one element.

Parameters
elementthe element.

Definition at line 68 of file codec_iterator.h.

Member Function Documentation

◆ operator!=()

bool operator!= ( const ElementIterator< ElementAccessType > &  rhs) const
inline

checks for not equality (does not refer the same element!)

Parameters
rhsthe other iterator
Returns
true is not equal
false is equal

Definition at line 110 of file codec_iterator.h.

◆ operator*() [1/2]

reference operator* ( )
inline

defering access (check for end!)

Returns
const reference

Definition at line 137 of file codec_iterator.h.

◆ operator*() [2/2]

const_reference operator* ( ) const
inline

defering access (check for end!)

Returns
const reference

Definition at line 119 of file codec_iterator.h.

◆ operator++() [1/2]

ElementIterator& operator++ ( )
inline

increasing operator to the next position.

Returns
self_type

Definition at line 76 of file codec_iterator.h.

◆ operator++() [2/2]

ElementIterator operator++ ( int  )
inline

iterator increasing.

Returns
self_type

Definition at line 86 of file codec_iterator.h.

References ElementIterator< ElementAccessType >::ElementIterator().

◆ operator->() [1/2]

pointer operator-> ( )
inline

pointer access (check for end!)

Returns
const pointer

Definition at line 146 of file codec_iterator.h.

◆ operator->() [2/2]

const_pointer operator-> ( ) const
inline

pointer access (check for end!)

Returns
const pointer

Definition at line 128 of file codec_iterator.h.

◆ operator==()

bool operator== ( const ElementIterator< ElementAccessType > &  rhs) const
inline

checks for equality (refering the same element!)

Parameters
rhsthe other iterator
Returns
true is equal
false is not equal

Definition at line 99 of file codec_iterator.h.