DataDictionaryIterator Class Reference

#include <datadictionaryiterator.h>

Inheritance diagram for DataDictionaryIterator:

Detailed Description

Iterator to iterate through all elements of a DataDictionary.

Public Types

using IteratorMemory = Int[10]
 
- Public Types inherited from ForEachIterator< DataDictionaryIterator >
using IsForEachIterator = std::true_type
 

Public Member Functions

 DataDictionaryIterator ()
 
 DataDictionaryIterator (const DataDictionaryInterface *dict, Bool end)
 
 DataDictionaryIterator (const DataDictionaryObjectInterface *dict, Bool end)
 
 DataDictionaryIterator (DataDictionaryIterator &&src)
 
 MAXON_OPERATOR_MOVE_ASSIGNMENT (DataDictionaryIterator)
 
 ~DataDictionaryIterator ()
 
DataDictionaryIteratoroperator++ ()
 
void operator++ (int)
 
Bool operator== (const DataDictionaryIterator &other) const
 
Bool operator!= (const DataDictionaryIterator &other) const
 
 operator Bool () const
 
const Tuple< const Data &, const Data & > * operator-> () const
 
const Tuple< const Data &, const Data & > & operator* () const
 
const DataGetKey () const
 
template<typename T >
Result< typename std::conditional< STD_IS_REPLACEMENT(void, T), void, typename ByValueParam< T >::type >::typeGet () const
 
const DataGet () const
 
- Public Member Functions inherited from ForEachIterator< DataDictionaryIterator >
MAXON_ATTRIBUTE_FORCE_INLINE ForEachIterator (ARGS &&... args)
 
String ToString (const FormatStatement *formatStatement=nullptr)
 
DataDictionaryIteratorFind (const T &v)
 
Int FindIndex (const T &v)
 
MAXON_ATTRIBUTE_FORCE_INLINE Bool Contains (const T &v)
 
MAXON_ATTRIBUTE_FORCE_INLINE Wrapper begin ()
 

Private Member Functions

DataDictionaryIteratorInterfaceGetIterator ()
 
const DataDictionaryIteratorInterfaceGetIterator () const
 

Private Attributes

IteratorMemory _iteratorMemory
 
const Bool _hasIterator
 
Tuple< const Data &, const Data & > _pair
 

Additional Inherited Members

- Static Public Member Functions inherited from ForEachIterator< DataDictionaryIterator >
static MAXON_ATTRIBUTE_FORCE_INLINE PRIVATE_MAXON_RBF_SENTINEL (Wrapper) end()
 

Member Typedef Documentation

◆ IteratorMemory

using IteratorMemory = Int[10]

Constructor & Destructor Documentation

◆ DataDictionaryIterator() [1/2]

◆ DataDictionaryIterator() [2/2]

◆ ~DataDictionaryIterator()

Member Function Documentation

◆ MAXON_OPERATOR_MOVE_ASSIGNMENT()

MAXON_OPERATOR_MOVE_ASSIGNMENT ( DataDictionaryIterator  )

◆ operator++() [1/2]

DataDictionaryIterator& operator++ ( )

◆ operator++() [2/2]

void operator++ ( int  )

◆ operator==()

Bool operator== ( const DataDictionaryIterator other) const

◆ operator!=()

Bool operator!= ( const DataDictionaryIterator other) const

◆ operator Bool()

operator Bool ( ) const
explicit

◆ operator->()

const Tuple<const Data&, const Data&>* operator-> ( void  ) const

◆ operator*()

const Tuple<const Data&, const Data&>& operator* ( ) const

◆ GetKey()

const Data& GetKey ( ) const

returns the id of the current element

◆ Get() [1/2]

Result<typename std::conditional<STD_IS_REPLACEMENT(void, T), void, typename ByValueParam<T>::type>::type> Get ( void  ) const

returns the data of the current element. this is a template. e.g. write Get<Int32>() if you expect Int32 data.

◆ Get() [2/2]

const Data& Get ( void  ) const

returns the Data of the current element.

◆ GetIterator() [1/2]

DataDictionaryIteratorInterface* GetIterator ( )
private

◆ GetIterator() [2/2]

const DataDictionaryIteratorInterface* GetIterator ( ) const
private

Member Data Documentation

◆ _iteratorMemory

IteratorMemory _iteratorMemory
private

◆ _hasIterator

const Bool _hasIterator
private

◆ _pair

Tuple<const Data&, const Data&> _pair
private