OpenMS
Loading...
Searching...
No Matches
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

template<typename ContainerT >
template<class ValueT >
typedef ConstRefVectorConstIterator<ValueType>::value_type* pointer

◆ reference

template<typename ContainerT >
template<class ValueT >
typedef ConstRefVectorConstIterator<ValueType>::value_type& reference

◆ ValueType

template<typename ContainerT >
template<class ValueT >
typedef ValueT ValueType

Constructor & Destructor Documentation

◆ ConstRefVectorIterator() [1/3]

template<typename ContainerT >
template<class ValueT >
ConstRefVectorIterator ( )
default

◆ ConstRefVectorIterator() [2/3]

template<typename ContainerT >
template<class ValueT >
ConstRefVectorIterator ( const ConstRefVectorIterator< ValueT > &  )
default

◆ ConstRefVectorIterator() [3/3]

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

◆ ~ConstRefVectorIterator()

template<typename ContainerT >
template<class ValueT >
~ConstRefVectorIterator ( )
default

Member Function Documentation

◆ operator*()

template<typename ContainerT >
template<class ValueT >
reference operator* ( ) const
inline

◆ operator+()

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

◆ operator++() [1/2]

template<typename ContainerT >
template<class ValueT >
ConstRefVectorIterator & operator++ ( )
inline

◆ operator++() [2/2]

template<typename ContainerT >
template<class ValueT >
ConstRefVectorIterator operator++ ( int  )
inline

◆ operator+=()

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

◆ operator-()

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

◆ operator--() [1/2]

template<typename ContainerT >
template<class ValueT >
ConstRefVectorIterator & operator-- ( )
inline

◆ operator--() [2/2]

template<typename ContainerT >
template<class ValueT >
ConstRefVectorIterator operator-- ( int  )
inline

◆ operator-=()

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

◆ operator->()

◆ operator=()

template<typename ContainerT >
template<class ValueT >
ConstRefVectorIterator & operator= ( const ConstRefVectorIterator< ValueT > &  rhs)
default

Friends And Related Symbol Documentation

◆ ConstRefVector

template<typename ContainerT >
template<class ValueT >
friend class ConstRefVector
friend

◆ operator+

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

◆ swap

template<typename ContainerT >
template<class ValueT >
void swap ( ConstRefVectorIterator< ValueT > &  i1,
ConstRefVectorIterator< ValueT > &  i2 
)
friend