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

#include <hashmap.h>

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

Detailed Description

template<typename K, typename V, typename HASH = DefaultCompare, typename ENTRY_HANDLER = HashMapKeyValuePair, typename ALLOCATOR = DefaultAllocator, HASHMAP_MODE MODE = HASHMAP_MODE::DEFAULT, Int INITIAL_CAPACITY = 16, Int LOAD_FACTOR = (MODE == HASHMAP_MODE::SYNCHRONIZED) ? 0 : 10>
template<template< Bool > class SUPER>
class maxon::HashMap< K, V, HASH, ENTRY_HANDLER, ALLOCATOR, MODE, INITIAL_CAPACITY, LOAD_FACTOR >::IteratorTemplate< SUPER >

Iterator class for HashMap.

Public Member Functions

 IteratorTemplate (typename Base::CollectionType &m)
 
 IteratorTemplate (typename Base::CollectionType &m, Int b, typename Base::EntryType *e)
 
 IteratorTemplate ()
 
 operator ConstIteratorTemplate< SUPER > & ()
 
IteratorTemplateoperator++ ()
 
- Public Member Functions inherited from HashMap< K, V, HASH, ENTRY_HANDLER, ALLOCATOR, MODE, INITIAL_CAPACITY, LOAD_FACTOR >::IteratorTemplateBase< IteratorTemplate< SUPER >, false, SUPER >
 IteratorTemplateBase (typename SUPER< CONSTITERATOR >::CollectionType &m)
 
 IteratorTemplateBase (typename SUPER< CONSTITERATOR >::CollectionType &m, Int b, typename SUPER< CONSTITERATOR >::EntryType *e)
 
 IteratorTemplateBase ()
 
const IteratorTemplate< SUPER > operator++ (int)
 
- Public Member Functions inherited from ForEachIterator< IteratorTemplate< SUPER >, SUPER< CONSTITERATOR > >
MAXON_ATTRIBUTE_FORCE_INLINE ForEachIterator (ARGS &&... args)
 
String ToString (const FormatStatement *formatStatement)
 
IteratorTemplate< SUPER > & Find (const T &v)
 
Int FindIndex (const T &v)
 
MAXON_ATTRIBUTE_FORCE_INLINE Bool Contains (const T &v)
 
MAXON_ATTRIBUTE_FORCE_INLINE Wrapper begin ()
 

Private Types

using Base = IteratorTemplateBase< IteratorTemplate< SUPER >, false, SUPER >
 

Private Member Functions

 IteratorTemplate (typename Base::CollectionType &m, Int b, typename Base::EntryType *e, typename Base::EntryType *p)
 

Friends

class HashMap
 

Additional Inherited Members

- Public Types inherited from ForEachIterator< IteratorTemplate< SUPER >, SUPER< CONSTITERATOR > >
using IsForEachIterator = std::true_type
 
- Static Public Member Functions inherited from ForEachIterator< IteratorTemplate< SUPER >, SUPER< CONSTITERATOR > >
static MAXON_ATTRIBUTE_FORCE_INLINE PRIVATE_MAXON_RBF_SENTINEL (Wrapper) end()
 

Member Typedef Documentation

◆ Base

using Base = IteratorTemplateBase<IteratorTemplate<SUPER>, false, SUPER>
private

Constructor & Destructor Documentation

◆ IteratorTemplate() [1/4]

IteratorTemplate ( typename Base::CollectionType &  m)
explicit

◆ IteratorTemplate() [2/4]

IteratorTemplate ( typename Base::CollectionType &  m,
Int  b,
typename Base::EntryType *  e 
)

◆ IteratorTemplate() [3/4]

◆ IteratorTemplate() [4/4]

IteratorTemplate ( typename Base::CollectionType &  m,
Int  b,
typename Base::EntryType *  e,
typename Base::EntryType *  p 
)
private

Member Function Documentation

◆ operator ConstIteratorTemplate< SUPER > &()

operator ConstIteratorTemplate< SUPER > & ( )

◆ operator++()

IteratorTemplate& operator++ ( )

Friends And Related Function Documentation

◆ HashMap

friend class HashMap
friend