Base Framework
Public Member Functions | List of all members
HashSet< TYPE >::HashSetEnumerator< TRAITS > Class Template Reference

Hash set enumerator. More...

#include <base/collection/HashSet.h>

Inherits Enumerator< TRAITS >.

Public Member Functions

 HashSetEnumerator (R< HashSetImpl > _impl) noexcept
 
bool hasNext () const noexcept
 
Reference next ()
 

Detailed Description

template<class TYPE>
template<class TRAITS>
class HashSet< TYPE >::HashSetEnumerator< TRAITS >

Hash set enumerator.

Enumeration of all the elements of a hash set.

Version
1.0
Examples
testsuite/HashSet.cpp.

Constructor & Destructor Documentation

◆ HashSetEnumerator()

template<class TYPE >
template<class TRAITS >
HashSet< TYPE >::HashSetEnumerator< TRAITS >::HashSetEnumerator ( R< HashSetImpl _impl)
inlinenoexcept

Initializes enumeration of hash set.

Parameters
hashSetThe hash set.

Member Function Documentation

◆ hasNext()

template<class TYPE >
template<class TRAITS >
bool HashSet< TYPE >::HashSetEnumerator< TRAITS >::hasNext ( ) const
inlinenoexcept

Returns true if there is more elements in this enumeration.

◆ next()

template<class TYPE >
template<class TRAITS >
Reference HashSet< TYPE >::HashSetEnumerator< TRAITS >::next ( )
inline

Returns the current value and increments the position. Raises EndOfEnumeration if the end has been reached.