rippled
Public Types | Public Member Functions | Private Member Functions | Private Attributes | Friends | List of all members
beast::detail::aged_container_iterator< is_const, Iterator, Base > Class Template Reference
Inheritance diagram for beast::detail::aged_container_iterator< is_const, Iterator, Base >:
Inheritance graph
[legend]
Collaboration diagram for beast::detail::aged_container_iterator< is_const, Iterator, Base >:
Collaboration graph
[legend]

Public Types

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 OtherBase , 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, OtherBase > const &other)
 
template<bool other_is_const, class OtherBase , class = typename std::enable_if< other_is_const == false || is_const == true>::type>
 aged_container_iterator (aged_container_iterator< other_is_const, Iterator, OtherBase > const &other)
 
template<bool other_is_const, class OtherIterator , class OtherBase >
auto operator= (aged_container_iterator< other_is_const, OtherIterator, OtherBase > const &other) -> typename std::enable_if< other_is_const==false||is_const==true, aged_container_iterator & >::type
 
template<bool other_is_const, class OtherIterator , class OtherBase >
bool operator== (aged_container_iterator< other_is_const, OtherIterator, OtherBase > const &other) const
 
template<bool other_is_const, class OtherIterator , class OtherBase >
bool operator!= (aged_container_iterator< other_is_const, OtherIterator, OtherBase > const &other) const
 
aged_container_iteratoroperator++ ()
 
aged_container_iterator operator++ (int)
 
aged_container_iteratoroperator-- ()
 
aged_container_iterator operator-- (int)
 
Base::reference operator* () const
 
Base::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 >
class aged_container_iterator
 

Detailed Description

template<bool is_const, class Iterator, class Base = std::iterator< typename std::iterator_traits<Iterator>::iterator_category, typename std::conditional< is_const, typename Iterator::value_type::stashed::value_type const, typename Iterator::value_type::stashed::value_type>::type, typename std::iterator_traits<Iterator>::difference_type>>
class beast::detail::aged_container_iterator< is_const, Iterator, Base >

Definition at line 47 of file aged_container_iterator.h.

Member Typedef Documentation

◆ time_point

template<bool is_const, class Iterator , class Base = std::iterator< typename std::iterator_traits<Iterator>::iterator_category, typename std::conditional< is_const, typename Iterator::value_type::stashed::value_type const, typename Iterator::value_type::stashed::value_type>::type, typename std::iterator_traits<Iterator>::difference_type>>
using beast::detail::aged_container_iterator< is_const, Iterator, Base >::time_point = typename Iterator::value_type::stashed::time_point

Definition at line 50 of file aged_container_iterator.h.

Constructor & Destructor Documentation

◆ aged_container_iterator() [1/4]

template<bool is_const, class Iterator , class Base = std::iterator< typename std::iterator_traits<Iterator>::iterator_category, typename std::conditional< is_const, typename Iterator::value_type::stashed::value_type const, typename Iterator::value_type::stashed::value_type>::type, typename std::iterator_traits<Iterator>::difference_type>>
beast::detail::aged_container_iterator< is_const, Iterator, Base >::aged_container_iterator ( )
default

◆ aged_container_iterator() [2/4]

template<bool is_const, class Iterator , class Base = std::iterator< typename std::iterator_traits<Iterator>::iterator_category, typename std::conditional< is_const, typename Iterator::value_type::stashed::value_type const, typename Iterator::value_type::stashed::value_type>::type, typename std::iterator_traits<Iterator>::difference_type>>
template<bool other_is_const, class OtherIterator , class OtherBase , 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, Base >::aged_container_iterator ( aged_container_iterator< other_is_const, OtherIterator, OtherBase > const &  other)
explicit

Definition at line 63 of file aged_container_iterator.h.

◆ aged_container_iterator() [3/4]

template<bool is_const, class Iterator , class Base = std::iterator< typename std::iterator_traits<Iterator>::iterator_category, typename std::conditional< is_const, typename Iterator::value_type::stashed::value_type const, typename Iterator::value_type::stashed::value_type>::type, typename std::iterator_traits<Iterator>::difference_type>>
template<bool other_is_const, class OtherBase , class = typename std::enable_if< other_is_const == false || is_const == true>::type>
beast::detail::aged_container_iterator< is_const, Iterator, Base >::aged_container_iterator ( aged_container_iterator< other_is_const, Iterator, OtherBase > const &  other)

Definition at line 76 of file aged_container_iterator.h.

◆ aged_container_iterator() [4/4]

template<bool is_const, class Iterator , class Base = std::iterator< typename std::iterator_traits<Iterator>::iterator_category, typename std::conditional< is_const, typename Iterator::value_type::stashed::value_type const, typename Iterator::value_type::stashed::value_type>::type, typename std::iterator_traits<Iterator>::difference_type>>
template<class OtherIterator >
beast::detail::aged_container_iterator< is_const, Iterator, Base >::aged_container_iterator ( OtherIterator const &  iter)
private

Definition at line 174 of file aged_container_iterator.h.

Member Function Documentation

◆ operator=()

template<bool is_const, class Iterator , class Base = std::iterator< typename std::iterator_traits<Iterator>::iterator_category, typename std::conditional< is_const, typename Iterator::value_type::stashed::value_type const, typename Iterator::value_type::stashed::value_type>::type, typename std::iterator_traits<Iterator>::difference_type>>
template<bool other_is_const, class OtherIterator , class OtherBase >
auto beast::detail::aged_container_iterator< is_const, Iterator, Base >::operator= ( aged_container_iterator< other_is_const, OtherIterator, OtherBase > const &  other) -> typename std::enable_if< other_is_const == false || is_const == true, aged_container_iterator&>::type

Definition at line 86 of file aged_container_iterator.h.

◆ operator==()

template<bool is_const, class Iterator , class Base = std::iterator< typename std::iterator_traits<Iterator>::iterator_category, typename std::conditional< is_const, typename Iterator::value_type::stashed::value_type const, typename Iterator::value_type::stashed::value_type>::type, typename std::iterator_traits<Iterator>::difference_type>>
template<bool other_is_const, class OtherIterator , class OtherBase >
bool beast::detail::aged_container_iterator< is_const, Iterator, Base >::operator== ( aged_container_iterator< other_is_const, OtherIterator, OtherBase > const &  other) const

Definition at line 99 of file aged_container_iterator.h.

◆ operator!=()

template<bool is_const, class Iterator , class Base = std::iterator< typename std::iterator_traits<Iterator>::iterator_category, typename std::conditional< is_const, typename Iterator::value_type::stashed::value_type const, typename Iterator::value_type::stashed::value_type>::type, typename std::iterator_traits<Iterator>::difference_type>>
template<bool other_is_const, class OtherIterator , class OtherBase >
bool beast::detail::aged_container_iterator< is_const, Iterator, Base >::operator!= ( aged_container_iterator< other_is_const, OtherIterator, OtherBase > const &  other) const

Definition at line 108 of file aged_container_iterator.h.

◆ operator++() [1/2]

template<bool is_const, class Iterator , class Base = std::iterator< typename std::iterator_traits<Iterator>::iterator_category, typename std::conditional< is_const, typename Iterator::value_type::stashed::value_type const, typename Iterator::value_type::stashed::value_type>::type, typename std::iterator_traits<Iterator>::difference_type>>
aged_container_iterator& beast::detail::aged_container_iterator< is_const, Iterator, Base >::operator++ ( )

Definition at line 116 of file aged_container_iterator.h.

◆ operator++() [2/2]

template<bool is_const, class Iterator , class Base = std::iterator< typename std::iterator_traits<Iterator>::iterator_category, typename std::conditional< is_const, typename Iterator::value_type::stashed::value_type const, typename Iterator::value_type::stashed::value_type>::type, typename std::iterator_traits<Iterator>::difference_type>>
aged_container_iterator beast::detail::aged_container_iterator< is_const, Iterator, Base >::operator++ ( int  )

Definition at line 123 of file aged_container_iterator.h.

◆ operator--() [1/2]

template<bool is_const, class Iterator , class Base = std::iterator< typename std::iterator_traits<Iterator>::iterator_category, typename std::conditional< is_const, typename Iterator::value_type::stashed::value_type const, typename Iterator::value_type::stashed::value_type>::type, typename std::iterator_traits<Iterator>::difference_type>>
aged_container_iterator& beast::detail::aged_container_iterator< is_const, Iterator, Base >::operator-- ( )

Definition at line 131 of file aged_container_iterator.h.

◆ operator--() [2/2]

template<bool is_const, class Iterator , class Base = std::iterator< typename std::iterator_traits<Iterator>::iterator_category, typename std::conditional< is_const, typename Iterator::value_type::stashed::value_type const, typename Iterator::value_type::stashed::value_type>::type, typename std::iterator_traits<Iterator>::difference_type>>
aged_container_iterator beast::detail::aged_container_iterator< is_const, Iterator, Base >::operator-- ( int  )

Definition at line 138 of file aged_container_iterator.h.

◆ operator*()

template<bool is_const, class Iterator , class Base = std::iterator< typename std::iterator_traits<Iterator>::iterator_category, typename std::conditional< is_const, typename Iterator::value_type::stashed::value_type const, typename Iterator::value_type::stashed::value_type>::type, typename std::iterator_traits<Iterator>::difference_type>>
Base::reference beast::detail::aged_container_iterator< is_const, Iterator, Base >::operator* ( ) const

Definition at line 146 of file aged_container_iterator.h.

◆ operator->()

template<bool is_const, class Iterator , class Base = std::iterator< typename std::iterator_traits<Iterator>::iterator_category, typename std::conditional< is_const, typename Iterator::value_type::stashed::value_type const, typename Iterator::value_type::stashed::value_type>::type, typename std::iterator_traits<Iterator>::difference_type>>
Base::pointer beast::detail::aged_container_iterator< is_const, Iterator, Base >::operator-> ( ) const

Definition at line 152 of file aged_container_iterator.h.

◆ when()

template<bool is_const, class Iterator , class Base = std::iterator< typename std::iterator_traits<Iterator>::iterator_category, typename std::conditional< is_const, typename Iterator::value_type::stashed::value_type const, typename Iterator::value_type::stashed::value_type>::type, typename std::iterator_traits<Iterator>::difference_type>>
time_point const& beast::detail::aged_container_iterator< is_const, Iterator, Base >::when ( ) const

Definition at line 158 of file aged_container_iterator.h.

◆ iterator()

template<bool is_const, class Iterator , class Base = std::iterator< typename std::iterator_traits<Iterator>::iterator_category, typename std::conditional< is_const, typename Iterator::value_type::stashed::value_type const, typename Iterator::value_type::stashed::value_type>::type, typename std::iterator_traits<Iterator>::difference_type>>
Iterator const& beast::detail::aged_container_iterator< is_const, Iterator, Base >::iterator ( ) const
private

Definition at line 179 of file aged_container_iterator.h.

Friends And Related Function Documentation

◆ aged_ordered_container

template<bool is_const, class Iterator , class Base = std::iterator< typename std::iterator_traits<Iterator>::iterator_category, typename std::conditional< is_const, typename Iterator::value_type::stashed::value_type const, typename Iterator::value_type::stashed::value_type>::type, typename std::iterator_traits<Iterator>::difference_type>>
template<bool , bool , class , class , class , class , class >
friend class aged_ordered_container
friend

Definition at line 165 of file aged_container_iterator.h.

◆ aged_unordered_container

template<bool is_const, class Iterator , class Base = std::iterator< typename std::iterator_traits<Iterator>::iterator_category, typename std::conditional< is_const, typename Iterator::value_type::stashed::value_type const, typename Iterator::value_type::stashed::value_type>::type, typename std::iterator_traits<Iterator>::difference_type>>
template<bool , bool , class , class , class , class , class , class >
friend class aged_unordered_container
friend

Definition at line 168 of file aged_container_iterator.h.

◆ aged_container_iterator

template<bool is_const, class Iterator , class Base = std::iterator< typename std::iterator_traits<Iterator>::iterator_category, typename std::conditional< is_const, typename Iterator::value_type::stashed::value_type const, typename Iterator::value_type::stashed::value_type>::type, typename std::iterator_traits<Iterator>::difference_type>>
template<bool , class , class >
friend class aged_container_iterator
friend

Definition at line 171 of file aged_container_iterator.h.

Member Data Documentation

◆ m_iter

template<bool is_const, class Iterator , class Base = std::iterator< typename std::iterator_traits<Iterator>::iterator_category, typename std::conditional< is_const, typename Iterator::value_type::stashed::value_type const, typename Iterator::value_type::stashed::value_type>::type, typename std::iterator_traits<Iterator>::difference_type>>
Iterator beast::detail::aged_container_iterator< is_const, Iterator, Base >::m_iter
private

Definition at line 184 of file aged_container_iterator.h.