HashMap< K, V, HASH, ENTRY_HANDLER, ALLOCATOR, MODE, INITIAL_CAPACITY, LOAD_FACTOR >::EntryIteratorBase< CONSTITERATOR > Class Template Reference

#include <hashmap.h>

Inheritance diagram for HashMap< K, V, HASH, ENTRY_HANDLER, ALLOCATOR, MODE, INITIAL_CAPACITY, LOAD_FACTOR >::EntryIteratorBase< CONSTITERATOR >:

Public Types

using  CollectionType = typename ConstIf < HashMap , CONSTITERATOR >::type
using  EntryType = typename ConstIf < Entry , CONSTITERATOR >::type

公共成员函数

  operator Bool () const
EntryType GetEntry () const
const K &  GetKey () const
ConstIf < V, CONSTITERATOR >::type &  GetValue () const
EntryType operator* () const
EntryType operator-> () const
Bool   operator== (const EntryIteratorBase &b) const
Bool   operator!= (const EntryIteratorBase &b) const

Protected Member Functions

void  MoveToNonEmptyBucket ()
void  ValidateBucket ()
void  ValidatePrev ()

Protected Attributes

EntryType _entry
CollectionType _map
Int   _bucket
EntryType _prevEntry

Member Typedef Documentation

◆  CollectionType

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

◆  EntryType

using EntryType = typename ConstIf < Entry , CONSTITERATOR>::type

成员函数文档编制

◆  operator Bool()

operator Bool ( ) const
explicit

◆  GetEntry()

EntryType & GetEntry ( ) const

◆  GetKey()

const K& GetKey ( ) const

◆  GetValue()

ConstIf <V, CONSTITERATOR>::type& GetValue ( ) const

◆  operator*()

EntryType & operator* ( ) const

◆  operator->()

EntryType * operator-> ( ) const

◆  operator==()

Bool operator== ( const EntryIteratorBase < CONSTITERATOR > &  b ) const

◆  operator!=()

Bool operator!= ( const EntryIteratorBase < CONSTITERATOR > &  b ) const

◆  MoveToNonEmptyBucket()

void MoveToNonEmptyBucket ( )
protected

◆  ValidateBucket()

void ValidateBucket ( )
protected

◆  ValidatePrev()

void ValidatePrev ( )
protected

Member Data Documentation

◆  _entry

EntryType * _entry
protected

◆  _map

CollectionType * _map
protected

◆  _bucket

Int _bucket
protected

◆  _prevEntry

EntryType * _prevEntry
protected