Support Forum       G3D Web Page     
Public Member Functions | Protected Member Functions | Protected Attributes | List of all members
G3D::FastPODTable< Key, Value, HashFunc, EqualsFunc, valueIsSimplePOD >::IteratorBase Class Reference


C++ STL style iterator variable. More...

Inherited by G3D::FastPODTable< Key, Value, HashFunc, EqualsFunc, valueIsSimplePOD >::ConstIterator, and G3D::FastPODTable< Key, Value, HashFunc, EqualsFunc, valueIsSimplePOD >::Iterator.

Public Member Functions

 IteratorBase (const IteratorBase &it)
 
bool isValid () const
 
const Key & key () const
 
IteratorBaseoperator++ ()
 
int slotIndex () const
 Exposes the index of the slot storing this key-value pair for debugging, profiling, and porting purposes. More...
 

Protected Member Functions

 IteratorBase (MyType *table)
 
virtual ~IteratorBase ()
 
void findNext ()
 

Protected Attributes

int m_index
 Slot index. More...
 
MyTypem_table
 

Detailed Description

template<typename Key, typename Value, class HashFunc = HashTrait<Key>, class EqualsFunc = EqualsTrait<Key>, bool valueIsSimplePOD = false>
class G3D::FastPODTable< Key, Value, HashFunc, EqualsFunc, valueIsSimplePOD >::IteratorBase


C++ STL style iterator variable.

See begin().

Constructor & Destructor Documentation

◆ IteratorBase() [1/2]

template<typename Key , typename Value , class HashFunc = HashTrait<Key>, class EqualsFunc = EqualsTrait<Key>, bool valueIsSimplePOD = false>
G3D::FastPODTable< Key, Value, HashFunc, EqualsFunc, valueIsSimplePOD >::IteratorBase::IteratorBase ( MyType table)
inlineprotected

◆ ~IteratorBase()

template<typename Key , typename Value , class HashFunc = HashTrait<Key>, class EqualsFunc = EqualsTrait<Key>, bool valueIsSimplePOD = false>
virtual G3D::FastPODTable< Key, Value, HashFunc, EqualsFunc, valueIsSimplePOD >::IteratorBase::~IteratorBase ( )
inlineprotectedvirtual

◆ IteratorBase() [2/2]

template<typename Key , typename Value , class HashFunc = HashTrait<Key>, class EqualsFunc = EqualsTrait<Key>, bool valueIsSimplePOD = false>
G3D::FastPODTable< Key, Value, HashFunc, EqualsFunc, valueIsSimplePOD >::IteratorBase::IteratorBase ( const IteratorBase it)
inline

Member Function Documentation

◆ findNext()

template<typename Key , typename Value , class HashFunc = HashTrait<Key>, class EqualsFunc = EqualsTrait<Key>, bool valueIsSimplePOD = false>
void G3D::FastPODTable< Key, Value, HashFunc, EqualsFunc, valueIsSimplePOD >::IteratorBase::findNext ( )
inlineprotected

◆ isValid()

template<typename Key , typename Value , class HashFunc = HashTrait<Key>, class EqualsFunc = EqualsTrait<Key>, bool valueIsSimplePOD = false>
bool G3D::FastPODTable< Key, Value, HashFunc, EqualsFunc, valueIsSimplePOD >::IteratorBase::isValid ( ) const
inline

◆ key()

template<typename Key , typename Value , class HashFunc = HashTrait<Key>, class EqualsFunc = EqualsTrait<Key>, bool valueIsSimplePOD = false>
const Key& G3D::FastPODTable< Key, Value, HashFunc, EqualsFunc, valueIsSimplePOD >::IteratorBase::key ( ) const
inline

◆ operator++()

template<typename Key , typename Value , class HashFunc = HashTrait<Key>, class EqualsFunc = EqualsTrait<Key>, bool valueIsSimplePOD = false>
IteratorBase& G3D::FastPODTable< Key, Value, HashFunc, EqualsFunc, valueIsSimplePOD >::IteratorBase::operator++ ( )
inline

◆ slotIndex()

template<typename Key , typename Value , class HashFunc = HashTrait<Key>, class EqualsFunc = EqualsTrait<Key>, bool valueIsSimplePOD = false>
int G3D::FastPODTable< Key, Value, HashFunc, EqualsFunc, valueIsSimplePOD >::IteratorBase::slotIndex ( ) const
inline

Exposes the index of the slot storing this key-value pair for debugging, profiling, and porting purposes.

Member Data Documentation

◆ m_index

template<typename Key , typename Value , class HashFunc = HashTrait<Key>, class EqualsFunc = EqualsTrait<Key>, bool valueIsSimplePOD = false>
int G3D::FastPODTable< Key, Value, HashFunc, EqualsFunc, valueIsSimplePOD >::IteratorBase::m_index
protected

◆ m_table

template<typename Key , typename Value , class HashFunc = HashTrait<Key>, class EqualsFunc = EqualsTrait<Key>, bool valueIsSimplePOD = false>
MyType* G3D::FastPODTable< Key, Value, HashFunc, EqualsFunc, valueIsSimplePOD >::IteratorBase::m_table
protected

documentation generated on Wed Nov 24 2021 08:01:54 using doxygen 1.8.15