OpenMS  2.7.0
Public Types | Public Member Functions | Friends | List of all members
ConstRefVector< ContainerT >::ConstRefVectorIterator< ValueT > Class Template Reference

Mutable iterator for the ConstRefVector. More...

#include <OpenMS/DATASTRUCTURES/ConstRefVector.h>

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

Public Types

typedef ValueT ValueType
 
typedef ConstRefVectorConstIterator< ValueType >::value_typereference
 
typedef ConstRefVectorConstIterator< ValueType >::value_typepointer
 
- Public Types inherited from ConstRefVector< ContainerT >::ConstRefVectorConstIterator< ValueT >
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

 ConstRefVectorIterator ()=default
 
 ConstRefVectorIterator (const ConstRefVectorIterator &)=default
 
 ConstRefVectorIterator (typename std::vector< ValueType * > *vec, unsigned int position)
 
 ~ConstRefVectorIterator ()=default
 
ConstRefVectorIteratoroperator= (const ConstRefVectorIterator &rhs)=default
 
reference operator* () const
 
pointer operator-> () const
 
ConstRefVectorIteratoroperator++ ()
 
ConstRefVectorIterator operator++ (int)
 
ConstRefVectorIteratoroperator-- ()
 
ConstRefVectorIterator operator-- (int)
 
ConstRefVectorIterator operator- (typename ConstRefVectorIterator::difference_type n) const
 
ConstRefVectorIterator operator+ (typename ConstRefVectorIterator::difference_type n) const
 
ConstRefVectorIteratoroperator+= (typename ConstRefVectorIterator::difference_type n)
 
ConstRefVectorIteratoroperator-= (typename ConstRefVectorIterator::difference_type n)
 
- Public Member Functions inherited from ConstRefVector< ContainerT >::ConstRefVectorConstIterator< ValueT >
 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
 

Friends

class ConstRefVector
 
ConstRefVectorIterator operator+ (typename ConstRefVectorIterator::difference_type n, const ConstRefVectorIterator &i)
 
void swap (ConstRefVectorIterator &i1, ConstRefVectorIterator &i2)
 

Additional Inherited Members

- Protected Attributes inherited from ConstRefVector< ContainerT >::ConstRefVectorConstIterator< ValueT >
std::vector< ValueType * > * vector_
 
unsigned int position_
 

Detailed Description

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

Mutable iterator for the ConstRefVector.

Member Typedef Documentation

◆ pointer

◆ reference

◆ ValueType

typedef ValueT ValueType

Constructor & Destructor Documentation

◆ ConstRefVectorIterator() [1/3]

◆ ConstRefVectorIterator() [2/3]

ConstRefVectorIterator ( const ConstRefVectorIterator< ValueT > &  )
default

◆ ConstRefVectorIterator() [3/3]

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

◆ ~ConstRefVectorIterator()

~ConstRefVectorIterator ( )
default

Member Function Documentation

◆ operator*()

reference operator* ( ) const
inline

◆ operator+()

ConstRefVectorIterator operator+ ( typename ConstRefVectorIterator< ValueT >::difference_type  n) const
inline

◆ operator++() [1/2]

ConstRefVectorIterator& operator++ ( )
inline

◆ operator++() [2/2]

ConstRefVectorIterator operator++ ( int  )
inline

◆ operator+=()

ConstRefVectorIterator& operator+= ( typename ConstRefVectorIterator< ValueT >::difference_type  n)
inline

◆ operator-()

ConstRefVectorIterator operator- ( typename ConstRefVectorIterator< ValueT >::difference_type  n) const
inline

◆ operator--() [1/2]

ConstRefVectorIterator& operator-- ( )
inline

◆ operator--() [2/2]

ConstRefVectorIterator operator-- ( int  )
inline

◆ operator-=()

ConstRefVectorIterator& operator-= ( typename ConstRefVectorIterator< ValueT >::difference_type  n)
inline

◆ operator->()

pointer operator-> ( ) const
inline

◆ operator=()

ConstRefVectorIterator& operator= ( const ConstRefVectorIterator< ValueT > &  rhs)
default

Friends And Related Function Documentation

◆ ConstRefVector

friend class ConstRefVector
friend

◆ operator+

ConstRefVectorIterator operator+ ( typename ConstRefVectorIterator< ValueT >::difference_type  n,
const ConstRefVectorIterator< ValueT > &  i 
)
friend

◆ swap

void swap ( ConstRefVectorIterator< ValueT > &  i1,
ConstRefVectorIterator< ValueT > &  i2 
)
friend