| OpenMS 2.5.0

Public Types | Public Member Functions | Protected Attributes | List of all members
AASequence::ConstIterator Class Reference

ConstIterator for AASequence. More...

`#include <OpenMS/CHEMISTRY/AASequence.h>`

## Public Types

typedef const Residue & | const_reference
typedef Residue & | reference
typedef const Residue * | const_pointer
typedef std::vector< const Residue * >::difference_type | difference_type
typedef Residue | value_type
typedef const Residue * | pointer
typedef std::random_access_iterator_tag | iterator_category

## Public Member Functions

ConstIterator & | operator= (const ConstIterator &rhs)
| assignment operator More...
Constructors and destructors
| ConstIterator ()
| default constructor More...
| ConstIterator (const std::vector< const Residue *> *vec_ptr, difference_type position)
| detailed constructor with pointer to the vector and offset position More...
| ConstIterator (const ConstIterator &rhs)
| copy constructor More...
| ConstIterator (const AASequence::Iterator &rhs)
| copy constructor from Iterator More...
virtual | ~ConstIterator ()
| destructor More...
Operators
const_reference | operator* () const
| dereference operator More...
const_pointer | operator-> () const
| dereference operator More...
const ConstIterator | operator+ (difference_type diff) const
| forward jump operator More...
difference_type | operator- (ConstIterator rhs) const
const ConstIterator | operator- (difference_type diff) const
| backward jump operator More...
bool | operator== (const ConstIterator &rhs) const
| equality comparator More...
bool | operator!= (const ConstIterator &rhs) const
| inequality operator More...
ConstIterator & | operator++ ()
| increment operator More...
ConstIterator & | operator-- ()
| decrement operator More...

## Protected Attributes

const std::vector< const Residue * > * | vector_
difference_type | position_

## Detailed Description

ConstIterator for AASequence.

AASequence constant iterator

## Member Typedef Documentation

## ◆ const_pointer

typedef const Residue* const_pointer

## ◆ const_reference

typedef const Residue& const_reference

## ◆ difference_type

typedef std::vector<const Residue*>::difference_type difference_type

## ◆ iterator_category

typedef std::random_access_iterator_tag iterator_category

## ◆ pointer

typedef const Residue* pointer

## ◆ reference

typedef Residue& reference

## ◆ value_type

typedef Residue value_type

## Constructor & Destructor Documentation

## ◆ ConstIterator() [1/4]

ConstIterator | ( |  | ) |

inline

default constructor

## ◆ ConstIterator() [2/4]

ConstIterator | ( | const std::vector< const Residue *> * | vec_ptr,
|  | difference_type | position
| ) |  |

inline

detailed constructor with pointer to the vector and offset position

References seqan::position().

## ◆ ConstIterator() [3/4]

ConstIterator | ( | const ConstIterator & | rhs | ) |

inline

copy constructor

## ◆ ConstIterator() [4/4]

ConstIterator | ( | const AASequence::Iterator & | rhs | ) |

inline

copy constructor from Iterator

## ◆ ~ConstIterator()

virtual ~ConstIterator | ( |  | ) |

inline virtual

destructor

## Member Function Documentation

## ◆ operator!=()

bool operator!= | ( | const ConstIterator & | rhs | ) | const

inline

inequality operator

References AASequence::ConstIterator::position_, and AASequence::ConstIterator::vector_.

## ◆ operator*()

const_reference operator* | ( |  | ) | const

inline

dereference operator

## ◆ operator+()

const ConstIterator operator+ | ( | difference_type | diff | ) | const

inline

forward jump operator

## ◆ operator++()

ConstIterator& operator++ | ( |  | ) |

inline

increment operator

## ◆ operator-() [1/2]

difference_type operator- | ( | ConstIterator | rhs | ) | const

inline

References AASequence::ConstIterator::position_.

## ◆ operator-() [2/2]

const ConstIterator operator- | ( | difference_type | diff | ) | const

inline

backward jump operator

## ◆ operator--()

ConstIterator& operator-- | ( |  | ) |

inline

decrement operator

## ◆ operator->()

const_pointer operator-> | ( |  | ) | const

inline

dereference operator

## ◆ operator=()

ConstIterator& operator= | ( | const ConstIterator & | rhs | ) |

inline

assignment operator

References AASequence::ConstIterator::position_, and AASequence::ConstIterator::vector_.

## ◆ operator==()

bool operator== | ( | const ConstIterator & | rhs | ) | const

inline

equality comparator

References AASequence::ConstIterator::position_, and AASequence::ConstIterator::vector_.

## Member Data Documentation

## ◆ position_

difference_type position_

protected

Referenced by AASequence::ConstIterator::operator!=(), AASequence::ConstIterator::operator-(), AASequence::ConstIterator::operator=(), and AASequence::ConstIterator::operator==().

## ◆ vector_

const std::vector<const Residue*>* vector_

protected

Referenced by AASequence::ConstIterator::operator!=(), AASequence::ConstIterator::operator=(), and AASequence::ConstIterator::operator==().