Project
Loading...
Searching...
No Matches
o2::rans::internal::OrderedSetIterator< P > Class Template Reference

#include <OrderedSet.h>

Classes

class  PtrHelper
 

Public Types

using source_type = typename pair_type::first_type
 
using difference_type = std::ptrdiff_t
 
using value_type = std::pair< const source_type, std::add_lvalue_reference_t< std::conditional_t< std::is_const_v< std::remove_pointer_t< P > >, std::add_const_t< typename pair_type::second_type >, typename pair_type::second_type > > >
 
using pointer = PtrHelper
 
using reference = value_type &
 
using iterator_category = std::random_access_iterator_tag
 

Public Member Functions

constexpr OrderedSetIterator () noexcept=default
 
constexpr OrderedSetIterator (P ptr) noexcept
 
constexpr OrderedSetIterator (const OrderedSetIterator &iter) noexcept=default
 
constexpr OrderedSetIterator (OrderedSetIterator &&iter) noexcept=default
 
constexpr OrderedSetIteratoroperator= (const OrderedSetIterator &other) noexcept=default
 
constexpr OrderedSetIteratoroperator= (OrderedSetIterator &&other) noexcept=default
 
 ~OrderedSetIterator () noexcept=default
 
constexpr OrderedSetIteratoroperator++ () noexcept
 
constexpr OrderedSetIterator operator++ (int) noexcept
 
constexpr OrderedSetIteratoroperator-- () noexcept
 
constexpr OrderedSetIterator operator-- (int) noexcept
 
constexpr OrderedSetIteratoroperator+= (difference_type i) noexcept
 
constexpr OrderedSetIterator operator+ (difference_type i) const noexcept
 
constexpr OrderedSetIteratoroperator-= (difference_type i) noexcept
 
constexpr OrderedSetIterator operator- (difference_type i) const noexcept
 
constexpr difference_type operator- (const OrderedSetIterator &other) const noexcept
 
constexpr bool operator== (const OrderedSetIterator &other) const noexcept
 
constexpr bool operator!= (const OrderedSetIterator &other) const noexcept
 
constexpr bool operator< (const OrderedSetIterator &other) const noexcept
 
constexpr bool operator> (const OrderedSetIterator &other) const noexcept
 
constexpr bool operator>= (const OrderedSetIterator &other) const noexcept
 
constexpr bool operator<= (const OrderedSetIterator &other) const noexcept
 
constexpr value_type operator* () const
 
constexpr pointer operator-> () const
 
constexpr value_type operator[] (difference_type i) const
 

Detailed Description

template<typename P>
class o2::rans::internal::OrderedSetIterator< P >

Definition at line 169 of file OrderedSet.h.

Member Typedef Documentation

◆ difference_type

template<typename P >
using o2::rans::internal::OrderedSetIterator< P >::difference_type = std::ptrdiff_t

Definition at line 178 of file OrderedSet.h.

◆ iterator_category

template<typename P >
using o2::rans::internal::OrderedSetIterator< P >::iterator_category = std::random_access_iterator_tag

Definition at line 184 of file OrderedSet.h.

◆ pointer

template<typename P >
using o2::rans::internal::OrderedSetIterator< P >::pointer = PtrHelper

Definition at line 182 of file OrderedSet.h.

◆ reference

Definition at line 183 of file OrderedSet.h.

◆ source_type

template<typename P >
using o2::rans::internal::OrderedSetIterator< P >::source_type = typename pair_type::first_type

Definition at line 177 of file OrderedSet.h.

◆ value_type

template<typename P >
using o2::rans::internal::OrderedSetIterator< P >::value_type = std::pair<const source_type, std::add_lvalue_reference_t<std::conditional_t<std::is_const_v<std::remove_pointer_t<P> >, std::add_const_t<typename pair_type::second_type>, typename pair_type::second_type> >>

Definition at line 179 of file OrderedSet.h.

Constructor & Destructor Documentation

◆ OrderedSetIterator() [1/4]

template<typename P >
constexpr o2::rans::internal::OrderedSetIterator< P >::OrderedSetIterator ( )
inlineconstexprdefaultnoexcept

◆ OrderedSetIterator() [2/4]

template<typename P >
constexpr o2::rans::internal::OrderedSetIterator< P >::OrderedSetIterator ( ptr)
inlineconstexprnoexcept

Definition at line 188 of file OrderedSet.h.

◆ OrderedSetIterator() [3/4]

template<typename P >
constexpr o2::rans::internal::OrderedSetIterator< P >::OrderedSetIterator ( const OrderedSetIterator< P > &  iter)
inlineconstexprdefaultnoexcept

◆ OrderedSetIterator() [4/4]

template<typename P >
constexpr o2::rans::internal::OrderedSetIterator< P >::OrderedSetIterator ( OrderedSetIterator< P > &&  iter)
inlineconstexprdefaultnoexcept

◆ ~OrderedSetIterator()

template<typename P >
o2::rans::internal::OrderedSetIterator< P >::~OrderedSetIterator ( )
inlinedefaultnoexcept

Member Function Documentation

◆ operator!=()

template<typename P >
constexpr bool o2::rans::internal::OrderedSetIterator< P >::operator!= ( const OrderedSetIterator< P > &  other) const
inlineconstexprnoexcept

Definition at line 253 of file OrderedSet.h.

◆ operator*()

template<typename P >
constexpr value_type o2::rans::internal::OrderedSetIterator< P >::operator* ( ) const
inlineconstexpr

Definition at line 260 of file OrderedSet.h.

◆ operator+()

template<typename P >
constexpr OrderedSetIterator o2::rans::internal::OrderedSetIterator< P >::operator+ ( difference_type  i) const
inlineconstexprnoexcept

Definition at line 228 of file OrderedSet.h.

◆ operator++() [1/2]

template<typename P >
constexpr OrderedSetIterator & o2::rans::internal::OrderedSetIterator< P >::operator++ ( )
inlineconstexprnoexcept

Definition at line 196 of file OrderedSet.h.

◆ operator++() [2/2]

template<typename P >
constexpr OrderedSetIterator o2::rans::internal::OrderedSetIterator< P >::operator++ ( int  )
inlineconstexprnoexcept

Definition at line 202 of file OrderedSet.h.

◆ operator+=()

template<typename P >
constexpr OrderedSetIterator & o2::rans::internal::OrderedSetIterator< P >::operator+= ( difference_type  i)
inlineconstexprnoexcept

Definition at line 222 of file OrderedSet.h.

◆ operator-() [1/2]

template<typename P >
constexpr difference_type o2::rans::internal::OrderedSetIterator< P >::operator- ( const OrderedSetIterator< P > &  other) const
inlineconstexprnoexcept

Definition at line 246 of file OrderedSet.h.

◆ operator-() [2/2]

template<typename P >
constexpr OrderedSetIterator o2::rans::internal::OrderedSetIterator< P >::operator- ( difference_type  i) const
inlineconstexprnoexcept

Definition at line 240 of file OrderedSet.h.

◆ operator--() [1/2]

template<typename P >
constexpr OrderedSetIterator & o2::rans::internal::OrderedSetIterator< P >::operator-- ( )
inlineconstexprnoexcept

Definition at line 209 of file OrderedSet.h.

◆ operator--() [2/2]

template<typename P >
constexpr OrderedSetIterator o2::rans::internal::OrderedSetIterator< P >::operator-- ( int  )
inlineconstexprnoexcept

Definition at line 215 of file OrderedSet.h.

◆ operator-=()

template<typename P >
constexpr OrderedSetIterator & o2::rans::internal::OrderedSetIterator< P >::operator-= ( difference_type  i)
inlineconstexprnoexcept

Definition at line 234 of file OrderedSet.h.

◆ operator->()

template<typename P >
constexpr pointer o2::rans::internal::OrderedSetIterator< P >::operator-> ( ) const
inlineconstexpr

Definition at line 262 of file OrderedSet.h.

◆ operator<()

template<typename P >
constexpr bool o2::rans::internal::OrderedSetIterator< P >::operator< ( const OrderedSetIterator< P > &  other) const
inlineconstexprnoexcept

Definition at line 254 of file OrderedSet.h.

◆ operator<=()

template<typename P >
constexpr bool o2::rans::internal::OrderedSetIterator< P >::operator<= ( const OrderedSetIterator< P > &  other) const
inlineconstexprnoexcept

Definition at line 257 of file OrderedSet.h.

◆ operator=() [1/2]

template<typename P >
constexpr OrderedSetIterator & o2::rans::internal::OrderedSetIterator< P >::operator= ( const OrderedSetIterator< P > &  other)
inlineconstexprdefaultnoexcept

◆ operator=() [2/2]

template<typename P >
constexpr OrderedSetIterator & o2::rans::internal::OrderedSetIterator< P >::operator= ( OrderedSetIterator< P > &&  other)
inlineconstexprdefaultnoexcept

◆ operator==()

template<typename P >
constexpr bool o2::rans::internal::OrderedSetIterator< P >::operator== ( const OrderedSetIterator< P > &  other) const
inlineconstexprnoexcept

Definition at line 252 of file OrderedSet.h.

◆ operator>()

template<typename P >
constexpr bool o2::rans::internal::OrderedSetIterator< P >::operator> ( const OrderedSetIterator< P > &  other) const
inlineconstexprnoexcept

Definition at line 255 of file OrderedSet.h.

◆ operator>=()

template<typename P >
constexpr bool o2::rans::internal::OrderedSetIterator< P >::operator>= ( const OrderedSetIterator< P > &  other) const
inlineconstexprnoexcept

Definition at line 256 of file OrderedSet.h.

◆ operator[]()

template<typename P >
constexpr value_type o2::rans::internal::OrderedSetIterator< P >::operator[] ( difference_type  i) const
inlineconstexpr

Definition at line 264 of file OrderedSet.h.


The documentation for this class was generated from the following file: