OpenMS
2.7.0
|
Class represents a decomposition of a mass into amino acids. More...
#include <OpenMS/CHEMISTRY/MASSDECOMPOSITION/MassDecomposition.h>
Public Member Functions | |
Constructors and destructors | |
MassDecomposition () | |
default constructor More... | |
MassDecomposition (const MassDecomposition &deco) | |
copy constructor More... | |
MassDecomposition (const String &deco) | |
constructor with String as parameter More... | |
Operators and accessors | |
MassDecomposition & | operator= (const MassDecomposition &rhs) |
assignment operator More... | |
MassDecomposition & | operator+= (const MassDecomposition &d) |
adds the mass decomposition d to this object More... | |
String | toString () const |
returns the decomposition as a string More... | |
String | toExpandedString () const |
returns the decomposition as a string; instead of frequencies the amino acids are repeated More... | |
MassDecomposition | operator+ (const MassDecomposition &rhs) const |
adds this decomposition and the decomposition given and returns a new composition More... | |
Size | getNumberOfMaxAA () const |
returns the max frequency of this composition More... | |
Predicates | |
std::map< char, Size > | decomp_ |
Size | number_of_max_aa_ |
bool | operator< (const MassDecomposition &rhs) const |
less than predicate More... | |
bool | operator== (const String &deco) const |
equality operator More... | |
bool | containsTag (const String &tag) const |
returns true if tag is contained in the mass decomposition More... | |
bool | compatible (const MassDecomposition &deco) const |
returns true if the mass decomposition if contained in this instance More... | |
Class represents a decomposition of a mass into amino acids.
This class represents a mass decomposition into amino acids. A decomposition are amino acids given with frequencies which add up to a specific mass.
default constructor
MassDecomposition | ( | const MassDecomposition & | deco | ) |
copy constructor
|
explicit |
constructor with String as parameter
bool compatible | ( | const MassDecomposition & | deco | ) | const |
returns true if the mass decomposition if contained in this instance
bool containsTag | ( | const String & | tag | ) | const |
returns true if tag is contained in the mass decomposition
Size getNumberOfMaxAA | ( | ) | const |
returns the max frequency of this composition
MassDecomposition operator+ | ( | const MassDecomposition & | rhs | ) | const |
adds this decomposition and the decomposition given and returns a new composition
MassDecomposition& operator+= | ( | const MassDecomposition & | d | ) |
adds the mass decomposition d to this object
bool operator< | ( | const MassDecomposition & | rhs | ) | const |
less than predicate
MassDecomposition& operator= | ( | const MassDecomposition & | rhs | ) |
assignment operator
bool operator== | ( | const String & | deco | ) | const |
equality operator
String toExpandedString | ( | ) | const |
returns the decomposition as a string; instead of frequencies the amino acids are repeated
String toString | ( | ) | const |
returns the decomposition as a string
|
protected |
|
protected |