userver: rcu::RcuMapIterator< Key, Value, IterValue, RcuMapTraits > Class Template Reference
Loading...
Searching...
No Matches
rcu::RcuMapIterator< Key, Value, IterValue, RcuMapTraits > Class Template Referencefinal

#include <userver/rcu/rcu_map.hpp>

Detailed Description

template<typename Key, typename Value, typename IterValue, typename RcuMapTraits>
class rcu::RcuMapIterator< Key, Value, IterValue, RcuMapTraits >

Forward iterator for the rcu::RcuMap.

Use member functions of rcu::RcuMap to retrieve the iterator.

Definition at line 52 of file rcu_map.hpp.

Public Types

using iterator_category = std::input_iterator_tag
 
using difference_type = ptrdiff_t
 
using value_type = std::pair<Key, std::shared_ptr<IterValue>>
 
using reference = const value_type&
 
using pointer = const value_type*
 

Public Member Functions

RcuMapIterator operator++ (int)
 
RcuMapIteratoroperator++ ()
 
reference operator* () const
 
pointer operator-> () const
 
bool operator== (const RcuMapIterator &) const
 
bool operator!= (const RcuMapIterator &) const
 

Member Typedef Documentation

◆ difference_type

template<typename Key , typename Value , typename IterValue , typename RcuMapTraits >
using rcu::RcuMapIterator< Key, Value, IterValue, RcuMapTraits >::difference_type = ptrdiff_t

Definition at line 62 of file rcu_map.hpp.

◆ iterator_category

template<typename Key , typename Value , typename IterValue , typename RcuMapTraits >
using rcu::RcuMapIterator< Key, Value, IterValue, RcuMapTraits >::iterator_category = std::input_iterator_tag

Definition at line 61 of file rcu_map.hpp.

◆ pointer

template<typename Key , typename Value , typename IterValue , typename RcuMapTraits >
using rcu::RcuMapIterator< Key, Value, IterValue, RcuMapTraits >::pointer = const value_type*

Definition at line 65 of file rcu_map.hpp.

◆ reference

template<typename Key , typename Value , typename IterValue , typename RcuMapTraits >
using rcu::RcuMapIterator< Key, Value, IterValue, RcuMapTraits >::reference = const value_type&

Definition at line 64 of file rcu_map.hpp.

◆ value_type

template<typename Key , typename Value , typename IterValue , typename RcuMapTraits >
using rcu::RcuMapIterator< Key, Value, IterValue, RcuMapTraits >::value_type = std::pair<Key, std::shared_ptr<IterValue>>

Definition at line 63 of file rcu_map.hpp.

Constructor & Destructor Documentation

◆ RcuMapIterator()

template<typename Key , typename Value , typename IterValue , typename RcuMapTraits >
rcu::RcuMapIterator< Key, Value, IterValue, RcuMapTraits >::RcuMapIterator ( )
default

Definition at line 430 of file rcu_map.hpp.

Member Function Documentation

◆ operator!=()

template<typename Key , typename Value , typename IterValue , typename RcuMapTraits >
bool rcu::RcuMapIterator< Key, Value, IterValue, RcuMapTraits >::operator!= ( const RcuMapIterator< Key, Value, IterValue, RcuMapTraits > & rhs) const

Definition at line 486 of file rcu_map.hpp.

◆ operator*()

template<typename Key , typename Value , typename IterValue , typename RcuMapTraits >
auto rcu::RcuMapIterator< Key, Value, IterValue, RcuMapTraits >::operator* ( ) const

Definition at line 457 of file rcu_map.hpp.

◆ operator++() [1/2]

template<typename Key , typename Value , typename IterValue , typename RcuMapTraits >
auto rcu::RcuMapIterator< Key, Value, IterValue, RcuMapTraits >::operator++ ( )

Definition at line 448 of file rcu_map.hpp.

◆ operator++() [2/2]

template<typename Key , typename Value , typename IterValue , typename RcuMapTraits >
auto rcu::RcuMapIterator< Key, Value, IterValue, RcuMapTraits >::operator++ ( int )

Definition at line 439 of file rcu_map.hpp.

◆ operator->()

template<typename Key , typename Value , typename IterValue , typename RcuMapTraits >
auto rcu::RcuMapIterator< Key, Value, IterValue, RcuMapTraits >::operator-> ( ) const

Definition at line 464 of file rcu_map.hpp.

◆ operator==()

template<typename Key , typename Value , typename IterValue , typename RcuMapTraits >
bool rcu::RcuMapIterator< Key, Value, IterValue, RcuMapTraits >::operator== ( const RcuMapIterator< Key, Value, IterValue, RcuMapTraits > & rhs) const

Definition at line 471 of file rcu_map.hpp.


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