CycloBranch
cPeriodicTableMap Class Reference

The class representing a periodic table. More...

#include <cFragmentIons.h>

Public Member Functions

 cPeriodicTableMap ()
 The constructor.
 
double & operator[] (string &element)
 Overloaded operator []. More...
 
int count (string &element)
 Check whether an element occurs in the table. More...
 
map< string, double > & getElements ()
 Reference to the map of elements. More...
 
vector< string > & getAdductElements ()
 Vector of elements which are allowed to be adducts. More...
 

Detailed Description

The class representing a periodic table.

Member Function Documentation

◆ count()

int cPeriodicTableMap::count ( string &  element)

Check whether an element occurs in the table.

Parameters
elementreference to a string with a name of an element
Return values
int1 when element is presented in the table, 0 otherwise

◆ getAdductElements()

vector< string > & cPeriodicTableMap::getAdductElements ( )

Vector of elements which are allowed to be adducts.

Return values
vector<string>adducts

◆ getElements()

map< string, double > & cPeriodicTableMap::getElements ( )

Reference to the map of elements.

Return values
map<string,double>map of elements

◆ operator[]()

double & cPeriodicTableMap::operator[] ( string &  element)

Overloaded operator [].

Parameters
elementreference to a string with a name of an element
Return values
doublemass of an element

The documentation for this class was generated from the following files: