Support Forum       G3D Web Page     
Public Member Functions | Friends | List of all members
G3D::Table< Key, Value, HashFunc, EqualsFunc >::Iterator Class Reference


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

Public Member Functions

bool hasMore () const
 
bool isValid () const
 
const Key & key () const
 
 operator Entry * () const
 
bool operator!= (const Iterator &other) const
 
const Entryoperator* () const
 
Iteratoroperator++ ()
 
Pre increment. More...
 
Iterator operator++ (int)
 
Post increment (slower than preincrement). More...
 
Entryoperator-> () const
 
bool operator== (const Iterator &other) const
 
const Value & value () const
 

Friends

class Table< Key, Value, HashFunc, EqualsFunc >
 

Detailed Description

template<class Key, class Value, class HashFunc = HashTrait<Key>, class EqualsFunc = EqualsTrait<Key>>
class G3D::Table< Key, Value, HashFunc, EqualsFunc >::Iterator


C++ STL style iterator variable.

See begin().

Member Function Documentation

◆ hasMore()

template<class Key, class Value, class HashFunc = HashTrait<Key>, class EqualsFunc = EqualsTrait<Key>>
bool G3D::Table< Key, Value, HashFunc, EqualsFunc >::Iterator::hasMore ( ) const
inline

◆ isValid()

template<class Key, class Value, class HashFunc = HashTrait<Key>, class EqualsFunc = EqualsTrait<Key>>
bool G3D::Table< Key, Value, HashFunc, EqualsFunc >::Iterator::isValid ( ) const
inline

◆ key()

template<class Key, class Value, class HashFunc = HashTrait<Key>, class EqualsFunc = EqualsTrait<Key>>
const Key& G3D::Table< Key, Value, HashFunc, EqualsFunc >::Iterator::key ( ) const
inline

◆ operator Entry *()

template<class Key, class Value, class HashFunc = HashTrait<Key>, class EqualsFunc = EqualsTrait<Key>>
G3D::Table< Key, Value, HashFunc, EqualsFunc >::Iterator::operator Entry * ( ) const
inline

◆ operator!=()

template<class Key, class Value, class HashFunc = HashTrait<Key>, class EqualsFunc = EqualsTrait<Key>>
bool G3D::Table< Key, Value, HashFunc, EqualsFunc >::Iterator::operator!= ( const Iterator other) const
inline

◆ operator*()

template<class Key, class Value, class HashFunc = HashTrait<Key>, class EqualsFunc = EqualsTrait<Key>>
const Entry& G3D::Table< Key, Value, HashFunc, EqualsFunc >::Iterator::operator* ( ) const
inline

◆ operator++() [1/2]

template<class Key, class Value, class HashFunc = HashTrait<Key>, class EqualsFunc = EqualsTrait<Key>>
Iterator& G3D::Table< Key, Value, HashFunc, EqualsFunc >::Iterator::operator++ ( )
inline


Pre increment.

◆ operator++() [2/2]

template<class Key, class Value, class HashFunc = HashTrait<Key>, class EqualsFunc = EqualsTrait<Key>>
Iterator G3D::Table< Key, Value, HashFunc, EqualsFunc >::Iterator::operator++ ( int  )
inline


Post increment (slower than preincrement).

◆ operator->()

template<class Key, class Value, class HashFunc = HashTrait<Key>, class EqualsFunc = EqualsTrait<Key>>
Entry* G3D::Table< Key, Value, HashFunc, EqualsFunc >::Iterator::operator-> ( ) const
inline

◆ operator==()

template<class Key, class Value, class HashFunc = HashTrait<Key>, class EqualsFunc = EqualsTrait<Key>>
bool G3D::Table< Key, Value, HashFunc, EqualsFunc >::Iterator::operator== ( const Iterator other) const
inline

◆ value()

template<class Key, class Value, class HashFunc = HashTrait<Key>, class EqualsFunc = EqualsTrait<Key>>
const Value& G3D::Table< Key, Value, HashFunc, EqualsFunc >::Iterator::value ( ) const
inline

Friends And Related Function Documentation

◆ Table< Key, Value, HashFunc, EqualsFunc >

template<class Key, class Value, class HashFunc = HashTrait<Key>, class EqualsFunc = EqualsTrait<Key>>
friend class Table< Key, Value, HashFunc, EqualsFunc >
friend

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