xrpld
Loading...
Searching...
No Matches
xrpl::PartitionedUnorderedMap< Key, Value, Hash, Pred, Alloc >::Iterator Struct Reference

#include <partitioned_unordered_map.h>

Collaboration diagram for xrpl::PartitionedUnorderedMap< Key, Value, Hash, Pred, Alloc >::Iterator:

Public Types

using iterator_category = std::forward_iterator_tag

Public Member Functions

 Iterator ()=default
 Iterator (partition_map_type *m)
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<Key const, Value>>>
struct xrpl::PartitionedUnorderedMap< Key, Value, Hash, Pred, Alloc >::Iterator

Definition at line 56 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<Key const, Value>>>
using xrpl::PartitionedUnorderedMap< Key, Value, Hash, Pred, Alloc >::Iterator::iterator_category = std::forward_iterator_tag

Definition at line 58 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<Key const, Value>>>
xrpl::PartitionedUnorderedMap< 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<Key const, Value>>>
xrpl::PartitionedUnorderedMap< Key, Value, Hash, Pred, Alloc >::Iterator::Iterator ( partition_map_type * m)

Definition at line 65 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<Key const, Value>>>
reference xrpl::PartitionedUnorderedMap< Key, Value, Hash, Pred, Alloc >::Iterator::operator* ( ) const

Definition at line 70 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<Key const, Value>>>
pointer xrpl::PartitionedUnorderedMap< Key, Value, Hash, Pred, Alloc >::Iterator::operator-> ( ) const

Definition at line 76 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<Key const, Value>>>
void xrpl::PartitionedUnorderedMap< Key, Value, Hash, Pred, Alloc >::Iterator::inc ( )

Definition at line 82 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<Key const, Value>>>
Iterator & xrpl::PartitionedUnorderedMap< Key, Value, Hash, Pred, Alloc >::Iterator::operator++ ( )

Definition at line 96 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<Key const, Value>>>
Iterator xrpl::PartitionedUnorderedMap< Key, Value, Hash, Pred, Alloc >::Iterator::operator++ ( int )

Definition at line 104 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<Key const, Value>>>
bool operator== ( Iterator const & lhs,
Iterator const & rhs )
friend

Definition at line 112 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<Key const, Value>>>
bool operator!= ( Iterator const & lhs,
Iterator const & rhs )
friend

Definition at line 118 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<Key const, Value>>>
partition_map_type* xrpl::PartitionedUnorderedMap< Key, Value, Hash, Pred, Alloc >::Iterator::map {nullptr}

Definition at line 59 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<Key const, Value>>>
partition_map_type::iterator xrpl::PartitionedUnorderedMap< Key, Value, Hash, Pred, Alloc >::Iterator::ait {}

Definition at line 60 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<Key const, Value>>>
map_type::iterator xrpl::PartitionedUnorderedMap< Key, Value, Hash, Pred, Alloc >::Iterator::mit

Definition at line 61 of file partitioned_unordered_map.h.