147 position_ = position;
152 vector_(rhs.vector_),
153 position_(rhs.position_)
159 vector_(rhs.vector_),
160 position_(rhs.position_)
188 return *(*vector_)[position_];
194 return (*vector_)[position_];
280 position_ = position;
285 vector_(rhs.vector_),
286 position_(rhs.position_)
314 return *(*vector_)[position_];
320 return (*vector_)[position_];
326 return (*vector_)[position_];
332 return Iterator(vector_, position_ + diff);
343 return Iterator(vector_, position_ - diff);
457 String toBracketString(
bool integer_mass = true,
458 bool mass_delta = false,
459 const std::vector<
String> & fixed_modifications = std::vector<
String>()) const;
476 void setModificationByDiffMonoMass(
Size index,
double diffMonoMass);
480 void setNTerminalModification(const
String& modification);
489 void setNTerminalModificationByDiffMonoMass(
double diffMonoMass,
bool protein_term);
492 const
String& getNTerminalModificationName() const;
499 void setCTerminalModification(const
String& modification);
508 void setCTerminalModificationByDiffMonoMass(
double diffMonoMass,
bool protein_term);
511 const
String& getCTerminalModificationName() const;
589 bool hasNTerminalModification() const;
592 bool hasCTerminalModification() const;
595 bool isModified() const;
638 bool permissive =
true);
649 bool permissive =
true);
696 bool permissive =
true);
ConstIterator for AASequence.
Definition: AASequence.h:122
const_pointer operator->() const
dereference operator
Definition: AASequence.h:192
const ConstIterator operator-(difference_type diff) const
backward jump operator
Definition: AASequence.h:209
Residue value_type
Definition: AASequence.h:131
ConstIterator & operator=(const ConstIterator &rhs)
assignment operator
Definition: AASequence.h:172
ConstIterator(const std::vector< const Residue * > *vec_ptr, difference_type position)
detailed constructor with pointer to the vector and offset position
Definition: AASequence.h:144
bool operator!=(const ConstIterator &rhs) const
inequality operator
Definition: AASequence.h:221
ConstIterator(const AASequence::Iterator &rhs)
copy constructor from Iterator
Definition: AASequence.h:158
const ConstIterator operator+(difference_type diff) const
forward jump operator
Definition: AASequence.h:198
ConstIterator & operator--()
decrement operator
Definition: AASequence.h:234
std::random_access_iterator_tag iterator_category
Definition: AASequence.h:133
bool operator==(const ConstIterator &rhs) const
equality comparator
Definition: AASequence.h:215
const std::vector< const Residue * > * vector_
Definition: AASequence.h:245
ConstIterator & operator++()
increment operator
Definition: AASequence.h:227
const Residue * const_pointer
Definition: AASequence.h:129
std::vector< const Residue * >::difference_type difference_type
Definition: AASequence.h:130
difference_type position_
Definition: AASequence.h:248
const Residue * pointer
Definition: AASequence.h:132
ConstIterator(const ConstIterator &rhs)
copy constructor
Definition: AASequence.h:151
Residue & reference
Definition: AASequence.h:128
const Residue & const_reference
Definition: AASequence.h:127
const_reference operator*() const
dereference operator
Definition: AASequence.h:186
virtual ~ConstIterator()
destructor
Definition: AASequence.h:165
ConstIterator()
default constructor
Definition: AASequence.h:139
difference_type operator-(ConstIterator rhs) const
Definition: AASequence.h:203
Iterator class for AASequence.
Definition: AASequence.h:257
const_pointer operator->() const
dereference operator
Definition: AASequence.h:318
pointer operator->()
mutable dereference operator
Definition: AASequence.h:324
Iterator()
default constructor
Definition: AASequence.h:272
const Iterator operator+(difference_type diff) const
forward jump operator
Definition: AASequence.h:330
Iterator & operator--()
decrement operator
Definition: AASequence.h:366
virtual ~Iterator()
destructor
Definition: AASequence.h:291
std::vector< const Residue * > * vector_
Definition: AASequence.h:377
difference_type operator-(Iterator rhs) const
Definition: AASequence.h:335
Iterator & operator=(const Iterator &rhs)
assignment operator
Definition: AASequence.h:298
Iterator(std::vector< const Residue * > *vec_ptr, difference_type position)
detailed constructor with pointer to the vector and offset position
Definition: AASequence.h:277
bool operator==(const Iterator &rhs) const
equality comparator
Definition: AASequence.h:347
const Residue * const_pointer
Definition: AASequence.h:264
std::vector< const Residue * >::difference_type difference_type
Definition: AASequence.h:266
difference_type position_
Definition: AASequence.h:380
const Residue * pointer
Definition: AASequence.h:265
Residue & reference
Definition: AASequence.h:263
const Residue & const_reference
Definition: AASequence.h:262
Iterator(const Iterator &rhs)
copy constructor
Definition: AASequence.h:284
const_reference operator*() const
dereference operator
Definition: AASequence.h:312
bool operator!=(const Iterator &rhs) const
inequality operator
Definition: AASequence.h:353
const Iterator operator-(difference_type diff) const
backward jump operator
Definition: AASequence.h:341
Iterator & operator++()
increment operator
Definition: AASequence.h:359
Representation of a peptide/protein sequence.
Definition: AASequence.h:112
std::vector< const Residue * > peptide_
Definition: AASequence.h:653
AASequence(const AASequence &)=default
Copy constructor.
static String::ConstIterator parseModSquareBrackets_(const String::ConstIterator str_it, const String &str, AASequence &aas, const ResidueModification::TermSpecificity &specificity)
Parses modifications in square brackets (a mass)
ConstIterator end() const
Definition: AASequence.h:616
static AASequence fromString(const char *s, bool permissive=true)
create AASequence object by parsing a C string (character array)
static String::ConstIterator parseModRoundBrackets_(const String::ConstIterator str_it, const String &str, AASequence &aas, const ResidueModification::TermSpecificity &specificity)
Parses modifications in round brackets (an identifier)
static void parseString_(const String &peptide, AASequence &aas, bool permissive=true)
friend std::ostream & operator<<(std::ostream &os, const AASequence &peptide)
writes a peptide to an output stream
const ResidueModification * c_term_mod_
Definition: AASequence.h:657
static AASequence fromString(const String &s, bool permissive=true)
create AASequence object by parsing an OpenMS string
Iterator end()
Definition: AASequence.h:614
AASequence(AASequence &&) noexcept=default
Move constructor.
const ResidueModification * n_term_mod_
Definition: AASequence.h:655
ConstIterator begin() const
Definition: AASequence.h:612
AASequence()
Default constructor.
friend std::istream & operator>>(std::istream &is, const AASequence &peptide)
reads a peptide from an input stream
Map class based on the STL map (containing several convenience functions)
Definition: Map.h:52
Representation of a modification.
Definition: ResidueModification.h:77
TermSpecificity
Position where the modification is allowed to occur.
Definition: ResidueModification.h:96
Representation of a residue.
Definition: Residue.h:63
A more convenient string class.
Definition: String.h:60
const_iterator ConstIterator
Const Iterator.
Definition: String.h:72
int Int
Signed integer type.
Definition: Types.h:102
unsigned int UInt
Unsigned integer type.
Definition: Types.h:94
size_t Size
Size type e.g. used as variable which can hold result of size()
Definition: Types.h:127
static bool hasPrefix(const String &this_s, const String &string)
Definition: StringUtilsSimple.h:111
static bool hasSuffix(const String &this_s, const String &string)
Definition: StringUtilsSimple.h:124
static String number(double d, UInt n)
Definition: StringUtils.h:196
static bool has(const String &this_s, Byte byte)
Definition: StringUtilsSimple.h:142
void setModification(int location, int max_size, String modification, OpenMS::AASequence &aas)
helper function that sets a modification on a AASequence object
Main OpenMS namespace.
Definition: FeatureDeconvolution.h:47
std::ostream & operator<<(std::ostream &os, const AccurateMassSearchResult &amsr)
std::istream & operator>>(std::istream &os, const AASequence &peptide)
const std::string & toString(const DriftTimeUnit value)