xrpld
Loading...
Searching...
No Matches
beast::detail::AgedContainerIterator< IsConst, Iterator > Class Template Reference

#include <aged_container_iterator.h>

Public Types

using iterator_category = std::iterator_traits<Iterator>::iterator_category
using value_type
using difference_type = std::iterator_traits<Iterator>::difference_type
using pointer = value_type*
using reference = value_type&
using time_point = Iterator::value_type::Stashed::time_point

Public Member Functions

 AgedContainerIterator ()=default
template<bool OtherIsConst, class OtherIterator, class = std::enable_if_t< (!OtherIsConst || IsConst) && !static_cast<bool>(std::is_same_v<Iterator, OtherIterator>)>>
 AgedContainerIterator (AgedContainerIterator< OtherIsConst, OtherIterator > const &other)
template<bool OtherIsConst, class = std::enable_if_t<!OtherIsConst || IsConst>>
 AgedContainerIterator (AgedContainerIterator< OtherIsConst, Iterator > const &other)
template<bool OtherIsConst, class OtherIterator>
auto operator= (AgedContainerIterator< OtherIsConst, OtherIterator > const &other) -> std::enable_if_t<!OtherIsConst||IsConst, AgedContainerIterator & >
template<bool OtherIsConst, class OtherIterator>
bool operator== (AgedContainerIterator< OtherIsConst, OtherIterator > const &other) const
template<bool OtherIsConst, class OtherIterator>
bool operator!= (AgedContainerIterator< OtherIsConst, OtherIterator > const &other) const
AgedContainerIteratoroperator++ ()
AgedContainerIterator operator++ (int)
AgedContainerIteratoroperator-- ()
AgedContainerIterator operator-- (int)
reference operator* () const
pointer operator-> () const
time_point const & when () const

Private Member Functions

template<class OtherIterator>
 AgedContainerIterator (OtherIterator iter)
Iterator const & iterator () const

Private Attributes

Iterator iter_

Friends

template<bool, bool, class, class, class, class, class>
class AgedOrderedContainer
template<bool, bool, class, class, class, class, class, class>
class AgedUnorderedContainer
template<bool, class>
class AgedContainerIterator

Detailed Description

template<bool IsConst, class Iterator>
class beast::detail::AgedContainerIterator< IsConst, Iterator >

Definition at line 16 of file aged_container_iterator.h.

Member Typedef Documentation

◆ iterator_category

template<bool IsConst, class Iterator>
using beast::detail::AgedContainerIterator< IsConst, Iterator >::iterator_category = std::iterator_traits<Iterator>::iterator_category

Definition at line 19 of file aged_container_iterator.h.

◆ value_type

template<bool IsConst, class Iterator>
using beast::detail::AgedContainerIterator< IsConst, Iterator >::value_type
Initial value:
IsConst,
typename Iterator::value_type::Stashed::value_type const,
typename Iterator::value_type::Stashed::value_type>

Definition at line 20 of file aged_container_iterator.h.

◆ difference_type

template<bool IsConst, class Iterator>
using beast::detail::AgedContainerIterator< IsConst, Iterator >::difference_type = std::iterator_traits<Iterator>::difference_type

Definition at line 24 of file aged_container_iterator.h.

◆ pointer

template<bool IsConst, class Iterator>
using beast::detail::AgedContainerIterator< IsConst, Iterator >::pointer = value_type*

Definition at line 25 of file aged_container_iterator.h.

◆ reference

template<bool IsConst, class Iterator>
using beast::detail::AgedContainerIterator< IsConst, Iterator >::reference = value_type&

Definition at line 26 of file aged_container_iterator.h.

◆ time_point

template<bool IsConst, class Iterator>
using beast::detail::AgedContainerIterator< IsConst, Iterator >::time_point = Iterator::value_type::Stashed::time_point

Definition at line 27 of file aged_container_iterator.h.

Constructor & Destructor Documentation

◆ AgedContainerIterator() [1/4]

template<bool IsConst, class Iterator>
beast::detail::AgedContainerIterator< IsConst, Iterator >::AgedContainerIterator ( )
default

◆ AgedContainerIterator() [2/4]

template<bool IsConst, class Iterator>
template<bool OtherIsConst, class OtherIterator, class = std::enable_if_t< (!OtherIsConst || IsConst) && !static_cast<bool>(std::is_same_v<Iterator, OtherIterator>)>>
beast::detail::AgedContainerIterator< IsConst, Iterator >::AgedContainerIterator ( AgedContainerIterator< OtherIsConst, OtherIterator > const & other)
explicit

Definition at line 39 of file aged_container_iterator.h.

◆ AgedContainerIterator() [3/4]

template<bool IsConst, class Iterator>
template<bool OtherIsConst, class = std::enable_if_t<!OtherIsConst || IsConst>>
beast::detail::AgedContainerIterator< IsConst, Iterator >::AgedContainerIterator ( AgedContainerIterator< OtherIsConst, Iterator > const & other)

Definition at line 46 of file aged_container_iterator.h.

◆ AgedContainerIterator() [4/4]

template<bool IsConst, class Iterator>
template<class OtherIterator>
beast::detail::AgedContainerIterator< IsConst, Iterator >::AgedContainerIterator ( OtherIterator iter)
private

Definition at line 134 of file aged_container_iterator.h.

Member Function Documentation

◆ operator=()

template<bool IsConst, class Iterator>
template<bool OtherIsConst, class OtherIterator>
auto beast::detail::AgedContainerIterator< IsConst, Iterator >::operator= ( AgedContainerIterator< OtherIsConst, OtherIterator > const & other) -> std::enable_if_t<!OtherIsConst||IsConst, AgedContainerIterator & >

Definition at line 54 of file aged_container_iterator.h.

◆ operator==()

template<bool IsConst, class Iterator>
template<bool OtherIsConst, class OtherIterator>
bool beast::detail::AgedContainerIterator< IsConst, Iterator >::operator== ( AgedContainerIterator< OtherIsConst, OtherIterator > const & other) const

Definition at line 63 of file aged_container_iterator.h.

◆ operator!=()

template<bool IsConst, class Iterator>
template<bool OtherIsConst, class OtherIterator>
bool beast::detail::AgedContainerIterator< IsConst, Iterator >::operator!= ( AgedContainerIterator< OtherIsConst, OtherIterator > const & other) const

Definition at line 70 of file aged_container_iterator.h.

◆ operator++() [1/2]

template<bool IsConst, class Iterator>
AgedContainerIterator & beast::detail::AgedContainerIterator< IsConst, Iterator >::operator++ ( )

Definition at line 76 of file aged_container_iterator.h.

◆ operator++() [2/2]

template<bool IsConst, class Iterator>
AgedContainerIterator beast::detail::AgedContainerIterator< IsConst, Iterator >::operator++ ( int )

Definition at line 83 of file aged_container_iterator.h.

◆ operator--() [1/2]

template<bool IsConst, class Iterator>
AgedContainerIterator & beast::detail::AgedContainerIterator< IsConst, Iterator >::operator-- ( )

Definition at line 91 of file aged_container_iterator.h.

◆ operator--() [2/2]

template<bool IsConst, class Iterator>
AgedContainerIterator beast::detail::AgedContainerIterator< IsConst, Iterator >::operator-- ( int )

Definition at line 98 of file aged_container_iterator.h.

◆ operator*()

template<bool IsConst, class Iterator>
reference beast::detail::AgedContainerIterator< IsConst, Iterator >::operator* ( ) const

Definition at line 106 of file aged_container_iterator.h.

◆ operator->()

template<bool IsConst, class Iterator>
pointer beast::detail::AgedContainerIterator< IsConst, Iterator >::operator-> ( ) const

Definition at line 112 of file aged_container_iterator.h.

◆ when()

template<bool IsConst, class Iterator>
time_point const & beast::detail::AgedContainerIterator< IsConst, Iterator >::when ( ) const
nodiscard

Definition at line 118 of file aged_container_iterator.h.

◆ iterator()

template<bool IsConst, class Iterator>
Iterator const & beast::detail::AgedContainerIterator< IsConst, Iterator >::iterator ( ) const
nodiscardprivate

Definition at line 139 of file aged_container_iterator.h.

◆ AgedOrderedContainer

template<bool IsConst, class Iterator>
template<bool, bool, class, class, class, class, class>
friend class AgedOrderedContainer
friend

Definition at line 125 of file aged_container_iterator.h.

◆ AgedUnorderedContainer

template<bool IsConst, class Iterator>
template<bool, bool, class, class, class, class, class, class>
friend class AgedUnorderedContainer
friend

Definition at line 128 of file aged_container_iterator.h.

◆ AgedContainerIterator

template<bool IsConst, class Iterator>
template<bool, class>
friend class AgedContainerIterator
friend

Definition at line 131 of file aged_container_iterator.h.

Member Data Documentation

◆ iter_

template<bool IsConst, class Iterator>
Iterator beast::detail::AgedContainerIterator< IsConst, Iterator >::iter_
private

Definition at line 144 of file aged_container_iterator.h.