aGrUM  0.20.3
a C++ library for (probabilistic) graphical models
gum::HashTableIteratorStaticEnd Class Reference

A class used to create the static iterator used by HashTables. More...

#include <agrum/tools/core/hashTable.h>

+ Collaboration diagram for gum::HashTableIteratorStaticEnd:

Friends

template<typename Key , typename Val , typename Alloc >
class HashTable
 Friends that have access to the iterator. More...
 

Detailed Description

A class used to create the static iterator used by HashTables.

The aim of using this class rather than just creating HashTableIterEnd as a global variable is to prevent other classes to access and modify HashTableIterEnd.

Definition at line 1812 of file hashTable.h.

Member Function Documentation

◆ constEnd4Statics()

static const HashTableConstIterator< int, int >* gum::HashTableIteratorStaticEnd::constEnd4Statics ( )
staticprivate

Creates (if needed) and returns the iterator HashTableIterEnd.

Returns
Returns the iterator HashTableIterEnd.

◆ constEndSafe4Statics()

static const HashTableConstIteratorSafe< int, int >* gum::HashTableIteratorStaticEnd::constEndSafe4Statics ( )
staticprivate

Creates (if needed) and returns the iterator HashTableIterEndSafe.

Returns
Returns the iterator HashTableIterEndSafe.

◆ end4Statics()

static const HashTableIterator< int, int >* gum::HashTableIteratorStaticEnd::end4Statics ( )
staticprivate

Creates (if needed) and returns the iterator HashTableIterEnd.

Returns
Returns the iterator HashTableIterEnd.

◆ endSafe4Statics()

static const HashTableIteratorSafe< int, int >* gum::HashTableIteratorStaticEnd::endSafe4Statics ( )
staticprivate

Creates (if needed) and returns the iterator HashTableIterEndSafe.

Returns
Returns the iterator HashTableIterEndSafe.

Friends And Related Function Documentation

◆ HashTable

template<typename Key , typename Val , typename Alloc >
friend class HashTable
friend

Friends that have access to the iterator.

Definition at line 1848 of file hashTable.h.

Member Data Documentation

◆ _HashTableIterEnd_

const HashTableIterator< int, int >* gum::HashTableIteratorStaticEnd::_HashTableIterEnd_
staticprivate

The unsafe iterator used by everyone.

Definition at line 1815 of file hashTable.h.

◆ _HashTableIterEndSafe_

const HashTableIteratorSafe< int, int >* gum::HashTableIteratorStaticEnd::_HashTableIterEndSafe_
staticprivate

The safe iterator used by everyone.

Definition at line 1818 of file hashTable.h.


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