rippled
Public Types | Public Member Functions | Private Attributes | List of all members
ripple::detail::ReadViewFwdRange< ValueType >::iterator Class Reference
Collaboration diagram for ripple::detail::ReadViewFwdRange< ValueType >::iterator:
Collaboration graph
[legend]

Public Types

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

Public Member Functions

 iterator ()=default
 
 iterator (iterator const &other)
 
 iterator (iterator &&other) noexcept
 
 iterator (ReadView const *view, std::unique_ptr< iter_base > impl)
 
iteratoroperator= (iterator const &other)
 
iteratoroperator= (iterator &&other) noexcept
 
bool operator== (iterator const &other) const
 
bool operator!= (iterator const &other) const
 
reference operator* () const
 
pointer operator-> () const
 
iteratoroperator++ ()
 
iterator operator++ (int)
 

Private Attributes

ReadView const * view_ = nullptr
 
std::unique_ptr< iter_baseimpl_
 
std::optional< value_typecache_
 

Detailed Description

template<class ValueType>
class ripple::detail::ReadViewFwdRange< ValueType >::iterator

Definition at line 77 of file ReadViewFwdRange.h.

Member Typedef Documentation

◆ value_type

template<class ValueType >
using ripple::detail::ReadViewFwdRange< ValueType >::iterator::value_type = ValueType

Definition at line 80 of file ReadViewFwdRange.h.

◆ pointer

template<class ValueType >
using ripple::detail::ReadViewFwdRange< ValueType >::iterator::pointer = value_type const*

Definition at line 82 of file ReadViewFwdRange.h.

◆ reference

template<class ValueType >
using ripple::detail::ReadViewFwdRange< ValueType >::iterator::reference = value_type const&

Definition at line 84 of file ReadViewFwdRange.h.

◆ difference_type

template<class ValueType >
using ripple::detail::ReadViewFwdRange< ValueType >::iterator::difference_type = std::ptrdiff_t

Definition at line 86 of file ReadViewFwdRange.h.

◆ iterator_category

Definition at line 88 of file ReadViewFwdRange.h.

Constructor & Destructor Documentation

◆ iterator() [1/4]

template<class ValueType >
ripple::detail::ReadViewFwdRange< ValueType >::iterator::iterator ( )
default

◆ iterator() [2/4]

template<class ValueType >
ripple::detail::ReadViewFwdRange< ValueType >::iterator::iterator ( iterator const &  other)

◆ iterator() [3/4]

template<class ValueType >
ripple::detail::ReadViewFwdRange< ValueType >::iterator::iterator ( iterator &&  other)
noexcept

◆ iterator() [4/4]

template<class ValueType >
ripple::detail::ReadViewFwdRange< ValueType >::iterator::iterator ( ReadView const *  view,
std::unique_ptr< iter_base impl 
)
explicit

Member Function Documentation

◆ operator=() [1/2]

template<class ValueType >
iterator& ripple::detail::ReadViewFwdRange< ValueType >::iterator::operator= ( iterator const &  other)

◆ operator=() [2/2]

template<class ValueType >
iterator& ripple::detail::ReadViewFwdRange< ValueType >::iterator::operator= ( iterator &&  other)
noexcept

◆ operator==()

template<class ValueType >
bool ripple::detail::ReadViewFwdRange< ValueType >::iterator::operator== ( iterator const &  other) const

◆ operator!=()

template<class ValueType >
bool ripple::detail::ReadViewFwdRange< ValueType >::iterator::operator!= ( iterator const &  other) const

◆ operator*()

template<class ValueType >
reference ripple::detail::ReadViewFwdRange< ValueType >::iterator::operator* ( ) const

◆ operator->()

template<class ValueType >
pointer ripple::detail::ReadViewFwdRange< ValueType >::iterator::operator-> ( ) const

◆ operator++() [1/2]

template<class ValueType >
iterator& ripple::detail::ReadViewFwdRange< ValueType >::iterator::operator++ ( )

◆ operator++() [2/2]

template<class ValueType >
iterator ripple::detail::ReadViewFwdRange< ValueType >::iterator::operator++ ( int  )

Member Data Documentation

◆ view_

template<class ValueType >
ReadView const* ripple::detail::ReadViewFwdRange< ValueType >::iterator::view_ = nullptr
private

Definition at line 127 of file ReadViewFwdRange.h.

◆ impl_

template<class ValueType >
std::unique_ptr<iter_base> ripple::detail::ReadViewFwdRange< ValueType >::iterator::impl_
private

Definition at line 128 of file ReadViewFwdRange.h.

◆ cache_

template<class ValueType >
std::optional<value_type> ripple::detail::ReadViewFwdRange< ValueType >::iterator::cache_
mutableprivate

Definition at line 129 of file ReadViewFwdRange.h.