rippled
Loading...
Searching...
No Matches
Public Types | Public Member Functions | Private Member Functions | Private Attributes | Friends | List of all members
beast::detail::aged_container_iterator< is_const, Iterator > Class Template Reference

#include <aged_container_iterator.h>

Public Types

using iterator_category = typename std::iterator_traits< Iterator >::iterator_category
 
using value_type = typename std::conditional< is_const, typename Iterator::value_type::stashed::value_type const, typename Iterator::value_type::stashed::value_type >::type
 
using difference_type = typename std::iterator_traits< Iterator >::difference_type
 
using pointer = value_type *
 
using reference = value_type &
 
using time_point = typename Iterator::value_type::stashed::time_point
 

Public Member Functions

 aged_container_iterator ()=default
 
template<bool other_is_const, class OtherIterator , class = typename std::enable_if< (other_is_const == false || is_const == true) && std::is_same<Iterator, OtherIterator>::value == false>::type>
 aged_container_iterator (aged_container_iterator< other_is_const, OtherIterator > const &other)
 
template<bool other_is_const, class = typename std::enable_if< other_is_const == false || is_const == true>::type>
 aged_container_iterator (aged_container_iterator< other_is_const, Iterator > const &other)
 
template<bool other_is_const, class OtherIterator >
auto operator= (aged_container_iterator< other_is_const, OtherIterator > const &other) -> typename std::enable_if< other_is_const==false||is_const==true, aged_container_iterator & >::type
 
template<bool other_is_const, class OtherIterator >
bool operator== (aged_container_iterator< other_is_const, OtherIterator > const &other) const
 
template<bool other_is_const, class OtherIterator >
bool operator!= (aged_container_iterator< other_is_const, OtherIterator > const &other) const
 
aged_container_iteratoroperator++ ()
 
aged_container_iterator operator++ (int)
 
aged_container_iteratoroperator-- ()
 
aged_container_iterator operator-- (int)
 
reference operator* () const
 
pointer operator-> () const
 
time_point const & when () const
 

Private Member Functions

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

Private Attributes

Iterator m_iter
 

Friends

template<bool , bool , class , class , class , class , class >
class aged_ordered_container
 
template<bool , bool , class , class , class , class , class , class >
class aged_unordered_container
 
template<bool , class >
class aged_container_iterator
 

Detailed Description

template<bool is_const, class Iterator>
class beast::detail::aged_container_iterator< is_const, Iterator >

Definition at line 16 of file aged_container_iterator.h.

Member Typedef Documentation

◆ iterator_category

template<bool is_const, class Iterator >
using beast::detail::aged_container_iterator< is_const, Iterator >::iterator_category = typename std::iterator_traits<Iterator>::iterator_category

Definition at line 19 of file aged_container_iterator.h.

◆ value_type

template<bool is_const, class Iterator >
using beast::detail::aged_container_iterator< is_const, Iterator >::value_type = typename std::conditional< is_const, typename Iterator::value_type::stashed::value_type const, typename Iterator::value_type::stashed::value_type>::type

Definition at line 21 of file aged_container_iterator.h.

◆ difference_type

template<bool is_const, class Iterator >
using beast::detail::aged_container_iterator< is_const, Iterator >::difference_type = typename std::iterator_traits<Iterator>::difference_type

Definition at line 25 of file aged_container_iterator.h.

◆ pointer

template<bool is_const, class Iterator >
using beast::detail::aged_container_iterator< is_const, Iterator >::pointer = value_type*

Definition at line 27 of file aged_container_iterator.h.

◆ reference

template<bool is_const, class Iterator >
using beast::detail::aged_container_iterator< is_const, Iterator >::reference = value_type&

Definition at line 28 of file aged_container_iterator.h.

◆ time_point

template<bool is_const, class Iterator >
using beast::detail::aged_container_iterator< is_const, Iterator >::time_point = typename Iterator::value_type::stashed::time_point

Definition at line 29 of file aged_container_iterator.h.

Constructor & Destructor Documentation

◆ aged_container_iterator() [1/4]

template<bool is_const, class Iterator >
beast::detail::aged_container_iterator< is_const, Iterator >::aged_container_iterator ( )
default

◆ aged_container_iterator() [2/4]

template<bool is_const, class Iterator >
template<bool other_is_const, class OtherIterator , class = typename std::enable_if< (other_is_const == false || is_const == true) && std::is_same<Iterator, OtherIterator>::value == false>::type>
beast::detail::aged_container_iterator< is_const, Iterator >::aged_container_iterator ( aged_container_iterator< other_is_const, OtherIterator > const &  other)
explicit

Definition at line 41 of file aged_container_iterator.h.

◆ aged_container_iterator() [3/4]

template<bool is_const, class Iterator >
template<bool other_is_const, class = typename std::enable_if< other_is_const == false || is_const == true>::type>
beast::detail::aged_container_iterator< is_const, Iterator >::aged_container_iterator ( aged_container_iterator< other_is_const, Iterator > const &  other)

Definition at line 52 of file aged_container_iterator.h.

◆ aged_container_iterator() [4/4]

template<bool is_const, class Iterator >
template<class OtherIterator >
beast::detail::aged_container_iterator< is_const, Iterator >::aged_container_iterator ( OtherIterator const &  iter)
private

Definition at line 146 of file aged_container_iterator.h.

Member Function Documentation

◆ operator=()

template<bool is_const, class Iterator >
template<bool other_is_const, class OtherIterator >
auto beast::detail::aged_container_iterator< is_const, Iterator >::operator= ( aged_container_iterator< other_is_const, OtherIterator > const &  other) -> typename std::enable_if< other_is_const == false || is_const == true, aged_container_iterator&>::type

Definition at line 61 of file aged_container_iterator.h.

◆ operator==()

template<bool is_const, class Iterator >
template<bool other_is_const, class OtherIterator >
bool beast::detail::aged_container_iterator< is_const, Iterator >::operator== ( aged_container_iterator< other_is_const, OtherIterator > const &  other) const

Definition at line 73 of file aged_container_iterator.h.

◆ operator!=()

template<bool is_const, class Iterator >
template<bool other_is_const, class OtherIterator >
bool beast::detail::aged_container_iterator< is_const, Iterator >::operator!= ( aged_container_iterator< other_is_const, OtherIterator > const &  other) const

Definition at line 81 of file aged_container_iterator.h.

◆ operator++() [1/2]

template<bool is_const, class Iterator >
aged_container_iterator & beast::detail::aged_container_iterator< is_const, Iterator >::operator++ ( )

Definition at line 88 of file aged_container_iterator.h.

◆ operator++() [2/2]

template<bool is_const, class Iterator >
aged_container_iterator beast::detail::aged_container_iterator< is_const, Iterator >::operator++ ( int  )

Definition at line 95 of file aged_container_iterator.h.

◆ operator--() [1/2]

template<bool is_const, class Iterator >
aged_container_iterator & beast::detail::aged_container_iterator< is_const, Iterator >::operator-- ( )

Definition at line 103 of file aged_container_iterator.h.

◆ operator--() [2/2]

template<bool is_const, class Iterator >
aged_container_iterator beast::detail::aged_container_iterator< is_const, Iterator >::operator-- ( int  )

Definition at line 110 of file aged_container_iterator.h.

◆ operator*()

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

Definition at line 118 of file aged_container_iterator.h.

◆ operator->()

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

Definition at line 124 of file aged_container_iterator.h.

◆ when()

template<bool is_const, class Iterator >
time_point const & beast::detail::aged_container_iterator< is_const, Iterator >::when ( ) const

Definition at line 130 of file aged_container_iterator.h.

◆ iterator()

template<bool is_const, class Iterator >
Iterator const & beast::detail::aged_container_iterator< is_const, Iterator >::iterator ( ) const
private

Definition at line 151 of file aged_container_iterator.h.

Friends And Related Symbol Documentation

◆ aged_ordered_container

template<bool is_const, class Iterator >
template<bool , bool , class , class , class , class , class >
friend class aged_ordered_container
friend

Definition at line 137 of file aged_container_iterator.h.

◆ aged_unordered_container

template<bool is_const, class Iterator >
template<bool , bool , class , class , class , class , class , class >
friend class aged_unordered_container
friend

Definition at line 140 of file aged_container_iterator.h.

◆ aged_container_iterator

template<bool is_const, class Iterator >
template<bool , class >
friend class aged_container_iterator
friend

Definition at line 143 of file aged_container_iterator.h.

Member Data Documentation

◆ m_iter

template<bool is_const, class Iterator >
Iterator beast::detail::aged_container_iterator< is_const, Iterator >::m_iter
private

Definition at line 156 of file aged_container_iterator.h.