Games Task Scheduler (GTS)
A multi-processor scheduling framework for games engines
gts::ParallelHashTable< TKey, TValue, THasher, TAccessorSharedMutex, TGrowSharedMutex, TAllocator >::iterator Class Reference

A forward iterator. Write-locks the referenced element until destruction. More...

#include <ParallelHashTable.h>

Inherits gts::ParallelHashTable< TKey, TValue, THasher, TAccessorSharedMutex, TGrowSharedMutex, TAllocator >::base_const_iterator.

Public Member Functions

 iterator (table_type *pTable, size_type index, grow_mutex_type *pGrowMutex, bool initProb, bool growLock=true)
 
 iterator (iterator &&other)
 
iteratoroperator= (iterator &&other)
 
iteratoroperator++ ()
 
value_typeoperator-> ()
 
value_typeoperator* ()
 

Friends

class ParallelHashTable
 

Detailed Description

template<typename TKey, typename TValue, typename THasher = MurmurHash<TKey>, typename TAccessorSharedMutex = UnfairSharedSpinMutex<>, typename TGrowSharedMutex = UnfairSharedSpinMutex<>, typename TAllocator = AlignedAllocator<GTS_NO_SHARING_CACHE_LINE_SIZE>>
class gts::ParallelHashTable< TKey, TValue, THasher, TAccessorSharedMutex, TGrowSharedMutex, TAllocator >::iterator

A forward iterator. Write-locks the referenced element until destruction.