OpenMS
2.7.0
|
Encapsulated weight queries to simplify mono vs average weight computation. More...
#include <OpenMS/CHEMISTRY/WeightWrapper.h>
Public Types | |
enum | WEIGHTMODE { AVERAGE = 0 , MONO , SIZE_OF_WEIGHTMODE } |
Public Member Functions | |
WeightWrapper () | |
constructor More... | |
WeightWrapper (const WEIGHTMODE weight_mode) | |
constructor More... | |
virtual | ~WeightWrapper () |
destructor More... | |
WeightWrapper (const WeightWrapper &source) | |
copy constructor More... | |
void | setWeightMode (const WEIGHTMODE mode) |
Sets the weight mode (MONO or AVERAGE) More... | |
WEIGHTMODE | getWeightMode () const |
Gets the weight mode (MONO or AVERAGE) More... | |
double | getWeight (const AASequence &aa) const |
returns the weight of either mono or average value More... | |
double | getWeight (const EmpiricalFormula &ef) const |
returns the weight of either mono or average value More... | |
double | getWeight (const Residue &r, Residue::ResidueType res_type=Residue::Full) const |
returns the weight of either mono or average value More... | |
Private Attributes | |
WEIGHTMODE | weight_mode_ |
one of WeightWrapper::WEIGHTMODE's values More... | |
Encapsulated weight queries to simplify mono vs average weight computation.
Supports EmpiricalFormula's and AASequence's getMonoWeight() and getAverageWeight()
enum WEIGHTMODE |
WeightWrapper | ( | ) |
constructor
|
explicit |
constructor
|
virtual |
destructor
WeightWrapper | ( | const WeightWrapper & | source | ) |
copy constructor
double getWeight | ( | const AASequence & | aa | ) | const |
returns the weight of either mono or average value
Which weight is returned depends on the current weight-mode.
double getWeight | ( | const EmpiricalFormula & | ef | ) | const |
returns the weight of either mono or average value
Which weight is returned depends on the current weight-mode.
double getWeight | ( | const Residue & | r, |
Residue::ResidueType | res_type = Residue::Full |
||
) | const |
returns the weight of either mono or average value
Which weight is returned depends on the current weight-mode.
WEIGHTMODE getWeightMode | ( | ) | const |
Gets the weight mode (MONO or AVERAGE)
Gets the mode in which getWeight() calls are answered.
void setWeightMode | ( | const WEIGHTMODE | mode | ) |
Sets the weight mode (MONO or AVERAGE)
Sets the mode in which getWeight() calls are answered.
|
private |
one of WeightWrapper::WEIGHTMODE's values