OpenMS  2.8.0
Public Types | Friends | List of all members
AASequence::Iterator Class Reference

Iterator class for AASequence. More...

#include <OpenMS/CHEMISTRY/AASequence.h>

Collaboration diagram for AASequence::Iterator:
[legend]

Public Types

typedef const Residueconst_reference
 
typedef Residuereference
 
typedef const Residueconst_pointer
 
typedef const Residuepointer
 
typedef std::vector< const Residue * >::difference_type difference_type
 

Public Member Functions

Constructors and destructors
 Iterator ()
 default constructor More...
 
 Iterator (std::vector< const Residue * > *vec_ptr, difference_type position)
 detailed constructor with pointer to the vector and offset position More...
 
 Iterator (const Iterator &rhs)
 copy constructor More...
 
virtual ~Iterator ()
 destructor More...
 
Iteratoroperator= (const Iterator &rhs)
 assignment operator More...
 

Friends

class AASequence::ConstIterator
 

Operators

std::vector< const Residue * > * vector_
 
difference_type position_
 
const_reference operator* () const
 dereference operator More...
 
const_pointer operator-> () const
 dereference operator More...
 
pointer operator-> ()
 mutable dereference operator More...
 
const Iterator operator+ (difference_type diff) const
 forward jump operator More...
 
difference_type operator- (Iterator rhs) const
 
const Iterator operator- (difference_type diff) const
 backward jump operator More...
 
bool operator== (const Iterator &rhs) const
 equality comparator More...
 
bool operator!= (const Iterator &rhs) const
 inequality operator More...
 
Iteratoroperator++ ()
 increment operator More...
 
Iteratoroperator-- ()
 decrement operator More...
 

Detailed Description

Iterator class for AASequence.

Mutable iterator for AASequence

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

◆ pointer

typedef const Residue* pointer

◆ reference

typedef Residue& reference

Constructor & Destructor Documentation

◆ Iterator() [1/3]

Iterator ( )
inline

default constructor

◆ Iterator() [2/3]

Iterator ( std::vector< const Residue * > *  vec_ptr,
difference_type  position 
)
inline

detailed constructor with pointer to the vector and offset position

◆ Iterator() [3/3]

Iterator ( const Iterator rhs)
inline

copy constructor

◆ ~Iterator()

virtual ~Iterator ( )
inlinevirtual

destructor

Member Function Documentation

◆ operator!=()

bool operator!= ( const Iterator rhs) const
inline

inequality operator

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

◆ operator*()

const_reference operator* ( ) const
inline

dereference operator

◆ operator+()

const Iterator operator+ ( difference_type  diff) const
inline

forward jump operator

◆ operator++()

Iterator& operator++ ( )
inline

increment operator

◆ operator-() [1/2]

const Iterator operator- ( difference_type  diff) const
inline

backward jump operator

◆ operator-() [2/2]

difference_type operator- ( Iterator  rhs) const
inline

◆ operator--()

Iterator& operator-- ( )
inline

decrement operator

◆ operator->() [1/2]

pointer operator-> ( )
inline

mutable dereference operator

◆ operator->() [2/2]

const_pointer operator-> ( ) const
inline

dereference operator

◆ operator=()

Iterator& operator= ( const Iterator rhs)
inline

assignment operator

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

◆ operator==()

bool operator== ( const Iterator rhs) const
inline

equality comparator

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

Friends And Related Function Documentation

◆ AASequence::ConstIterator

friend class AASequence::ConstIterator
friend

Member Data Documentation

◆ position_

difference_type position_
protected

◆ vector_

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