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

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

#include <hashSet.h>

Public Member Functions

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

Detailed Description

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

Iterator to iterate through the elements of a non-const HashSet.

Constructor & Destructor Documentation

◆ Iterator()

template<class T >
Aire::HashSet< T >::Iterator::Iterator ( 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 >
T & Aire::HashSet< T >::Iterator::operator* ( )
inline
Returns
A reference to the element this iterator refers to.

◆ operator++() [1/2]

template<class T >
Iterator & Aire::HashSet< T >::Iterator::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 >
Iterator Aire::HashSet< T >::Iterator::operator++ ( int )
inline

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

Returns
The modified iterator.

◆ operator->()

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

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