Dev Essential  1.6.3
Loading...
Searching...
No Matches
ddl::dd::StructArrayElementAccessIterator Class Reference

#include <dd_struct_access.h>

Public Types

typedef StructArrayElementAccessIterator 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

 StructArrayElementAccessIterator (const StructArrayElementAccessIterator &)
 Copy CTOR.
 
StructArrayElementAccessIteratoroperator= (const StructArrayElementAccessIterator &)
 Copy Assignment Operator.
 
 StructArrayElementAccessIterator (StructArrayElementAccessIterator &&) noexcept
 Move CTOR.
 
StructArrayElementAccessIteratoroperator= (StructArrayElementAccessIterator &&) noexcept
 Move Assignment Operator.
 
 ~StructArrayElementAccessIterator ()
 DTOR.
 
self_typeoperator++ ()
 increasing operator to the next position.
 
self_type operator++ (int)
 iterator increasing.
 
const_reference operator* () const
 defering access (check for end!)
 
const_pointer operator-> () const
 pointer access (check for end!)
 
bool operator== (const self_type &rhs) const
 checks for equality (refering the same element!)
 
bool operator!= (const self_type &rhs) const
 checks for not equality
 

Friends

class StructElementAccess
 

Detailed Description

Forward iterator for array elements of a StructElementAccess. This will iterate over the array elements of a StructElementAccess and provide access to the StructElementAccess at the certain array position. The iterator will be invalid if the end of the array is reached.

See also
StructElementAccess::cbegin, StructElementAccess::cend, StructElementAccess::begin, StructElementAccess::end

Member Function Documentation

◆ operator!=()

bool ddl::dd::StructArrayElementAccessIterator::operator!= ( const self_type & rhs) const

checks for not equality

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

◆ operator*()

const_reference ddl::dd::StructArrayElementAccessIterator::operator* ( ) const

defering access (check for end!)

Returns
const reference

◆ operator++() [1/2]

self_type & ddl::dd::StructArrayElementAccessIterator::operator++ ( )

increasing operator to the next position.

Returns
self_type

◆ operator++() [2/2]

self_type ddl::dd::StructArrayElementAccessIterator::operator++ ( int )

iterator increasing.

Returns
self_type

◆ operator->()

const_pointer ddl::dd::StructArrayElementAccessIterator::operator-> ( ) const

pointer access (check for end!)

Returns
const pointer

◆ operator==()

bool ddl::dd::StructArrayElementAccessIterator::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

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