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

an 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

 CharIndexedVectorIterator (const iterator &itr)
 
reference operator* () const
 
bool operator!= (const CharIndexedVectorIterator &rhs) const
 
difference_type operator- (const CharIndexedVectorIterator &rhs) const
 
CharIndexedVectorIteratoroperator++ ()
 
CharIndexedVectorIterator operator++ (int)
 
CharIndexedVectorIteratoroperator-- ()
 
CharIndexedVectorIterator operator-- (int)
 
CharIndexedVectorIteratoroperator+= (difference_type _Off)
 
CharIndexedVectorIteratoroperator-= (difference_type _Off)
 
bool operator< (const CharIndexedVectorIterator &rhs)
 

Private Types

typedef boost::array< T, 129 > type
 

Private Attributes

type::iterator m_itr
 

Detailed Description

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

an iterator for CharIndexedVector

Definition at line 35 of file CharIndexedVector.hpp.

Member Typedef Documentation

§ type

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

Definition at line 37 of file CharIndexedVector.hpp.

§ value_type

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

Definition at line 41 of file CharIndexedVector.hpp.

§ iterator

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

Definition at line 42 of file CharIndexedVector.hpp.

§ pointer

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

Definition at line 43 of file CharIndexedVector.hpp.

§ const_iterator

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

Definition at line 44 of file CharIndexedVector.hpp.

§ difference_type

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

Definition at line 45 of file CharIndexedVector.hpp.

§ reference

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

Definition at line 46 of file CharIndexedVector.hpp.

§ const_reference

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

Definition at line 47 of file CharIndexedVector.hpp.

§ size_type

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

Definition at line 48 of file CharIndexedVector.hpp.

§ iterator_category

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

Definition at line 49 of file CharIndexedVector.hpp.

Constructor & Destructor Documentation

§ CharIndexedVectorIterator()

template<class T >
pwiz::util::CharIndexedVectorIterator< T >::CharIndexedVectorIterator ( const iterator itr)
inline

Definition at line 51 of file CharIndexedVector.hpp.

Member Function Documentation

§ operator*()

template<class T >
reference pwiz::util::CharIndexedVectorIterator< T >::operator* ( ) const
inline

Definition at line 53 of file CharIndexedVector.hpp.

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

54  {
55  return *m_itr;
56  }

§ operator!=()

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

Definition at line 58 of file CharIndexedVector.hpp.

59  {
60  return m_itr != *(iterator*)&rhs;
61  }

§ operator-()

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

Definition at line 63 of file CharIndexedVector.hpp.

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

64  {
65  return m_itr - rhs.m_itr;
66  }

§ operator++() [1/2]

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

Definition at line 68 of file CharIndexedVector.hpp.

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

69  { // preincrement
70  ++m_itr;
71  return (*this);
72  }

§ operator++() [2/2]

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

Definition at line 74 of file CharIndexedVector.hpp.

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

75  { // postincrement
76  CharIndexedVectorIterator _Tmp = *this;
77  ++m_itr;
78  return (_Tmp);
79  }

§ operator--() [1/2]

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

Definition at line 81 of file CharIndexedVector.hpp.

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

82  { // predecrement
83  ++m_itr;
84  return (*this);
85  }

§ operator--() [2/2]

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

Definition at line 87 of file CharIndexedVector.hpp.

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

88  { // postdecrement
89  CharIndexedVectorIterator _Tmp = *this;
90  ++m_itr;
91  return (_Tmp);
92  }

§ operator+=()

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

Definition at line 94 of file CharIndexedVector.hpp.

95  { // increment by integer
96  m_itr += _Off;
97  return (*this);
98  }

§ operator-=()

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

Definition at line 100 of file CharIndexedVector.hpp.

101  { // decrement by integer
102  return (*this += -_Off);
103  }

§ operator<()

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

Definition at line 105 of file CharIndexedVector.hpp.

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

106  {
107  return m_itr < rhs.m_itr;
108  }

Member Data Documentation

§ m_itr

template<class T >
type::iterator pwiz::util::CharIndexedVectorIterator< T >::m_itr
private

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