AireEngine
A 3D Open-World Game Engine
Loading...
Searching...
No Matches
Public Member Functions | List of all members
Aire::HashSet< T >::ConstIterator Struct Reference

Iterator to iterate through the elements of a const HashSet. More...

#include <hashSet.h>

Public Member Functions

 ConstIterator (const HashSet< T > *owner, int i)
 
ConstIteratoroperator++ ()
 
ConstIterator operator++ (int)
 
const Toperator* ()
 
const Toperator-> ()
 
bool operator== (const ConstIterator &it) const
 
bool operator!= (const ConstIterator &it) const
 

Detailed Description

template<class T>
struct Aire::HashSet< T >::ConstIterator

Iterator to iterate through the elements of a const HashSet.

Constructor & Destructor Documentation

◆ ConstIterator()

template<class T >
Aire::HashSet< T >::ConstIterator::ConstIterator ( const HashSet< T > * owner,
int i )
inline

Constructor. Intended for internal use by HashSet. Don't call directly.

Parameters
ownerThe hash set traverse
iThe element index this iterator is bound to.

Member Function Documentation

◆ operator*()

template<class T >
const T & Aire::HashSet< T >::ConstIterator::operator* ( )
inline
Returns
A const reference to the element this iterator refers to.

◆ operator++() [1/2]

template<class T >
ConstIterator & Aire::HashSet< T >::ConstIterator::operator++ ( )
inline

Advance the iterator to the next element in the HashSet (pre-increment operator).

Returns
The modified iterator.

◆ operator++() [2/2]

template<class T >
ConstIterator Aire::HashSet< T >::ConstIterator::operator++ ( int )
inline

Advance the iterator to the next element in the HashSet (post-increment operator).

Returns
The modified iterator.

◆ operator->()

template<class T >
const T * Aire::HashSet< T >::ConstIterator::operator-> ( )
inline
Returns
A pointer to the const element this iterator refers to.

The documentation for this struct was generated from the following file: