50 class ResidueModification;
148 vector_(rhs.vector_),
149 position_(rhs.position_)
155 vector_(rhs.vector_),
156 position_(rhs.position_)
184 return *(*vector_)[position_];
190 return (*vector_)[position_];
281 vector_(rhs.vector_),
282 position_(rhs.position_)
310 return *(*vector_)[position_];
316 return (*vector_)[position_];
322 return (*vector_)[position_];
328 return Iterator(vector_, position_ + diff);
339 return Iterator(vector_, position_ - diff);
413 String toUnmodifiedString()
const;
423 String toUniModString()
const;
432 String toBracketString(
bool integer_mass =
true,
const std::vector<String> & fixed_modifications = std::vector<String>())
const;
439 void setNTerminalModification(
const String& modification);
442 const String& getNTerminalModificationName()
const;
448 void setCTerminalModification(
const String& modification);
451 const String& getCTerminalModificationName()
const;
506 bool has(
const Residue& residue)
const;
511 bool hasSubsequence(
const AASequence& peptide)
const;
515 bool hasPrefix(
const AASequence& peptide)
const;
519 bool hasSuffix(
const AASequence& peptide)
const;
522 bool hasNTerminalModification()
const;
525 bool hasCTerminalModification()
const;
528 bool isModified()
const;
571 bool permissive =
true);
582 bool permissive =
true);
629 bool permissive =
true);
Iterator & operator=(const Iterator &rhs)
assignment operator
Definition: AASequence.h:294
const Iterator operator+(difference_type diff) const
forward jump operator
Definition: AASequence.h:326
virtual ~ConstIterator()
destructor
Definition: AASequence.h:161
A more convenient string class.
Definition: String.h:57
difference_type position_
Definition: AASequence.h:244
ConstIterator(const std::vector< const Residue *> *vec_ptr, difference_type position)
detailed constructor with pointer to the vector and offset position
Definition: AASequence.h:140
Size< TNeedle >::Type position(const PatternAuxData< TNeedle > &dh)
Definition: AhoCorasickAmbiguous.h:561
const Residue & const_reference
Definition: AASequence.h:258
bool operator!=(const ConstIterator &rhs) const
inequality operator
Definition: AASequence.h:217
ConstIterator & operator=(const ConstIterator &rhs)
assignment operator
Definition: AASequence.h:168
unsigned int UInt
Unsigned integer type.
Definition: Types.h:94
Iterator end()
Definition: AASequence.h:547
Residue & reference
Definition: AASequence.h:124
Representation of a modification.
Definition: ResidueModification.h:76
const Residue * const_pointer
Definition: AASequence.h:125
bool operator==(_Iterator< _Val, _Ref, _Ptr > const &, _Iterator< _Val, _Ref, _Ptr > const &)
Definition: KDTree.h:806
difference_type operator-(ConstIterator rhs) const
Definition: AASequence.h:199
const_pointer operator->() const
dereference operator
Definition: AASequence.h:188
Representation of a peptide/protein sequence.
Definition: AASequence.h:107
Iterator begin()
Definition: AASequence.h:543
bool operator!=(const Iterator &rhs) const
inequality operator
Definition: AASequence.h:349
ConstIterator end() const
Definition: AASequence.h:549
Main OpenMS namespace.
Definition: FeatureDeconvolution.h:46
std::vector< const Residue * > * vector_
Definition: AASequence.h:373
Iterator & operator++()
increment operator
Definition: AASequence.h:355
std::random_access_iterator_tag iterator_category
Definition: AASequence.h:129
Representation of a residue.
Definition: Residue.h:61
difference_type position_
Definition: AASequence.h:376
bool operator<(const MultiplexDeltaMasses &dm1, const MultiplexDeltaMasses &dm2)
bool operator==(const ConstIterator &rhs) const
equality comparator
Definition: AASequence.h:211
const_iterator ConstIterator
Const Iterator.
Definition: String.h:71
ConstIterator(const ConstIterator &rhs)
copy constructor
Definition: AASequence.h:147
void setModification(int location, int max_size, String modification, OpenMS::AASequence &aas)
helper function that sets a modification on a AASequence object
Residue value_type
Definition: AASequence.h:127
Iterator(const Iterator &rhs)
copy constructor
Definition: AASequence.h:280
difference_type operator-(Iterator rhs) const
Definition: AASequence.h:331
std::ostream & operator<<(std::ostream &os, const AccurateMassSearchResult &amsr)
TermSpecificity
Position where the modification is allowed to occur.
Definition: ResidueModification.h:95
pointer operator->()
mutable dereference operator
Definition: AASequence.h:320
DPosition< D, TCoordinateType > operator*(DPosition< D, TCoordinateType > position, typename DPosition< D, TCoordinateType >::CoordinateType scalar)
Scalar multiplication (a bit inefficient)
Definition: DPosition.h:420
with N-terminus and C-terminus
Definition: Residue.h:152
const_pointer operator->() const
dereference operator
Definition: AASequence.h:314
std::vector< const Residue * >::difference_type difference_type
Definition: AASequence.h:262
ConstIterator for AASequence.
Definition: AASequence.h:117
Iterator & operator--()
decrement operator
Definition: AASequence.h:362
Residue & reference
Definition: AASequence.h:259
const Residue * const_pointer
Definition: AASequence.h:260
bool operator!=(_Iterator< _Val, _Ref, _Ptr > const &, _Iterator< _Val, _Ref, _Ptr > const &)
Definition: KDTree.h:824
std::vector< const Residue * > peptide_
Definition: AASequence.h:585
std::vector< const Residue * >::difference_type difference_type
Definition: AASequence.h:126
std::istream & operator>>(std::istream &os, const AASequence &peptide)
ConstIterator & operator--()
decrement operator
Definition: AASequence.h:230
ResidueType
Definition: Residue.h:150
size_t Size
Size type e.g. used as variable which can hold result of size()
Definition: Types.h:127
ConstIterator(const AASequence::Iterator &rhs)
copy constructor from Iterator
Definition: AASequence.h:154
bool operator==(const Iterator &rhs) const
equality comparator
Definition: AASequence.h:343
const ResidueModification * n_term_mod_
Definition: AASequence.h:587
const ResidueModification * c_term_mod_
Definition: AASequence.h:589
Iterator class for AASequence.
Definition: AASequence.h:252
const Residue * pointer
Definition: AASequence.h:261
const ConstIterator operator-(difference_type diff) const
backward jump operator
Definition: AASequence.h:205
const Residue & const_reference
Definition: AASequence.h:123
Iterator(std::vector< const Residue *> *vec_ptr, difference_type position)
detailed constructor with pointer to the vector and offset position
Definition: AASequence.h:273
const ConstIterator operator+(difference_type diff) const
forward jump operator
Definition: AASequence.h:194
const Iterator operator-(difference_type diff) const
backward jump operator
Definition: AASequence.h:337
String toString(T i)
toString functions (single argument)
Definition: StringUtils.h:68
const Residue * pointer
Definition: AASequence.h:128
const std::vector< const Residue * > * vector_
Definition: AASequence.h:241
int Int
Signed integer type.
Definition: Types.h:102
Map class based on the STL map (containing several convenience functions)
Definition: Map.h:50
ConstIterator begin() const
Definition: AASequence.h:545
virtual ~Iterator()
destructor
Definition: AASequence.h:287
ConstIterator & operator++()
increment operator
Definition: AASequence.h:223