rippled
Public Types | Public Member Functions | Private Member Functions | Private Attributes | Friends | List of all members
ripple::SHAMap::const_iterator Class Reference
Collaboration diagram for ripple::SHAMap::const_iterator:
Collaboration graph
[legend]

Public Types

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

Public Member Functions

 const_iterator ()=delete
 
 const_iterator (const_iterator const &other)=default
 
const_iteratoroperator= (const_iterator const &other)=default
 
 ~const_iterator ()=default
 
reference operator* () const
 
pointer operator-> () const
 
const_iteratoroperator++ ()
 
const_iterator operator++ (int)
 

Private Member Functions

 const_iterator (SHAMap const *map)
 
 const_iterator (SHAMap const *map, std::nullptr_t)
 
 const_iterator (SHAMap const *map, pointer item, SharedPtrNodeStack &&stack)
 

Private Attributes

SharedPtrNodeStack stack_
 
SHAMap const * map_ = nullptr
 
pointer item_ = nullptr
 

Friends

class SHAMap
 
bool operator== (const_iterator const &x, const_iterator const &y)
 

Detailed Description

Definition at line 638 of file SHAMap.h.

Member Typedef Documentation

◆ iterator_category

Definition at line 641 of file SHAMap.h.

◆ difference_type

Definition at line 642 of file SHAMap.h.

◆ value_type

Definition at line 643 of file SHAMap.h.

◆ reference

Definition at line 644 of file SHAMap.h.

◆ pointer

Definition at line 645 of file SHAMap.h.

Constructor & Destructor Documentation

◆ const_iterator() [1/5]

ripple::SHAMap::const_iterator::const_iterator ( )
delete

◆ const_iterator() [2/5]

ripple::SHAMap::const_iterator::const_iterator ( const_iterator const &  other)
default

◆ ~const_iterator()

ripple::SHAMap::const_iterator::~const_iterator ( )
default

◆ const_iterator() [3/5]

ripple::SHAMap::const_iterator::const_iterator ( SHAMap const *  map)
explicitprivate

Definition at line 681 of file SHAMap.h.

◆ const_iterator() [4/5]

ripple::SHAMap::const_iterator::const_iterator ( SHAMap const *  map,
std::nullptr_t   
)
private

Definition at line 689 of file SHAMap.h.

◆ const_iterator() [5/5]

ripple::SHAMap::const_iterator::const_iterator ( SHAMap const *  map,
pointer  item,
SharedPtrNodeStack &&  stack 
)
private

Definition at line 694 of file SHAMap.h.

Member Function Documentation

◆ operator=()

const_iterator& ripple::SHAMap::const_iterator::operator= ( const_iterator const &  other)
default

◆ operator*()

SHAMap::const_iterator::reference ripple::SHAMap::const_iterator::operator* ( ) const

Definition at line 703 of file SHAMap.h.

◆ operator->()

SHAMap::const_iterator::pointer ripple::SHAMap::const_iterator::operator-> ( ) const

Definition at line 709 of file SHAMap.h.

◆ operator++() [1/2]

SHAMap::const_iterator & ripple::SHAMap::const_iterator::operator++ ( )

Definition at line 715 of file SHAMap.h.

◆ operator++() [2/2]

SHAMap::const_iterator ripple::SHAMap::const_iterator::operator++ ( int  )

Definition at line 725 of file SHAMap.h.

Friends And Related Function Documentation

◆ SHAMap

friend class SHAMap
friend

Definition at line 678 of file SHAMap.h.

◆ operator==

bool operator== ( SHAMap::const_iterator const &  x,
SHAMap::const_iterator const &  y 
)
friend

Definition at line 733 of file SHAMap.h.

Member Data Documentation

◆ stack_

SharedPtrNodeStack ripple::SHAMap::const_iterator::stack_
private

Definition at line 648 of file SHAMap.h.

◆ map_

SHAMap const* ripple::SHAMap::const_iterator::map_ = nullptr
private

Definition at line 649 of file SHAMap.h.

◆ item_

pointer ripple::SHAMap::const_iterator::item_ = nullptr
private

Definition at line 650 of file SHAMap.h.