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

公共成员函数

  EntryIteratorBase ()
  EntryIteratorBase ( CollectionType &m, Int s)
  EntryIteratorBase (const EntryIteratorBase & src )
const K &  GetKey () const
MappedType GetValue () 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

构造函数 & 析构函数文档编制

◆  EntryIteratorBase() [1/3]

EntryIteratorBase ( )

◆  EntryIteratorBase() [2/3]

EntryIteratorBase ( CollectionType m ,
Int   s  
)

◆  EntryIteratorBase() [3/3]

EntryIteratorBase ( const EntryIteratorBase < CONSTITERATOR > &  src )

成员函数文档编制

◆  GetKey()

const K& GetKey ( ) const

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

返回
Current key of this iterator.

◆  GetValue()

MappedType & GetValue ( ) const

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

返回
Current value of this iterator.