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

#include <partitioned_unordered_map.h>

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

Public Types

using iterator_category = std::forward_iterator_tag

Public Member Functions

 ConstIterator ()=default
 ConstIterator (partition_map_type *m)
 ConstIterator (Iterator const &orig)
const_reference operator* () const
const_pointer operator-> () const
void inc ()
ConstIteratoroperator++ ()
ConstIterator operator++ (int)

Public Attributes

partition_map_typemap {nullptr}
partition_map_type::iterator ait {}
map_type::iterator mit

Friends

bool operator== (ConstIterator const &lhs, ConstIterator const &rhs)
bool operator!= (ConstIterator const &lhs, ConstIterator 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 >::ConstIterator

Definition at line 124 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 >::ConstIterator::iterator_category = std::forward_iterator_tag

Definition at line 126 of file partitioned_unordered_map.h.

Constructor & Destructor Documentation

◆ ConstIterator() [1/3]

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 >::ConstIterator::ConstIterator ( )
default

◆ ConstIterator() [2/3]

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 >::ConstIterator::ConstIterator ( partition_map_type * m)

Definition at line 134 of file partitioned_unordered_map.h.

◆ ConstIterator() [3/3]

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 >::ConstIterator::ConstIterator ( Iterator const & orig)

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

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

Definition at line 152 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 >::ConstIterator::inc ( )

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

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

Definition at line 180 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== ( ConstIterator const & lhs,
ConstIterator const & rhs )
friend

Definition at line 188 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!= ( ConstIterator const & lhs,
ConstIterator const & rhs )
friend

Definition at line 194 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 >::ConstIterator::map {nullptr}

Definition at line 128 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 >::ConstIterator::ait {}

Definition at line 129 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 >::ConstIterator::mit

Definition at line 130 of file partitioned_unordered_map.h.