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... | |
| DoubleReal | getWeight (const AASequence &aa) const |
| returns the weight of either mono or average value More... | |
| DoubleReal | getWeight (const EmpiricalFormula &ef) const |
| returns the weight of either mono or average value More... | |
| DoubleReal | 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
| WeightWrapper | ( | const WEIGHTMODE | weight_mode | ) |
constructor
|
virtual |
destructor
| WeightWrapper | ( | const WeightWrapper & | source | ) |
copy constructor
| DoubleReal getWeight | ( | const AASequence & | aa | ) | const |
returns the weight of either mono or average value
Which weight is returned depends on the current weight-mode.
| DoubleReal getWeight | ( | const EmpiricalFormula & | ef | ) | const |
returns the weight of either mono or average value
Which weight is returned depends on the current weight-mode.
| DoubleReal 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
| OpenMS / TOPP release 1.11.1 | Documentation generated on Thu Nov 14 2013 11:19:28 using doxygen 1.8.5 |