ADTF
ElementIteratorConst< ElementAccessType >

The const element iterator. More...

Public Types

using element_type = typename ElementAccessType::element_type
 The element type in use.
 
using value_type = const element_type
 const value type of the iterator
 
using const_reference = value_type &
 const reference value type
 
using const_pointer = 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

 ElementIteratorConst ()=delete
 default CTOR
 
 ElementIteratorConst (value_type &&element)
 CTOR for one element. More...
 
ElementIteratorConstoperator++ ()
 increasing operator to the next position. More...
 
ElementIteratorConst operator++ (int)
 iterator increasing. More...
 
bool operator== (const ElementIteratorConst &rhs) const
 checks for equality (refering the same element!) More...
 
bool operator!= (const ElementIteratorConst &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...
 

Private Member Functions

void next ()
 

Private Attributes

element_type _element
 

Detailed Description

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

The const element iterator.

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

Definition at line 161 of file codec_iterator.h.

Constructor & Destructor Documentation

◆ ElementIteratorConst()

ElementIteratorConst ( value_type &&  element)
inline

CTOR for one element.

Parameters
elementthe element.

Definition at line 178 of file codec_iterator.h.

Member Function Documentation

◆ operator!=()

bool operator!= ( const ElementIteratorConst< 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 219 of file codec_iterator.h.

◆ operator*()

const_reference operator* ( ) const
inline

defering access (check for end!)

Returns
const reference

Definition at line 228 of file codec_iterator.h.

◆ operator++() [1/2]

ElementIteratorConst& operator++ ( )
inline

increasing operator to the next position.

Returns
self_type

Definition at line 185 of file codec_iterator.h.

◆ operator++() [2/2]

ElementIteratorConst operator++ ( int  )
inline

iterator increasing.

Returns
self_type

Definition at line 194 of file codec_iterator.h.

◆ operator->()

const_pointer operator-> ( ) const
inline

pointer access (check for end!)

Returns
const pointer

Definition at line 237 of file codec_iterator.h.

◆ operator==()

bool operator== ( const ElementIteratorConst< 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 208 of file codec_iterator.h.