96 elements_(alphabet.elements_)
106 return elements_.size();
118 return elements_[index];
224 elements_.push_back(element);
260 virtual void load(
const std::string & fname);
An abstract templatized parser to load the data that is used to initialize Alphabet objects.
Definition: IMSAlphabetParser.h:38
Private class-functor to sort out elements in mass ascending order.
Definition: IMSAlphabet.h:292
bool operator()(const element_type &el1, const element_type &el2) const
Definition: IMSAlphabet.h:294
Holds an indexed list of bio-chemical elements.
Definition: IMSAlphabet.h:56
masses_type getMasses(size_type isotope_index=0) const
element_type::mass_type mass_type
Definition: IMSAlphabet.h:60
container::size_type size_type
Definition: IMSAlphabet.h:63
virtual void load(const std::string &fname, IMSAlphabetParser<> &parser)
virtual void sortByValues()
container elements_
Definition: IMSAlphabet.h:286
IMSAlphabet()
Definition: IMSAlphabet.h:77
mass_type getMass(size_type index) const
virtual void load(const std::string &fname)
void push_back(const element_type &element)
Definition: IMSAlphabet.h:222
bool hasName(const name_type &name) const
IMSAlphabet(const IMSAlphabet &alphabet)
Definition: IMSAlphabet.h:95
size_type size() const
Definition: IMSAlphabet.h:104
const name_type & getName(size_type index) const
std::vector< mass_type > mass_container
Definition: IMSAlphabet.h:69
std::vector< element_type > container
Definition: IMSAlphabet.h:62
container::iterator iterator
Definition: IMSAlphabet.h:64
virtual void sortByNames()
masses_type getAverageMasses() const
void setElement(const name_type &name, mass_type mass, bool forced=false)
const element_type & getElement(const name_type &name) const
std::vector< name_type > name_container
Definition: IMSAlphabet.h:66
name_container::iterator name_iterator
Definition: IMSAlphabet.h:67
void push_back(const name_type &name, mass_type value)
Definition: IMSAlphabet.h:212
IMSElement element_type
Definition: IMSAlphabet.h:59
const element_type & getElement(size_type index) const
Definition: IMSAlphabet.h:116
std::vector< mass_type > masses_type
Definition: IMSAlphabet.h:72
mass_type getMass(const name_type &name) const
mass_container::const_iterator const_mass_iterator
Definition: IMSAlphabet.h:71
void clear()
Definition: IMSAlphabet.h:230
element_type::name_type name_type
Definition: IMSAlphabet.h:61
virtual ~IMSAlphabet()
Definition: IMSAlphabet.h:280
container::const_iterator const_iterator
Definition: IMSAlphabet.h:65
mass_container::iterator mass_iterator
Definition: IMSAlphabet.h:70
name_container::const_iterator const_name_iterator
Definition: IMSAlphabet.h:68
IMSAlphabet(const container &elements)
Definition: IMSAlphabet.h:85
bool erase(const name_type &name)
Represents a chemical atom with name and isotope distribution.
Definition: IMSElement.h:33
isotopes_type::mass_type mass_type
Type of isotope mass.
Definition: IMSElement.h:42
std::string name_type
Type of element's name.
Definition: IMSElement.h:36
mass_type getMass(size_type index=0) const
Definition: IMSElement.h:146
std::ostream & operator<<(std::ostream &os, const IMSAlphabet &alphabet)
Main OpenMS namespace.
Definition: openswathalgo/include/OpenMS/OPENSWATHALGO/DATAACCESS/ISpectrumAccess.h:19