rippled
Public Types | Public Member Functions | Public Attributes | Friends | List of all members
ripple::partitioned_unordered_map< Key, Value, Hash, Pred, Alloc >::iterator Struct Reference
Collaboration diagram for ripple::partitioned_unordered_map< Key, Value, Hash, Pred, Alloc >::iterator:
Collaboration graph
[legend]

Public Types

using iterator_category = std::forward_iterator_tag
 

Public Member Functions

 iterator ()=default
 
 iterator (partition_map_type *map)
 
reference operator* () const
 
pointer operator-> () const
 
void inc ()
 
iteratoroperator++ ()
 
iterator operator++ (int)
 

Public Attributes

partition_map_typemap_ {nullptr}
 
partition_map_type::iterator ait_
 
map_type::iterator mit_
 

Friends

bool operator== (iterator const &lhs, iterator const &rhs)
 
bool operator!= (iterator const &lhs, iterator const &rhs)
 

Detailed Description

template<typename Key, typename Value, typename Hash, typename Pred = std::equal_to<Key>, typename Alloc = std::allocator<std::pair<const Key, Value>>>
struct ripple::partitioned_unordered_map< Key, Value, Hash, Pred, Alloc >::iterator

Definition at line 64 of file partitioned_unordered_map.h.

Member Typedef Documentation

◆ iterator_category

template<typename Key , typename Value , typename Hash , typename Pred = std::equal_to<Key>, typename Alloc = std::allocator<std::pair<const Key, Value>>>
using ripple::partitioned_unordered_map< Key, Value, Hash, Pred, Alloc >::iterator::iterator_category = std::forward_iterator_tag

Definition at line 66 of file partitioned_unordered_map.h.

Constructor & Destructor Documentation

◆ iterator() [1/2]

template<typename Key , typename Value , typename Hash , typename Pred = std::equal_to<Key>, typename Alloc = std::allocator<std::pair<const Key, Value>>>
ripple::partitioned_unordered_map< Key, Value, Hash, Pred, Alloc >::iterator::iterator ( )
default

◆ iterator() [2/2]

template<typename Key , typename Value , typename Hash , typename Pred = std::equal_to<Key>, typename Alloc = std::allocator<std::pair<const Key, Value>>>
ripple::partitioned_unordered_map< Key, Value, Hash, Pred, Alloc >::iterator::iterator ( partition_map_type map)

Definition at line 73 of file partitioned_unordered_map.h.

Member Function Documentation

◆ operator*()

template<typename Key , typename Value , typename Hash , typename Pred = std::equal_to<Key>, typename Alloc = std::allocator<std::pair<const Key, Value>>>
reference ripple::partitioned_unordered_map< Key, Value, Hash, Pred, Alloc >::iterator::operator* ( ) const

Definition at line 78 of file partitioned_unordered_map.h.

◆ operator->()

template<typename Key , typename Value , typename Hash , typename Pred = std::equal_to<Key>, typename Alloc = std::allocator<std::pair<const Key, Value>>>
pointer ripple::partitioned_unordered_map< Key, Value, Hash, Pred, Alloc >::iterator::operator-> ( ) const

Definition at line 84 of file partitioned_unordered_map.h.

◆ inc()

template<typename Key , typename Value , typename Hash , typename Pred = std::equal_to<Key>, typename Alloc = std::allocator<std::pair<const Key, Value>>>
void ripple::partitioned_unordered_map< Key, Value, Hash, Pred, Alloc >::iterator::inc ( )

Definition at line 90 of file partitioned_unordered_map.h.

◆ operator++() [1/2]

template<typename Key , typename Value , typename Hash , typename Pred = std::equal_to<Key>, typename Alloc = std::allocator<std::pair<const Key, Value>>>
iterator& ripple::partitioned_unordered_map< Key, Value, Hash, Pred, Alloc >::iterator::operator++ ( )

Definition at line 104 of file partitioned_unordered_map.h.

◆ operator++() [2/2]

template<typename Key , typename Value , typename Hash , typename Pred = std::equal_to<Key>, typename Alloc = std::allocator<std::pair<const Key, Value>>>
iterator ripple::partitioned_unordered_map< Key, Value, Hash, Pred, Alloc >::iterator::operator++ ( int  )

Definition at line 112 of file partitioned_unordered_map.h.

Friends And Related Function Documentation

◆ operator==

template<typename Key , typename Value , typename Hash , typename Pred = std::equal_to<Key>, typename Alloc = std::allocator<std::pair<const Key, Value>>>
bool operator== ( iterator const &  lhs,
iterator const &  rhs 
)
friend

Definition at line 120 of file partitioned_unordered_map.h.

◆ operator!=

template<typename Key , typename Value , typename Hash , typename Pred = std::equal_to<Key>, typename Alloc = std::allocator<std::pair<const Key, Value>>>
bool operator!= ( iterator const &  lhs,
iterator const &  rhs 
)
friend

Definition at line 127 of file partitioned_unordered_map.h.

Member Data Documentation

◆ map_

template<typename Key , typename Value , typename Hash , typename Pred = std::equal_to<Key>, typename Alloc = std::allocator<std::pair<const Key, Value>>>
partition_map_type* ripple::partitioned_unordered_map< Key, Value, Hash, Pred, Alloc >::iterator::map_ {nullptr}

Definition at line 67 of file partitioned_unordered_map.h.

◆ ait_

template<typename Key , typename Value , typename Hash , typename Pred = std::equal_to<Key>, typename Alloc = std::allocator<std::pair<const Key, Value>>>
partition_map_type::iterator ripple::partitioned_unordered_map< Key, Value, Hash, Pred, Alloc >::iterator::ait_

Definition at line 68 of file partitioned_unordered_map.h.

◆ mit_

template<typename Key , typename Value , typename Hash , typename Pred = std::equal_to<Key>, typename Alloc = std::allocator<std::pair<const Key, Value>>>
map_type::iterator ripple::partitioned_unordered_map< Key, Value, Hash, Pred, Alloc >::iterator::mit_

Definition at line 69 of file partitioned_unordered_map.h.