Vlasiator ebf0dd394 on dev (v5.4.0 + 1054 commits)
Loading...
Searching...
No Matches
OpenBucketHashtable< GID, LID, maxBucketOverflow, EMPTYBUCKET >::const_iterator Class Reference

#include <open_bucket_hashtable.h>

Public Types

using iterator_category = std::random_access_iterator_tag
using value_type = std::pair<GID, LID>
using difference_type = std::ptrdiff_t
using pointer = std::pair<GID, LID>*
using reference = std::pair<GID, LID>&

Public Member Functions

 const_iterator (const OpenBucketHashtable< GID, LID > *hashtable, size_t index)
const_iteratoroperator++ ()
const_iterator operator++ (int)
bool operator== (const_iterator other) const
bool operator!= (const_iterator other) const
const std::pair< GID, LID > & operator* () const
const std::pair< GID, LID > * operator-> () const
size_t getIndex ()

Private Attributes

const OpenBucketHashtable< GID, LID > * hashtable
size_t index

Detailed Description

template<typename GID, typename LID, int maxBucketOverflow = 4, GID EMPTYBUCKET = vmesh::INVALID_GLOBALID>
class OpenBucketHashtable< GID, LID, maxBucketOverflow, EMPTYBUCKET >::const_iterator

Definition at line 222 of file open_bucket_hashtable.h.

Member Typedef Documentation

◆ difference_type

template<typename GID, typename LID, int maxBucketOverflow = 4, GID EMPTYBUCKET = vmesh::INVALID_GLOBALID>
using OpenBucketHashtable< GID, LID, maxBucketOverflow, EMPTYBUCKET >::const_iterator::difference_type = std::ptrdiff_t

Definition at line 230 of file open_bucket_hashtable.h.

◆ iterator_category

template<typename GID, typename LID, int maxBucketOverflow = 4, GID EMPTYBUCKET = vmesh::INVALID_GLOBALID>
using OpenBucketHashtable< GID, LID, maxBucketOverflow, EMPTYBUCKET >::const_iterator::iterator_category = std::random_access_iterator_tag

Definition at line 228 of file open_bucket_hashtable.h.

◆ pointer

template<typename GID, typename LID, int maxBucketOverflow = 4, GID EMPTYBUCKET = vmesh::INVALID_GLOBALID>
using OpenBucketHashtable< GID, LID, maxBucketOverflow, EMPTYBUCKET >::const_iterator::pointer = std::pair<GID, LID>*

Definition at line 231 of file open_bucket_hashtable.h.

◆ reference

template<typename GID, typename LID, int maxBucketOverflow = 4, GID EMPTYBUCKET = vmesh::INVALID_GLOBALID>
using OpenBucketHashtable< GID, LID, maxBucketOverflow, EMPTYBUCKET >::const_iterator::reference = std::pair<GID, LID>&

Definition at line 232 of file open_bucket_hashtable.h.

◆ value_type

template<typename GID, typename LID, int maxBucketOverflow = 4, GID EMPTYBUCKET = vmesh::INVALID_GLOBALID>
using OpenBucketHashtable< GID, LID, maxBucketOverflow, EMPTYBUCKET >::const_iterator::value_type = std::pair<GID, LID>

Definition at line 229 of file open_bucket_hashtable.h.

Constructor & Destructor Documentation

◆ const_iterator()

template<typename GID, typename LID, int maxBucketOverflow = 4, GID EMPTYBUCKET = vmesh::INVALID_GLOBALID>
OpenBucketHashtable< GID, LID, maxBucketOverflow, EMPTYBUCKET >::const_iterator::const_iterator ( const OpenBucketHashtable< GID, LID > * hashtable,
size_t index )
inlineexplicit

Definition at line 234 of file open_bucket_hashtable.h.

Here is the call graph for this function:
Here is the caller graph for this function:

Member Function Documentation

◆ getIndex()

template<typename GID, typename LID, int maxBucketOverflow = 4, GID EMPTYBUCKET = vmesh::INVALID_GLOBALID>
size_t OpenBucketHashtable< GID, LID, maxBucketOverflow, EMPTYBUCKET >::const_iterator::getIndex ( )
inline

Definition at line 262 of file open_bucket_hashtable.h.

◆ operator!=()

template<typename GID, typename LID, int maxBucketOverflow = 4, GID EMPTYBUCKET = vmesh::INVALID_GLOBALID>
bool OpenBucketHashtable< GID, LID, maxBucketOverflow, EMPTYBUCKET >::const_iterator::operator!= ( const_iterator other) const
inline

Definition at line 257 of file open_bucket_hashtable.h.

Here is the call graph for this function:

◆ operator*()

template<typename GID, typename LID, int maxBucketOverflow = 4, GID EMPTYBUCKET = vmesh::INVALID_GLOBALID>
const std::pair< GID, LID > & OpenBucketHashtable< GID, LID, maxBucketOverflow, EMPTYBUCKET >::const_iterator::operator* ( ) const
inline

Definition at line 260 of file open_bucket_hashtable.h.

◆ operator++() [1/2]

template<typename GID, typename LID, int maxBucketOverflow = 4, GID EMPTYBUCKET = vmesh::INVALID_GLOBALID>
const_iterator & OpenBucketHashtable< GID, LID, maxBucketOverflow, EMPTYBUCKET >::const_iterator::operator++ ( )
inline

Definition at line 236 of file open_bucket_hashtable.h.

Here is the call graph for this function:

◆ operator++() [2/2]

template<typename GID, typename LID, int maxBucketOverflow = 4, GID EMPTYBUCKET = vmesh::INVALID_GLOBALID>
const_iterator OpenBucketHashtable< GID, LID, maxBucketOverflow, EMPTYBUCKET >::const_iterator::operator++ ( int )
inline

Definition at line 246 of file open_bucket_hashtable.h.

Here is the call graph for this function:

◆ operator->()

template<typename GID, typename LID, int maxBucketOverflow = 4, GID EMPTYBUCKET = vmesh::INVALID_GLOBALID>
const std::pair< GID, LID > * OpenBucketHashtable< GID, LID, maxBucketOverflow, EMPTYBUCKET >::const_iterator::operator-> ( ) const
inline

Definition at line 261 of file open_bucket_hashtable.h.

◆ operator==()

template<typename GID, typename LID, int maxBucketOverflow = 4, GID EMPTYBUCKET = vmesh::INVALID_GLOBALID>
bool OpenBucketHashtable< GID, LID, maxBucketOverflow, EMPTYBUCKET >::const_iterator::operator== ( const_iterator other) const
inline

Definition at line 252 of file open_bucket_hashtable.h.

Here is the call graph for this function:

Member Data Documentation

◆ hashtable

template<typename GID, typename LID, int maxBucketOverflow = 4, GID EMPTYBUCKET = vmesh::INVALID_GLOBALID>
const OpenBucketHashtable<GID, LID>* OpenBucketHashtable< GID, LID, maxBucketOverflow, EMPTYBUCKET >::const_iterator::hashtable
private

Definition at line 223 of file open_bucket_hashtable.h.

◆ index

template<typename GID, typename LID, int maxBucketOverflow = 4, GID EMPTYBUCKET = vmesh::INVALID_GLOBALID>
size_t OpenBucketHashtable< GID, LID, maxBucketOverflow, EMPTYBUCKET >::const_iterator::index
private

Definition at line 224 of file open_bucket_hashtable.h.


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