OpenMS  2.8.0
Public Types | Public Member Functions | Protected Attributes | Friends | List of all members
ConstRefVector< ContainerT >::ConstRefVectorConstIterator< ValueT > Class Template Reference

ConstIterator for the ConstRefVector. More...

#include <OpenMS/DATASTRUCTURES/ConstRefVector.h>

Inheritance diagram for ConstRefVector< ContainerT >::ConstRefVectorConstIterator< ValueT >:
[legend]
Collaboration diagram for ConstRefVector< ContainerT >::ConstRefVectorConstIterator< ValueT >:
[legend]

Public Types

typedef ValueT ValueType
 
typedef ValueType value_type
 
typedef std::vector< ValueType * >::difference_type difference_type
 
typedef const value_typereference
 
typedef const value_typepointer
 
typedef std::random_access_iterator_tag iterator_category
 

Public Member Functions

 ConstRefVectorConstIterator ()=default
 
 ConstRefVectorConstIterator (const ConstRefVectorConstIterator &)=default
 
ConstRefVectorConstIteratoroperator= (const ConstRefVectorConstIterator &)=default
 
 ~ConstRefVectorConstIterator ()=default
 
 ConstRefVectorConstIterator (const typename std::vector< ValueType * > *vec, unsigned int position)
 
 ConstRefVectorConstIterator (typename std::vector< ValueType * > *vec, unsigned int position)
 
bool operator< (const ConstRefVectorConstIterator &it) const
 
bool operator> (const ConstRefVectorConstIterator &it) const
 
bool operator<= (const ConstRefVectorConstIterator &it) const
 
bool operator>= (const ConstRefVectorConstIterator &it) const
 
bool operator== (const ConstRefVectorConstIterator &it) const
 
bool operator!= (const ConstRefVectorConstIterator &it) const
 
ConstRefVectorConstIteratoroperator++ ()
 
ConstRefVectorConstIterator operator++ (int)
 
ConstRefVectorConstIteratoroperator-- ()
 
ConstRefVectorConstIterator operator-- (int)
 
ConstRefVectorConstIterator operator- (difference_type n) const
 
ConstRefVectorConstIterator operator+ (difference_type n) const
 
ConstRefVectorConstIteratoroperator+= (difference_type n)
 
ConstRefVectorConstIteratoroperator-= (difference_type n)
 
reference operator* () const
 
pointer operator-> () const
 

Protected Attributes

std::vector< ValueType * > * vector_
 
unsigned int position_
 

Friends

class ConstRefVector
 
difference_type operator- (const ConstRefVectorConstIterator &i1, const ConstRefVectorConstIterator &i2)
 
ConstRefVectorConstIterator operator+ (difference_type n, const ConstRefVectorConstIterator &i)
 

Detailed Description

template<typename ContainerT>
template<class ValueT>
class OpenMS::ConstRefVector< ContainerT >::ConstRefVectorConstIterator< ValueT >

ConstIterator for the ConstRefVector.

Member Typedef Documentation

◆ difference_type

typedef std::vector<ValueType*>::difference_type difference_type

◆ iterator_category

typedef std::random_access_iterator_tag iterator_category

◆ pointer

typedef const value_type* pointer

◆ reference

typedef const value_type& reference

◆ value_type

◆ ValueType

typedef ValueT ValueType

Constructor & Destructor Documentation

◆ ConstRefVectorConstIterator() [1/4]

◆ ConstRefVectorConstIterator() [2/4]

◆ ~ConstRefVectorConstIterator()

◆ ConstRefVectorConstIterator() [3/4]

ConstRefVectorConstIterator ( const typename std::vector< ValueType * > *  vec,
unsigned int  position 
)
inline

◆ ConstRefVectorConstIterator() [4/4]

ConstRefVectorConstIterator ( typename std::vector< ValueType * > *  vec,
unsigned int  position 
)
inline

Member Function Documentation

◆ operator!=()

bool operator!= ( const ConstRefVectorConstIterator< ValueT > &  it) const
inline

◆ operator*()

reference operator* ( ) const
inline

◆ operator+()

ConstRefVectorConstIterator operator+ ( difference_type  n) const
inline

◆ operator++() [1/2]

ConstRefVectorConstIterator& operator++ ( )
inline

◆ operator++() [2/2]

ConstRefVectorConstIterator operator++ ( int  )
inline

◆ operator+=()

ConstRefVectorConstIterator& operator+= ( difference_type  n)
inline

◆ operator-()

ConstRefVectorConstIterator operator- ( difference_type  n) const
inline

◆ operator--() [1/2]

ConstRefVectorConstIterator& operator-- ( )
inline

◆ operator--() [2/2]

ConstRefVectorConstIterator operator-- ( int  )
inline

◆ operator-=()

ConstRefVectorConstIterator& operator-= ( difference_type  n)
inline

◆ operator->()

pointer operator-> ( ) const
inline

◆ operator<()

bool operator< ( const ConstRefVectorConstIterator< ValueT > &  it) const
inline

◆ operator<=()

bool operator<= ( const ConstRefVectorConstIterator< ValueT > &  it) const
inline

◆ operator=()

ConstRefVectorConstIterator& operator= ( const ConstRefVectorConstIterator< ValueT > &  )
default

◆ operator==()

bool operator== ( const ConstRefVectorConstIterator< ValueT > &  it) const
inline

◆ operator>()

bool operator> ( const ConstRefVectorConstIterator< ValueT > &  it) const
inline

◆ operator>=()

bool operator>= ( const ConstRefVectorConstIterator< ValueT > &  it) const
inline

Friends And Related Function Documentation

◆ ConstRefVector

friend class ConstRefVector
friend

◆ operator+

ConstRefVectorConstIterator operator+ ( difference_type  n,
const ConstRefVectorConstIterator< ValueT > &  i 
)
friend

◆ operator-

difference_type operator- ( const ConstRefVectorConstIterator< ValueT > &  i1,
const ConstRefVectorConstIterator< ValueT > &  i2 
)
friend

Member Data Documentation

◆ position_

unsigned int position_
protected

Referenced by ConstRefVector< ContainerT >::ConstRefVectorConstIterator< ValueT >::ConstRefVectorConstIterator(), ConstRefVector< ContainerT >::erase(), ConstRefVector< ContainerT >::insert(), ConstRefVector< ContainerT >::ConstRefVectorConstIterator< ValueT >::operator!=(), ConstRefVector< ContainerT >::ConstRefVectorConstIterator< ValueT >::operator*(), ConstRefVector< ContainerT >::ConstRefVectorIterator< ValueT >::operator*(), ConstRefVector< ContainerT >::ConstRefVectorConstIterator< ValueT >::operator+(), ConstRefVector< ContainerT >::ConstRefVectorIterator< ValueT >::operator+(), ConstRefVector< ContainerT >::ConstRefVectorConstIterator< ValueT >::operator++(), ConstRefVector< ContainerT >::ConstRefVectorConstIterator< ValueT >::operator+=(), ConstRefVector< ContainerT >::ConstRefVectorConstIterator< ValueT >::operator-(), ConstRefVector< ContainerT >::ConstRefVectorIterator< ValueT >::operator-(), ConstRefVector< ContainerT >::ConstRefVectorConstIterator< ValueT >::operator--(), ConstRefVector< ContainerT >::ConstRefVectorConstIterator< ValueT >::operator-=(), ConstRefVector< ContainerT >::ConstRefVectorConstIterator< ValueT >::operator->(), ConstRefVector< ContainerT >::ConstRefVectorIterator< ValueT >::operator->(), ConstRefVector< ContainerT >::ConstRefVectorConstIterator< ValueT >::operator<(), ConstRefVector< ContainerT >::ConstRefVectorConstIterator< ValueT >::operator<=(), ConstRefVector< ContainerT >::ConstRefVectorConstIterator< ValueT >::operator==(), ConstRefVector< ContainerT >::ConstRefVectorConstIterator< ValueT >::operator>(), and ConstRefVector< ContainerT >::ConstRefVectorConstIterator< ValueT >::operator>=().

◆ vector_

std::vector<ValueType*>* vector_
protected