ADTF  3.18.2
StructElementAccessIterator

Iterator to iterate thru the StructTypeAccess. More...

Public Types

typedef StructElementAccessIterator self_type
 this iterator type definition
 
typedef StructElementAccess value_type
 iterator value type definition
 
typedef StructElementAccessreference
 reference value type definition
 
typedef const StructElementAccessconst_reference
 const reference value type definition
 
typedef StructElementAccesspointer
 pointer value type definition
 
typedef const StructElementAccessconst_pointer
 pointer to const data value type definition
 
typedef int difference_type
 difference value type definition
 
typedef std::forward_iterator_tag iterator_category
 iterator type definition
 

Public Member Functions

 StructElementAccessIterator (datamodel::StructType::Elements::const_iterator other_it, datamodel::StructType::Elements::const_iterator end_it, OptionalSize struct_ser, OptionalSize struct_deser)
 Construct a new Struct Element Access Iterator. More...
 
self_type operator++ ()
 increasing operator to the next position. More...
 
self_type operator++ (int junk)
 iterator increasing. More...
 
const_reference operator* () const
 defering access (check for end!) More...
 
const_pointer operator-> () const
 pointer access (check for end!) More...
 
bool operator== (const self_type &rhs) const
 checks for equality (refering the same element!) More...
 
bool operator!= (const self_type &rhs) const
 checks for not equality (does not refer the same element!) More...
 

Private Attributes

datamodel::StructType::Elements::const_iterator _base_it
 
datamodel::StructType::Elements::const_iterator _end_it
 
StructElementAccess _ref
 
OptionalSize _struct_ser
 
OptionalSize _struct_deser
 

Detailed Description

Iterator to iterate thru the StructTypeAccess.

See also
StructTypeAccess::begin, StructTypeAccess::cbegin

Definition at line 235 of file dd_struct_access.h.

Constructor & Destructor Documentation

◆ StructElementAccessIterator()

Construct a new Struct Element Access Iterator.

Parameters
other_itIterator it refers to
end_itend position it referes to
struct_serserialized position of the struct access this element belongs to.
struct_deserdeserialized position of the struct access this element belongs to.

Member Function Documentation

◆ operator!=()

bool operator!= ( const self_type rhs) const

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

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

◆ operator*()

const_reference operator* ( ) const

defering access (check for end!)

Returns
const reference

◆ operator++() [1/2]

self_type operator++ ( )

increasing operator to the next position.

Returns
self_type

◆ operator++() [2/2]

self_type operator++ ( int  junk)

iterator increasing.

Parameters
junkjunks to increase
Returns
self_type

◆ operator->()

const_pointer operator-> ( ) const

pointer access (check for end!)

Returns
const pointer

◆ operator==()

bool operator== ( const self_type rhs) const

checks for equality (refering the same element!)

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