roo_collections
API Documentation for roo_collections
Loading...
Searching...
No Matches
roo_collections::FlatSmallHashtable< Entry, Key, HashFn, KeyFn, KeyCmpFn >::Iterator Class Reference

Mutable forward iterator. More...

#include <flat_small_hashtable.h>

Public Types

using iterator_category = std::forward_iterator_tag
 
using difference_type = std::ptrdiff_t
 
using value_type = Entry
 
using pointer = Entry *
 
using reference = Entry &
 

Public Member Functions

 Iterator ()
 
Entryoperator* ()
 
Entryoperator-> ()
 
 operator ConstIterator () const
 
Iteratoroperator++ ()
 
Iterator operator++ (int n)
 
bool operator== (const Iterator &other) const
 
bool operator!= (const Iterator &other) const
 

Friends

class FlatSmallHashtable
 

Detailed Description

template<typename Entry, typename Key, typename HashFn = DefaultHashFn<Key>, typename KeyFn = DefaultKeyFn<Entry>, typename KeyCmpFn = std::equal_to<Key>>
class roo_collections::FlatSmallHashtable< Entry, Key, HashFn, KeyFn, KeyCmpFn >::Iterator

Mutable forward iterator.

Definition at line 233 of file flat_small_hashtable.h.

Member Typedef Documentation

◆ difference_type

template<typename Entry , typename Key , typename HashFn = DefaultHashFn<Key>, typename KeyFn = DefaultKeyFn<Entry>, typename KeyCmpFn = std::equal_to<Key>>
using roo_collections::FlatSmallHashtable< Entry, Key, HashFn, KeyFn, KeyCmpFn >::Iterator::difference_type = std::ptrdiff_t

Definition at line 236 of file flat_small_hashtable.h.

◆ iterator_category

template<typename Entry , typename Key , typename HashFn = DefaultHashFn<Key>, typename KeyFn = DefaultKeyFn<Entry>, typename KeyCmpFn = std::equal_to<Key>>
using roo_collections::FlatSmallHashtable< Entry, Key, HashFn, KeyFn, KeyCmpFn >::Iterator::iterator_category = std::forward_iterator_tag

Definition at line 235 of file flat_small_hashtable.h.

◆ pointer

template<typename Entry , typename Key , typename HashFn = DefaultHashFn<Key>, typename KeyFn = DefaultKeyFn<Entry>, typename KeyCmpFn = std::equal_to<Key>>
using roo_collections::FlatSmallHashtable< Entry, Key, HashFn, KeyFn, KeyCmpFn >::Iterator::pointer = Entry*

Definition at line 238 of file flat_small_hashtable.h.

◆ reference

template<typename Entry , typename Key , typename HashFn = DefaultHashFn<Key>, typename KeyFn = DefaultKeyFn<Entry>, typename KeyCmpFn = std::equal_to<Key>>
using roo_collections::FlatSmallHashtable< Entry, Key, HashFn, KeyFn, KeyCmpFn >::Iterator::reference = Entry&

Definition at line 239 of file flat_small_hashtable.h.

◆ value_type

template<typename Entry , typename Key , typename HashFn = DefaultHashFn<Key>, typename KeyFn = DefaultKeyFn<Entry>, typename KeyCmpFn = std::equal_to<Key>>
using roo_collections::FlatSmallHashtable< Entry, Key, HashFn, KeyFn, KeyCmpFn >::Iterator::value_type = Entry

Definition at line 237 of file flat_small_hashtable.h.

Constructor & Destructor Documentation

◆ Iterator()

template<typename Entry , typename Key , typename HashFn = DefaultHashFn<Key>, typename KeyFn = DefaultKeyFn<Entry>, typename KeyCmpFn = std::equal_to<Key>>
roo_collections::FlatSmallHashtable< Entry, Key, HashFn, KeyFn, KeyCmpFn >::Iterator::Iterator ( )
inline

Definition at line 241 of file flat_small_hashtable.h.

Member Function Documentation

◆ operator ConstIterator()

template<typename Entry , typename Key , typename HashFn = DefaultHashFn<Key>, typename KeyFn = DefaultKeyFn<Entry>, typename KeyCmpFn = std::equal_to<Key>>
roo_collections::FlatSmallHashtable< Entry, Key, HashFn, KeyFn, KeyCmpFn >::Iterator::operator ConstIterator ( ) const
inline

Definition at line 246 of file flat_small_hashtable.h.

◆ operator!=()

template<typename Entry , typename Key , typename HashFn = DefaultHashFn<Key>, typename KeyFn = DefaultKeyFn<Entry>, typename KeyCmpFn = std::equal_to<Key>>
bool roo_collections::FlatSmallHashtable< Entry, Key, HashFn, KeyFn, KeyCmpFn >::Iterator::operator!= ( const Iterator other) const
inline

Definition at line 266 of file flat_small_hashtable.h.

◆ operator*()

template<typename Entry , typename Key , typename HashFn = DefaultHashFn<Key>, typename KeyFn = DefaultKeyFn<Entry>, typename KeyCmpFn = std::equal_to<Key>>
Entry & roo_collections::FlatSmallHashtable< Entry, Key, HashFn, KeyFn, KeyCmpFn >::Iterator::operator* ( )
inline

Definition at line 243 of file flat_small_hashtable.h.

◆ operator++() [1/2]

◆ operator++() [2/2]

template<typename Entry , typename Key , typename HashFn = DefaultHashFn<Key>, typename KeyFn = DefaultKeyFn<Entry>, typename KeyCmpFn = std::equal_to<Key>>
Iterator roo_collections::FlatSmallHashtable< Entry, Key, HashFn, KeyFn, KeyCmpFn >::Iterator::operator++ ( int  n)
inline

◆ operator->()

template<typename Entry , typename Key , typename HashFn = DefaultHashFn<Key>, typename KeyFn = DefaultKeyFn<Entry>, typename KeyCmpFn = std::equal_to<Key>>
Entry * roo_collections::FlatSmallHashtable< Entry, Key, HashFn, KeyFn, KeyCmpFn >::Iterator::operator-> ( )
inline

Definition at line 244 of file flat_small_hashtable.h.

◆ operator==()

template<typename Entry , typename Key , typename HashFn = DefaultHashFn<Key>, typename KeyFn = DefaultKeyFn<Entry>, typename KeyCmpFn = std::equal_to<Key>>
bool roo_collections::FlatSmallHashtable< Entry, Key, HashFn, KeyFn, KeyCmpFn >::Iterator::operator== ( const Iterator other) const
inline

Definition at line 262 of file flat_small_hashtable.h.

Friends And Related Symbol Documentation

◆ FlatSmallHashtable

template<typename Entry , typename Key , typename HashFn = DefaultHashFn<Key>, typename KeyFn = DefaultKeyFn<Entry>, typename KeyCmpFn = std::equal_to<Key>>
friend class FlatSmallHashtable
friend

Definition at line 271 of file flat_small_hashtable.h.


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