131 vector_(rhs.vector_),
132 position_(rhs.position_)
138 vector_(rhs.vector_),
139 position_(rhs.position_)
165 return *(*vector_)[position_];
171 return (*vector_)[position_];
194 return (std::tie(vector_, position_) ==
223 const std::vector<const Ribonucleotide*>*
vector_;
254 Iterator(std::vector<const Ribonucleotide*>* vec_ptr,
263 vector_(rhs.vector_),
264 position_(rhs.position_)
290 return *(*vector_)[position_];
296 return (*vector_)[position_];
302 return (*vector_)[position_];
308 return Iterator(vector_, position_ + diff);
319 return Iterator(vector_, position_ - diff);
325 return (std::tie(vector_,position_) ==
481 friend OPENMS_DLLAPI std::ostream&
operator<<(std::ostream& os,
512 std::vector<const Ribonucleotide*>
seq_;
ConstIterator of NASequence class.
Definition: NASequence.h:105
ConstIterator(const std::vector< const Ribonucleotide * > *vec_ptr, difference_type position)
detailed constructor with pointer to the vector and offset position
Definition: NASequence.h:122
const_pointer operator->() const
dereference operator
Definition: NASequence.h:169
const value_type * const_pointer
Definition: NASequence.h:110
const ConstIterator operator-(difference_type diff) const
backward jump operator
Definition: NASequence.h:186
ConstIterator & operator=(const ConstIterator &rhs)
assignment operator
Definition: NASequence.h:149
bool operator!=(const ConstIterator &rhs) const
inequality operator
Definition: NASequence.h:199
const ConstIterator operator+(difference_type diff) const
forward jump operator
Definition: NASequence.h:175
ConstIterator()=default
default constructor
ConstIterator & operator--()
decrement operator
Definition: NASequence.h:212
std::random_access_iterator_tag iterator_category
Definition: NASequence.h:113
bool operator==(const ConstIterator &rhs) const
equality comparator
Definition: NASequence.h:192
Ribonucleotide value_type
Definition: NASequence.h:107
ConstIterator & operator++()
increment operator
Definition: NASequence.h:205
ConstIterator(const NASequence::Iterator &rhs)
copy constructor from Iterator
Definition: NASequence.h:137
difference_type position_
Definition: NASequence.h:226
std::vector< const value_type * >::difference_type difference_type
Definition: NASequence.h:111
ConstIterator(const ConstIterator &rhs)
copy constructor
Definition: NASequence.h:130
value_type & reference
Definition: NASequence.h:109
const std::vector< const Ribonucleotide * > * vector_
Definition: NASequence.h:223
const value_type * pointer
Definition: NASequence.h:112
const_reference operator*() const
dereference operator
Definition: NASequence.h:163
virtual ~ConstIterator()
destructor
Definition: NASequence.h:144
difference_type operator-(ConstIterator rhs) const
Definition: NASequence.h:180
const value_type & const_reference
Definition: NASequence.h:108
Iterator of NASequence class.
Definition: NASequence.h:236
const_pointer operator->() const
dereference operator
Definition: NASequence.h:294
const value_type * const_pointer
Definition: NASequence.h:244
pointer operator->()
mutable dereference operator
Definition: NASequence.h:300
const Iterator operator+(difference_type diff) const
forward jump operator
Definition: NASequence.h:306
Iterator & operator--()
decrement operator
Definition: NASequence.h:343
virtual ~Iterator()
destructor
Definition: NASequence.h:269
Iterator(std::vector< const Ribonucleotide * > *vec_ptr, difference_type position)
detailed constructor with pointer to the vector and offset position
Definition: NASequence.h:254
difference_type operator-(Iterator rhs) const
Definition: NASequence.h:311
Iterator & operator=(const Iterator &rhs)
assignment operator
Definition: NASequence.h:274
Ribonucleotide value_type
Definition: NASequence.h:241
bool operator==(const Iterator &rhs) const
equality comparator
Definition: NASequence.h:323
difference_type position_
Definition: NASequence.h:356
std::vector< const value_type * >::difference_type difference_type
Definition: NASequence.h:246
value_type & reference
Definition: NASequence.h:243
Iterator(const Iterator &rhs)
copy constructor
Definition: NASequence.h:262
const value_type * pointer
Definition: NASequence.h:245
const_reference operator*() const
dereference operator
Definition: NASequence.h:288
bool operator!=(const Iterator &rhs) const
inequality operator
Definition: NASequence.h:330
const Iterator operator-(difference_type diff) const
backward jump operator
Definition: NASequence.h:317
Iterator & operator++()
increment operator
Definition: NASequence.h:336
std::vector< const Ribonucleotide * > * vector_
Definition: NASequence.h:353
const value_type & const_reference
Definition: NASequence.h:242
Representation of a nucleic acid sequence.
Definition: NASequence.h:63
ConstIterator cend() const
Definition: NASequence.h:450
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:425
bool operator==(const NASequence &rhs) const
destructor
bool hasFivePrimeMod() const
5' and 3' modifications
const std::vector< const Ribonucleotide * > & getSequence() const
Definition: NASequence.h:383
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:440
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
NASFragmentType
an enum of all possible fragment ion types
Definition: NASequence.h:71
@ AminusB
A ion with base loss, added for nucleic acid support.
Definition: NASequence.h:90
@ YIon
MS:1001220 peptide bond up to the C-terminus.
Definition: NASequence.h:80
@ XIon
MS:1001228 amide/C-alpha bond up to the C-terminus.
Definition: NASequence.h:79
@ ZIon
MS:1001230 C-alpha/carbonyl carbon bond.
Definition: NASequence.h:81
@ WIon
W ion, added for nucleic acid support.
Definition: NASequence.h:89
@ BIonMinusH20
MS:1001222 b ion without water.
Definition: NASequence.h:83
@ BIonMinusNH3
MS:1001232 b ion without ammonia.
Definition: NASequence.h:85
@ AIon
MS:1001229 N-terminus up to the C-alpha/carbonyl carbon bond.
Definition: NASequence.h:76
@ Precursor
MS:1001523 Precursor ion.
Definition: NASequence.h:82
@ YIonMinusH20
MS:1001223 y ion without water.
Definition: NASequence.h:84
@ NonIdentified
MS:1001240 Non-identified ion.
Definition: NASequence.h:87
@ BIon
MS:1001224 N-terminus up to the peptide bond.
Definition: NASequence.h:77
@ ThreePrime
only 3' terminus
Definition: NASequence.h:75
@ CIon
MS:1001231 N-terminus up to the amide/C-alpha bond.
Definition: NASequence.h:78
@ YIonMinusNH3
MS:1001233 y ion without ammonia.
Definition: NASequence.h:86
@ Internal
internal, without any termini
Definition: NASequence.h:73
@ Unannotated
no stored annotation
Definition: NASequence.h:88
@ FivePrime
only 5' terminus
Definition: NASequence.h:74
@ DIon
D ion, added for nucleic acid support.
Definition: NASequence.h:91
static NASequence fromString(const String &s)
create NASequence object by parsing an OpenMS string
const Ribonucleotide * get(size_t index)
Definition: NASequence.h:396
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:445
double getAverageWeight(NASFragmentType type=Full, Int charge=0) const
Iterator end()
Definition: NASequence.h:435
std::vector< const Ribonucleotide * > & getSequence()
Definition: NASequence.h:388
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:402
const RibonucleotideChainEnd * getFivePrimeMod() const
std::vector< const Ribonucleotide * > seq_
Definition: NASequence.h:512
void setFivePrimeMod(const RibonucleotideChainEnd *r)
ConstIterator begin() const
Definition: NASequence.h:430
const Ribonucleotide *const & operator[](size_t index) const
Definition: NASequence.h:407
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:61
const_iterator ConstIterator
Const Iterator.
Definition: String.h:73
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:47
Size< TNeedle >::Type position(const PatternAuxData< TNeedle > &dh)
Definition: AhoCorasickAmbiguous.h:563