ProteoWizard
Public Types | Public Member Functions | Private Types | Private Attributes | List of all members
pwiz::util::CharIndexedVectorConstIterator< T > Class Template Reference

a const_iterator for CharIndexedVector More...

#include <CharIndexedVector.hpp>

Public Types

typedef type::value_type value_type
 
typedef type::iterator iterator
 
typedef type::iterator pointer
 
typedef type::const_iterator const_iterator
 
typedef type::difference_type difference_type
 
typedef type::reference reference
 
typedef type::const_reference const_reference
 
typedef type::size_type size_type
 
typedef std::random_access_iterator_tag iterator_category
 

Public Member Functions

 CharIndexedVectorConstIterator (const const_iterator &itr)
 
const_reference operator* () const
 
bool operator!= (const CharIndexedVectorConstIterator &rhs) const
 
difference_type operator- (const CharIndexedVectorConstIterator &rhs) const
 
CharIndexedVectorConstIteratoroperator++ ()
 
CharIndexedVectorConstIterator operator++ (int)
 
CharIndexedVectorConstIteratoroperator-- ()
 
CharIndexedVectorConstIterator operator-- (int)
 
CharIndexedVectorConstIteratoroperator+= (difference_type _Off)
 
CharIndexedVectorConstIteratoroperator-= (difference_type _Off)
 
bool operator< (const CharIndexedVectorConstIterator &rhs)
 

Private Types

typedef boost::array< T, 129 > type
 

Private Attributes

type::const_iterator m_itr
 

Detailed Description

template<class T>
class pwiz::util::CharIndexedVectorConstIterator< T >

a const_iterator for CharIndexedVector

Definition at line 113 of file CharIndexedVector.hpp.

Member Typedef Documentation

§ type

template<class T >
typedef boost::array<T, 129> pwiz::util::CharIndexedVectorConstIterator< T >::type
private

Definition at line 115 of file CharIndexedVector.hpp.

§ value_type

template<class T >
typedef type::value_type pwiz::util::CharIndexedVectorConstIterator< T >::value_type

Definition at line 119 of file CharIndexedVector.hpp.

§ iterator

template<class T >
typedef type::iterator pwiz::util::CharIndexedVectorConstIterator< T >::iterator

Definition at line 120 of file CharIndexedVector.hpp.

§ pointer

template<class T >
typedef type::iterator pwiz::util::CharIndexedVectorConstIterator< T >::pointer

Definition at line 121 of file CharIndexedVector.hpp.

§ const_iterator

template<class T >
typedef type::const_iterator pwiz::util::CharIndexedVectorConstIterator< T >::const_iterator

Definition at line 122 of file CharIndexedVector.hpp.

§ difference_type

template<class T >
typedef type::difference_type pwiz::util::CharIndexedVectorConstIterator< T >::difference_type

Definition at line 123 of file CharIndexedVector.hpp.

§ reference

template<class T >
typedef type::reference pwiz::util::CharIndexedVectorConstIterator< T >::reference

Definition at line 124 of file CharIndexedVector.hpp.

§ const_reference

template<class T >
typedef type::const_reference pwiz::util::CharIndexedVectorConstIterator< T >::const_reference

Definition at line 125 of file CharIndexedVector.hpp.

§ size_type

template<class T >
typedef type::size_type pwiz::util::CharIndexedVectorConstIterator< T >::size_type

Definition at line 126 of file CharIndexedVector.hpp.

§ iterator_category

template<class T >
typedef std::random_access_iterator_tag pwiz::util::CharIndexedVectorConstIterator< T >::iterator_category

Definition at line 127 of file CharIndexedVector.hpp.

Constructor & Destructor Documentation

§ CharIndexedVectorConstIterator()

Definition at line 129 of file CharIndexedVector.hpp.

129 : m_itr(itr) {}

Member Function Documentation

§ operator*()

template<class T >
const_reference pwiz::util::CharIndexedVectorConstIterator< T >::operator* ( ) const
inline

Definition at line 131 of file CharIndexedVector.hpp.

References pwiz::util::CharIndexedVectorIterator< T >::m_itr.

132  {
133  return *m_itr;
134  }

§ operator!=()

template<class T >
bool pwiz::util::CharIndexedVectorConstIterator< T >::operator!= ( const CharIndexedVectorConstIterator< T > &  rhs) const
inline

Definition at line 136 of file CharIndexedVector.hpp.

137  {
138  return m_itr != *(const_iterator*)&rhs;
139  }

§ operator-()

template<class T >
difference_type pwiz::util::CharIndexedVectorConstIterator< T >::operator- ( const CharIndexedVectorConstIterator< T > &  rhs) const
inline

Definition at line 141 of file CharIndexedVector.hpp.

References pwiz::util::CharIndexedVectorConstIterator< T >::m_itr.

142  {
143  return m_itr - rhs.m_itr;
144  }

§ operator++() [1/2]

template<class T >
CharIndexedVectorConstIterator& pwiz::util::CharIndexedVectorConstIterator< T >::operator++ ( )
inline

Definition at line 146 of file CharIndexedVector.hpp.

References pwiz::util::CharIndexedVectorIterator< T >::m_itr.

147  { // preincrement
148  ++m_itr;
149  return (*this);
150  }

§ operator++() [2/2]

template<class T >
CharIndexedVectorConstIterator pwiz::util::CharIndexedVectorConstIterator< T >::operator++ ( int  )
inline

Definition at line 152 of file CharIndexedVector.hpp.

References pwiz::util::CharIndexedVectorIterator< T >::m_itr.

153  { // postincrement
154  CharIndexedVectorConstIterator _Tmp = *this;
155  ++m_itr;
156  return (_Tmp);
157  }
CharIndexedVectorConstIterator(const const_iterator &itr)

§ operator--() [1/2]

template<class T >
CharIndexedVectorConstIterator& pwiz::util::CharIndexedVectorConstIterator< T >::operator-- ( )
inline

Definition at line 159 of file CharIndexedVector.hpp.

References pwiz::util::CharIndexedVectorIterator< T >::m_itr.

160  { // predecrement
161  ++m_itr;
162  return (*this);
163  }

§ operator--() [2/2]

template<class T >
CharIndexedVectorConstIterator pwiz::util::CharIndexedVectorConstIterator< T >::operator-- ( int  )
inline

Definition at line 165 of file CharIndexedVector.hpp.

References pwiz::util::CharIndexedVectorIterator< T >::m_itr.

166  { // postdecrement
167  CharIndexedVectorConstIterator _Tmp = *this;
168  ++m_itr;
169  return (_Tmp);
170  }
CharIndexedVectorConstIterator(const const_iterator &itr)

§ operator+=()

template<class T >
CharIndexedVectorConstIterator& pwiz::util::CharIndexedVectorConstIterator< T >::operator+= ( difference_type  _Off)
inline

Definition at line 172 of file CharIndexedVector.hpp.

173  { // increment by integer
174  m_itr += _Off;
175  return (*this);
176  }

§ operator-=()

template<class T >
CharIndexedVectorConstIterator& pwiz::util::CharIndexedVectorConstIterator< T >::operator-= ( difference_type  _Off)
inline

Definition at line 178 of file CharIndexedVector.hpp.

179  { // decrement by integer
180  return (*this += -_Off);
181  }

§ operator<()

template<class T >
bool pwiz::util::CharIndexedVectorConstIterator< T >::operator< ( const CharIndexedVectorConstIterator< T > &  rhs)
inline

Definition at line 183 of file CharIndexedVector.hpp.

References pwiz::util::CharIndexedVectorConstIterator< T >::m_itr.

184  {
185  return m_itr < rhs.m_itr;
186  }

Member Data Documentation

§ m_itr

template<class T >
type::const_iterator pwiz::util::CharIndexedVectorConstIterator< T >::m_itr
private

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