40 #include <unordered_map> 57 typedef std::vector<std::unique_ptr<Ribonucleotide>>::const_iterator
ConstIterator;
74 return ribonucleotides_.begin();
80 return ribonucleotides_.end();
88 ConstRibonucleotidePtr getRibonucleotide(
const std::string& code);
95 ConstRibonucleotidePtr getRibonucleotidePrefix(
const std::string& seq);
102 std::pair<ConstRibonucleotidePtr, ConstRibonucleotidePtr> getRibonucleotideAlternatives(
const std::string& code);
110 void readFromFile_(
const std::string& path);
113 void readFromJSON_(
const std::string& path);
116 const std::unique_ptr<Ribonucleotide> parseRow_(
const std::string& row,
Size line_count);
125 std::map<std::string, std::pair<ConstRibonucleotidePtr, ConstRibonucleotidePtr>>
ambiguity_map_;
std::vector< std::unique_ptr< Ribonucleotide > >::const_iterator ConstIterator
const iterator type definition
Definition: RibonucleotideDB.h:57
ConstIterator end() const
Const iterator to end of database.
Definition: RibonucleotideDB.h:78
Main OpenMS namespace.
Definition: FeatureDeconvolution.h:47
Size max_code_length_
Definition: RibonucleotideDB.h:127
Representation of a ribonucleotide (modified or unmodified)
Definition: Ribonucleotide.h:51
Database of ribonucleotides (modified and unmodified)
Definition: RibonucleotideDB.h:51
std::vector< std::unique_ptr< Ribonucleotide > > ribonucleotides_
list of known (modified) nucleotides
Definition: RibonucleotideDB.h:119
std::map< std::string, std::pair< ConstRibonucleotidePtr, ConstRibonucleotidePtr > > ambiguity_map_
mapping of ambiguity codes to the alternatives they represent
Definition: RibonucleotideDB.h:125
std::unordered_map< std::string, Size > code_map_
mapping of codes (short names) to indexes into ribonucleotides_
Definition: RibonucleotideDB.h:122
size_t Size
Size type e.g. used as variable which can hold result of size()
Definition: Types.h:127
ConstIterator begin() const
Const iterator to beginning of database.
Definition: RibonucleotideDB.h:72