SDSL 3.0.3
Succinct Data Structure Library
Loading...
Searching...
No Matches
sdsl::random_access_const_iterator< t_rac > Class Template Reference

Generic iterator for a random access container. More...

#include <iterators.hpp>

Public Types

using iterator_category = std::random_access_iterator_tag
using value_type = typename t_rac::value_type
using difference_type = typename t_rac::difference_type
using pointer = value_type *
using reference = value_type &
typedef const t_rac::value_type const_reference
typedef t_rac::size_type size_type
typedef random_access_const_iterator< t_rac > iterator

Public Member Functions

 random_access_const_iterator (t_rac const *rac, size_type idx=0)
 Constructor.
const_reference operator* () const
 Dereference operator for the Iterator.
iteratoroperator++ ()
 Prefix increment of the Iterator.
iterator operator++ (int)
 Postfix increment of the Iterator.
iteratoroperator-- ()
 Prefix decrement of the Iterator.
iterator operator-- (int)
 Postfix decrement of the Iterator.
iteratoroperator+= (difference_type i)
iteratoroperator-= (difference_type i)
iterator operator+ (difference_type i) const
iterator operator- (difference_type i) const
const_reference operator[] (difference_type i) const
bool operator== (iterator const &it) const
bool operator!= (iterator const &it) const
bool operator< (iterator const &it) const
bool operator> (iterator const &it) const
bool operator>= (iterator const &it) const
bool operator<= (iterator const &it) const

Friends

template<class t_RAC>
random_access_const_iterator< t_RAC >::difference_type operator- (random_access_const_iterator< t_RAC > const &x, random_access_const_iterator< t_RAC > const &y)

Detailed Description

template<class t_rac>
class sdsl::random_access_const_iterator< t_rac >

Generic iterator for a random access container.

Template Parameters
t_racType of random access container.

Definition at line 23 of file iterators.hpp.

Member Typedef Documentation

◆ const_reference

template<class t_rac>
typedef const t_rac::value_type sdsl::random_access_const_iterator< t_rac >::const_reference

Definition at line 32 of file iterators.hpp.

◆ difference_type

template<class t_rac>
using sdsl::random_access_const_iterator< t_rac >::difference_type = typename t_rac::difference_type

Definition at line 28 of file iterators.hpp.

◆ iterator

template<class t_rac>
typedef random_access_const_iterator<t_rac> sdsl::random_access_const_iterator< t_rac >::iterator

Definition at line 34 of file iterators.hpp.

◆ iterator_category

template<class t_rac>
using sdsl::random_access_const_iterator< t_rac >::iterator_category = std::random_access_iterator_tag

Definition at line 26 of file iterators.hpp.

◆ pointer

template<class t_rac>
using sdsl::random_access_const_iterator< t_rac >::pointer = value_type *

Definition at line 29 of file iterators.hpp.

◆ reference

template<class t_rac>
using sdsl::random_access_const_iterator< t_rac >::reference = value_type &

Definition at line 30 of file iterators.hpp.

◆ size_type

template<class t_rac>
typedef t_rac::size_type sdsl::random_access_const_iterator< t_rac >::size_type

Definition at line 33 of file iterators.hpp.

◆ value_type

template<class t_rac>
using sdsl::random_access_const_iterator< t_rac >::value_type = typename t_rac::value_type

Definition at line 27 of file iterators.hpp.

Constructor & Destructor Documentation

◆ random_access_const_iterator()

template<class t_rac>
sdsl::random_access_const_iterator< t_rac >::random_access_const_iterator ( t_rac const * rac,
size_type idx = 0 )
inline

Constructor.

Definition at line 46 of file iterators.hpp.

Member Function Documentation

◆ operator!=()

template<class t_rac>
bool sdsl::random_access_const_iterator< t_rac >::operator!= ( iterator const & it) const
inline

Definition at line 123 of file iterators.hpp.

◆ operator*()

template<class t_rac>
const_reference sdsl::random_access_const_iterator< t_rac >::operator* ( ) const
inline

Dereference operator for the Iterator.

Definition at line 50 of file iterators.hpp.

◆ operator+()

template<class t_rac>
iterator sdsl::random_access_const_iterator< t_rac >::operator+ ( difference_type i) const
inline

Definition at line 101 of file iterators.hpp.

◆ operator++() [1/2]

template<class t_rac>
iterator & sdsl::random_access_const_iterator< t_rac >::operator++ ( )
inline

Prefix increment of the Iterator.

Definition at line 56 of file iterators.hpp.

◆ operator++() [2/2]

template<class t_rac>
iterator sdsl::random_access_const_iterator< t_rac >::operator++ ( int )
inline

Postfix increment of the Iterator.

Definition at line 63 of file iterators.hpp.

◆ operator+=()

template<class t_rac>
iterator & sdsl::random_access_const_iterator< t_rac >::operator+= ( difference_type i)
inline

Definition at line 85 of file iterators.hpp.

◆ operator-()

template<class t_rac>
iterator sdsl::random_access_const_iterator< t_rac >::operator- ( difference_type i) const
inline

Definition at line 107 of file iterators.hpp.

◆ operator--() [1/2]

template<class t_rac>
iterator & sdsl::random_access_const_iterator< t_rac >::operator-- ( )
inline

Prefix decrement of the Iterator.

Definition at line 71 of file iterators.hpp.

◆ operator--() [2/2]

template<class t_rac>
iterator sdsl::random_access_const_iterator< t_rac >::operator-- ( int )
inline

Postfix decrement of the Iterator.

Definition at line 78 of file iterators.hpp.

◆ operator-=()

template<class t_rac>
iterator & sdsl::random_access_const_iterator< t_rac >::operator-= ( difference_type i)
inline

Definition at line 93 of file iterators.hpp.

◆ operator<()

template<class t_rac>
bool sdsl::random_access_const_iterator< t_rac >::operator< ( iterator const & it) const
inline

Definition at line 128 of file iterators.hpp.

◆ operator<=()

template<class t_rac>
bool sdsl::random_access_const_iterator< t_rac >::operator<= ( iterator const & it) const
inline

Definition at line 143 of file iterators.hpp.

◆ operator==()

template<class t_rac>
bool sdsl::random_access_const_iterator< t_rac >::operator== ( iterator const & it) const
inline

Definition at line 118 of file iterators.hpp.

◆ operator>()

template<class t_rac>
bool sdsl::random_access_const_iterator< t_rac >::operator> ( iterator const & it) const
inline

Definition at line 133 of file iterators.hpp.

◆ operator>=()

template<class t_rac>
bool sdsl::random_access_const_iterator< t_rac >::operator>= ( iterator const & it) const
inline

Definition at line 138 of file iterators.hpp.

◆ operator[]()

template<class t_rac>
const_reference sdsl::random_access_const_iterator< t_rac >::operator[] ( difference_type i) const
inline

Definition at line 113 of file iterators.hpp.

◆ operator-

template<class t_rac>
template<class t_RAC>
random_access_const_iterator< t_RAC >::difference_type operator- ( random_access_const_iterator< t_RAC > const & x,
random_access_const_iterator< t_RAC > const & y )
friend

The documentation for this class was generated from the following file:
  • /builddir/build/BUILD/sdsl-lite-3.0.3-build/sdsl-lite-3.0.3/include/sdsl/iterators.hpp