SDSL  3.0.0
Succinct Data Structure Library
sdsl::random_access_const_iterator< t_rac > Class Template Reference

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

#include <iterators.hpp>

Inheritance diagram for sdsl::random_access_const_iterator< t_rac >:

Public Types

typedef const t_rac::value_type const_reference
 
typedef t_rac::size_type size_type
 
typedef random_access_const_iterator< t_rac > iterator
 
typedef t_rac::difference_type difference_type
 

Public Member Functions

 random_access_const_iterator (const t_rac *rac, size_type idx=0)
 Constructor. More...
 
const_reference operator* () const
 Dereference operator for the Iterator. More...
 
iteratoroperator++ ()
 Prefix increment of the Iterator. More...
 
iterator operator++ (int)
 Postfix increment of the Iterator. More...
 
iteratoroperator-- ()
 Prefix decrement of the Iterator. More...
 
iterator operator-- (int)
 Postfix decrement of the Iterator. More...
 
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== (const iterator &it) const
 
bool operator!= (const iterator &it) const
 
bool operator< (const iterator &it) const
 
bool operator> (const iterator &it) const
 
bool operator>= (const iterator &it) const
 
bool operator<= (const iterator &it) const
 

Friends

template<class t_RAC >
random_access_const_iterator< t_RAC >::difference_type operator- (const random_access_const_iterator< t_RAC > &x, const random_access_const_iterator< t_RAC > &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 22 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 26 of file iterators.hpp.

◆ difference_type

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

Definition at line 29 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 28 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 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 ( const t_rac *  rac,
size_type  idx = 0 
)
inline

Constructor.

Definition at line 42 of file iterators.hpp.

Member Function Documentation

◆ operator!=()

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

Definition at line 110 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 48 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 94 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 51 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 58 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 80 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 100 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 66 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 73 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 87 of file iterators.hpp.

◆ operator<()

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

Definition at line 112 of file iterators.hpp.

◆ operator<=()

template<class t_rac >
bool sdsl::random_access_const_iterator< t_rac >::operator<= ( const iterator 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== ( const iterator it) const
inline

Definition at line 108 of file iterators.hpp.

◆ operator>()

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

Definition at line 114 of file iterators.hpp.

◆ operator>=()

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

Definition at line 116 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 106 of file iterators.hpp.

Friends And Related Function Documentation

◆ operator-

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

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