121 position_ = position;
158 return *(*vector_)[position_];
164 return (*vector_)[position_];
187 return (std::tie(vector_, position_) == std::tie(rhs.
vector_, rhs.
position_));
214 const std::vector<const Ribonucleotide*>*
vector_;
247 position_ = position;
279 return *(*vector_)[position_];
285 return (*vector_)[position_];
291 return (*vector_)[position_];
297 return Iterator(vector_, position_ + diff);
308 return Iterator(vector_, position_ - diff);
314 return (std::tie(vector_, position_) == std::tie(rhs.
vector_, rhs.
position_));
541 std::vector<const Ribonucleotide*>
seq_;
ConstIterator of NASequence class.
Definition: NASequence.h:101
ConstIterator(const std::vector< const Ribonucleotide * > *vec_ptr, difference_type position)
detailed constructor with pointer to the vector and offset position
Definition: NASequence.h:118
const_pointer operator->() const
dereference operator
Definition: NASequence.h:162
const value_type * const_pointer
Definition: NASequence.h:106
const ConstIterator operator-(difference_type diff) const
backward jump operator
Definition: NASequence.h:179
ConstIterator & operator=(const ConstIterator &rhs)
assignment operator
Definition: NASequence.h:142
bool operator!=(const ConstIterator &rhs) const
inequality operator
Definition: NASequence.h:191
const ConstIterator operator+(difference_type diff) const
forward jump operator
Definition: NASequence.h:168
ConstIterator()=default
default constructor
ConstIterator & operator--()
decrement operator
Definition: NASequence.h:204
std::random_access_iterator_tag iterator_category
Definition: NASequence.h:109
bool operator==(const ConstIterator &rhs) const
equality comparator
Definition: NASequence.h:185
Ribonucleotide value_type
Definition: NASequence.h:103
ConstIterator & operator++()
increment operator
Definition: NASequence.h:197
ConstIterator(const NASequence::Iterator &rhs)
copy constructor from Iterator
Definition: NASequence.h:130
difference_type position_
Definition: NASequence.h:217
std::vector< const value_type * >::difference_type difference_type
Definition: NASequence.h:107
ConstIterator(const ConstIterator &rhs)
copy constructor
Definition: NASequence.h:125
value_type & reference
Definition: NASequence.h:105
const std::vector< const Ribonucleotide * > * vector_
Definition: NASequence.h:214
const value_type * pointer
Definition: NASequence.h:108
const_reference operator*() const
dereference operator
Definition: NASequence.h:156
virtual ~ConstIterator()
destructor
Definition: NASequence.h:135
difference_type operator-(ConstIterator rhs) const
Definition: NASequence.h:173
const value_type & const_reference
Definition: NASequence.h:104
Iterator of NASequence class.
Definition: NASequence.h:227
const_pointer operator->() const
dereference operator
Definition: NASequence.h:283
const value_type * const_pointer
Definition: NASequence.h:234
pointer operator->()
mutable dereference operator
Definition: NASequence.h:289
const Iterator operator+(difference_type diff) const
forward jump operator
Definition: NASequence.h:295
Iterator & operator--()
decrement operator
Definition: NASequence.h:331
virtual ~Iterator()
destructor
Definition: NASequence.h:256
Iterator(std::vector< const Ribonucleotide * > *vec_ptr, difference_type position)
detailed constructor with pointer to the vector and offset position
Definition: NASequence.h:244
difference_type operator-(Iterator rhs) const
Definition: NASequence.h:300
Iterator & operator=(const Iterator &rhs)
assignment operator
Definition: NASequence.h:263
Ribonucleotide value_type
Definition: NASequence.h:231
bool operator==(const Iterator &rhs) const
equality comparator
Definition: NASequence.h:312
difference_type position_
Definition: NASequence.h:343
std::vector< const value_type * >::difference_type difference_type
Definition: NASequence.h:236
value_type & reference
Definition: NASequence.h:233
Iterator(const Iterator &rhs)
copy constructor
Definition: NASequence.h:251
const value_type * pointer
Definition: NASequence.h:235
const_reference operator*() const
dereference operator
Definition: NASequence.h:277
bool operator!=(const Iterator &rhs) const
inequality operator
Definition: NASequence.h:318
const Iterator operator-(difference_type diff) const
backward jump operator
Definition: NASequence.h:306
Iterator & operator++()
increment operator
Definition: NASequence.h:324
std::vector< const Ribonucleotide * > * vector_
Definition: NASequence.h:340
const value_type & const_reference
Definition: NASequence.h:232
Representation of a nucleic acid sequence.
Definition: NASequence.h:60
ConstIterator cend() const
Definition: NASequence.h:435
virtual ~NASequence()=default
bool operator<(const NASequence &rhs) const
less operator
bool hasThreePrimeMod() const
NASequence getSuffix(Size length) const
Return sequence suffix of the given length (not start index!)
void setSequence(const std::vector< const Ribonucleotide * > &seq)
getter / setter for sequence
std::string toString() const
Iterator begin()
iterators
Definition: NASequence.h:410
bool operator==(const NASequence &rhs) const
destructor
bool hasFivePrimeMod() const
5' and 3' modifications
const std::vector< const Ribonucleotide * > & getSequence() const
Definition: NASequence.h:368
double getMonoWeight(NASFragmentType type=Full, Int charge=0) const
utility functions
friend std::ostream & operator<<(std::ostream &os, const NASequence &seq)
void setThreePrimeMod(const RibonucleotideChainEnd *r)
NASequence getPrefix(Size length) const
Return sequence prefix of the given length (not end index!)
static void parseString_(const String &s, NASequence &nas)
ConstIterator end() const
Definition: NASequence.h:425
const RibonucleotideChainEnd * getThreePrimeMod() const
bool operator!=(const NASequence &rhs) const
not quality
NASequence(std::vector< const Ribonucleotide * > s, const RibonucleotideChainEnd *five_prime, const RibonucleotideChainEnd *three_prime)
full constructor
void set(size_t index, const Ribonucleotide *r)
getter / setter for ribonucleotide elements (easily wrapped using pyOpenMS)
static NASequence fromString(const char *s)
create NASequence object by parsing a C string (character array)
EmpiricalFormula getFormula(NASFragmentType type=Full, Int charge=0) const
Get the formula for a NASequence.
NASFragmentType
an enum of all possible fragment ion types
Definition: NASequence.h:67
@ AminusB
A ion with base loss, added for nucleic acid support.
Definition: NASequence.h:86
@ YIon
MS:1001220 peptide bond up to the C-terminus.
Definition: NASequence.h:76
@ XIon
MS:1001228 amide/C-alpha bond up to the C-terminus.
Definition: NASequence.h:75
@ ZIon
MS:1001230 C-alpha/carbonyl carbon bond.
Definition: NASequence.h:77
@ WIon
W ion, added for nucleic acid support.
Definition: NASequence.h:85
@ BIonMinusH20
MS:1001222 b ion without water.
Definition: NASequence.h:79
@ BIonMinusNH3
MS:1001232 b ion without ammonia.
Definition: NASequence.h:81
@ AIon
MS:1001229 N-terminus up to the C-alpha/carbonyl carbon bond.
Definition: NASequence.h:72
@ Precursor
MS:1001523 Precursor ion.
Definition: NASequence.h:78
@ YIonMinusH20
MS:1001223 y ion without water.
Definition: NASequence.h:80
@ NonIdentified
MS:1001240 Non-identified ion.
Definition: NASequence.h:83
@ BIon
MS:1001224 N-terminus up to the peptide bond.
Definition: NASequence.h:73
@ ThreePrime
only 3' terminus
Definition: NASequence.h:71
@ CIon
MS:1001231 N-terminus up to the amide/C-alpha bond.
Definition: NASequence.h:74
@ YIonMinusNH3
MS:1001233 y ion without ammonia.
Definition: NASequence.h:82
@ Internal
internal, without any termini
Definition: NASequence.h:69
@ Unannotated
no stored annotation
Definition: NASequence.h:84
@ FivePrime
only 5' terminus
Definition: NASequence.h:70
@ DIon
D ion, added for nucleic acid support.
Definition: NASequence.h:87
static NASequence fromString(const String &s)
create NASequence object by parsing an OpenMS string
const Ribonucleotide * get(size_t index)
Definition: NASequence.h:381
static String::ConstIterator parseMod_(const String::ConstIterator str_it, const String &str, NASequence &nas)
Parses modifications in square brackets.
NASequence & operator=(NASequence &&) &=default
Move assignment operator.
ConstIterator cbegin() const
Definition: NASequence.h:430
double getAverageWeight(NASFragmentType type=Full, Int charge=0) const
Get the Average Weight of a NASequence. NB returns the uncharged mass + or - proton masses to match t...
Iterator end()
Definition: NASequence.h:420
std::vector< const Ribonucleotide * > & getSequence()
Definition: NASequence.h:373
NASequence getSubsequence(Size start=0, Size length=Size(-1)) const
Return subsequence with given starting position and length.
const Ribonucleotide *& operator[](size_t index)
getter / setter for sequence elements (C++ container style)
Definition: NASequence.h:387
const RibonucleotideChainEnd * getFivePrimeMod() const
std::vector< const Ribonucleotide * > seq_
Definition: NASequence.h:541
void setFivePrimeMod(const RibonucleotideChainEnd *r)
ConstIterator begin() const
Definition: NASequence.h:415
const Ribonucleotide *const & operator[](size_t index) const
Definition: NASequence.h:392
NASequence & operator=(const NASequence &) &=default
Copy assignment operator.
NASequence(NASequence &&)=default
Move constructor.
NASequence(const NASequence &)=default
default constructor
Representation of a ribonucleotide (modified or unmodified)
Definition: Ribonucleotide.h:52
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
size_t Size
Size type e.g. used as variable which can hold result of size()
Definition: Types.h:127
bool operator==(const IDBoostGraph::ProteinGroup &lhs, const IDBoostGraph::ProteinGroup &rhs)
Main OpenMS namespace.
Definition: FeatureDeconvolution.h:48