ArrayMap< K, V, SORTED, COMPARE, ARRAY >::EntryIteratorBase< CONSTITERATOR > Class Template Reference

#include <arraymap.h>

Inheritance diagram for ArrayMap< K, V, SORTED, COMPARE, ARRAY >::EntryIteratorBase< CONSTITERATOR >:

Public Types

using Super = typename std::conditional< CONSTITERATOR, IteratorBase, NonConstIteratorBase >::type
 
using CollectionType = typename ConstIf< ArrayMap, CONSTITERATOR >::type
 
using KeyType = K
 
using MappedType = typename ConstIf< V, CONSTITERATOR >::type
 

Public Member Functions

 EntryIteratorBase ()
 
 EntryIteratorBase (CollectionType &m, Int s)
 
 EntryIteratorBase (const EntryIteratorBase &src)
 
const K & GetKey () const
 
MappedTypeGetValue () const
 

Member Typedef Documentation

◆ Super

using Super = typename std::conditional<CONSTITERATOR, IteratorBase, NonConstIteratorBase>::type

◆ CollectionType

using CollectionType = typename ConstIf<ArrayMap, CONSTITERATOR>::type

◆ KeyType

using KeyType = K

◆ MappedType

using MappedType = typename ConstIf<V, CONSTITERATOR>::type

Constructor & Destructor Documentation

◆ EntryIteratorBase() [1/3]

◆ EntryIteratorBase() [2/3]

◆ EntryIteratorBase() [3/3]

EntryIteratorBase ( const EntryIteratorBase< CONSTITERATOR > &  src)

Member Function Documentation

◆ GetKey()

const K& GetKey ( ) const

Returns the key of the current key-value-pair of this iterator.

Returns
Current key of this iterator.

◆ GetValue()

MappedType& GetValue ( ) const

Returns the value of the current key-value-pair of this iterator.

Returns
Current value of this iterator.