152 vector_(rhs.vector_),
153 position_(rhs.position_)
171 return *(*vector_)[position_];
177 return (*vector_)[position_];
228 const std::vector<const Residue*>* vector_ {};
289 return *(*vector_)[position_];
295 return (*vector_)[position_];
301 return (*vector_)[position_];
307 return Iterator(vector_, position_ + diff);
318 return Iterator(vector_, position_ - diff);
352 std::vector<const Residue*>* vector_ {};
432 String toBracketString(
bool integer_mass = true,
433 bool mass_delta = false,
434 const std::vector<
String> & fixed_modifications = std::vector<
String>()) const;
451 void setModificationByDiffMonoMass(
Size index,
double diffMonoMass);
455 void setNTerminalModification(const
String& modification);
464 void setNTerminalModificationByDiffMonoMass(
double diffMonoMass,
bool protein_term);
467 const
String& getNTerminalModificationName() const;
474 void setCTerminalModification(const
String& modification);
483 void setCTerminalModificationByDiffMonoMass(
double diffMonoMass,
bool protein_term);
486 const
String& getCTerminalModificationName() const;
541 void getAAFrequencies(std::map<
String,
Size>& frequency_table) const;
564 bool hasNTerminalModification() const;
567 bool hasCTerminalModification() const;
570 bool isModified() const;
613 bool permissive =
true);
624 bool permissive =
true);
671 bool permissive =
true);
ConstIterator for AASequence.
Definition: AASequence.h:122
const_pointer operator->() const
dereference operator
Definition: AASequence.h:175
ConstIterator(const ConstIterator &rhs)=default
copy constructor
const ConstIterator operator-(difference_type diff) const
backward jump operator
Definition: AASequence.h:192
Residue value_type
Definition: AASequence.h:130
virtual ~ConstIterator()=default
destructor
ConstIterator(const std::vector< const Residue * > *vec_ptr, difference_type position)
detailed constructor with pointer to the vector and offset position
Definition: AASequence.h:141
bool operator!=(const ConstIterator &rhs) const
inequality operator
Definition: AASequence.h:204
ConstIterator(const AASequence::Iterator &rhs)
copy constructor from Iterator
Definition: AASequence.h:151
const ConstIterator operator+(difference_type diff) const
forward jump operator
Definition: AASequence.h:181
ConstIterator()=default
default constructor
ConstIterator & operator--()
decrement operator
Definition: AASequence.h:217
std::random_access_iterator_tag iterator_category
Definition: AASequence.h:132
bool operator==(const ConstIterator &rhs) const
equality comparator
Definition: AASequence.h:198
const std::vector< const Residue * > * vector_
Definition: AASequence.h:228
ConstIterator & operator++()
increment operator
Definition: AASequence.h:210
const Residue * const_pointer
Definition: AASequence.h:128
std::vector< const Residue * >::difference_type difference_type
Definition: AASequence.h:129
difference_type position_
Definition: AASequence.h:231
const Residue * pointer
Definition: AASequence.h:131
Residue & reference
Definition: AASequence.h:127
const Residue & const_reference
Definition: AASequence.h:126
const_reference operator*() const
dereference operator
Definition: AASequence.h:169
ConstIterator & operator=(const ConstIterator &rhs)=default
assignment operator
difference_type operator-(ConstIterator rhs) const
Definition: AASequence.h:186
Iterator class for AASequence.
Definition: AASequence.h:240
const_pointer operator->() const
dereference operator
Definition: AASequence.h:293
Iterator()=default
default constructor
pointer operator->()
mutable dereference operator
Definition: AASequence.h:299
virtual ~Iterator()=default
destructor
const Iterator operator+(difference_type diff) const
forward jump operator
Definition: AASequence.h:305
Iterator & operator--()
decrement operator
Definition: AASequence.h:341
Iterator(const Iterator &rhs)=default
copy constructor
std::vector< const Residue * > * vector_
Definition: AASequence.h:352
difference_type operator-(Iterator rhs) const
Definition: AASequence.h:310
Iterator & operator=(const Iterator &rhs)
assignment operator
Definition: AASequence.h:273
Iterator(std::vector< const Residue * > *vec_ptr, difference_type position)
detailed constructor with pointer to the vector and offset position
Definition: AASequence.h:258
bool operator==(const Iterator &rhs) const
equality comparator
Definition: AASequence.h:322
const Residue * const_pointer
Definition: AASequence.h:247
std::vector< const Residue * >::difference_type difference_type
Definition: AASequence.h:249
difference_type position_
Definition: AASequence.h:355
const Residue * pointer
Definition: AASequence.h:248
Residue & reference
Definition: AASequence.h:246
const Residue & const_reference
Definition: AASequence.h:245
const_reference operator*() const
dereference operator
Definition: AASequence.h:287
bool operator!=(const Iterator &rhs) const
inequality operator
Definition: AASequence.h:328
const Iterator operator-(difference_type diff) const
backward jump operator
Definition: AASequence.h:316
Iterator & operator++()
increment operator
Definition: AASequence.h:334
Representation of a peptide/protein sequence.
Definition: AASequence.h:112
std::vector< const Residue * > peptide_
Definition: AASequence.h:628
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:591
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:632
static AASequence fromString(const String &s, bool permissive=true)
create AASequence object by parsing an OpenMS string
Iterator end()
Definition: AASequence.h:589
AASequence(AASequence &&) noexcept=default
Move constructor.
const ResidueModification * n_term_mod_
Definition: AASequence.h:630
ConstIterator begin() const
Definition: AASequence.h:587
AASequence()
Default constructor.
friend std::istream & operator>>(std::istream &is, const AASequence &peptide)
reads a peptide from an input stream
Representation of a modification on an amino acid residue.
Definition: ResidueModification.h:79
TermSpecificity
Position where the modification is allowed to occur.
Definition: ResidueModification.h:98
Representation of an amino acid 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:217
static bool has(const String &this_s, Byte byte)
Definition: StringUtilsSimple.h:142
void setModification(int location, int max_size, const String &modification, OpenMS::AASequence &aas)
helper function that sets a modification on a AASequence object
Main OpenMS namespace.
Definition: FeatureDeconvolution.h:48
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)