OpenMS
2.4.0
|
An interface to handle decomposing of integer values/masses over a set of integer weights (alphabet). More...
#include <OpenMS/CHEMISTRY/MASSDECOMPOSITION/IMS/MassDecomposer.h>
Public Types | |
typedef ValueType | value_type |
typedef DecompositionValueType | decomposition_value_type |
typedef std::vector< decomposition_value_type > | decomposition_type |
typedef std::vector< decomposition_type > | decompositions_type |
Public Member Functions | |
virtual | ~MassDecomposer () |
virtual bool | exist (value_type mass)=0 |
virtual decomposition_type | getDecomposition (value_type mass)=0 |
virtual decompositions_type | getAllDecompositions (value_type mass)=0 |
virtual decomposition_value_type | getNumberOfDecompositions (value_type mass)=0 |
An interface to handle decomposing of integer values/masses over a set of integer weights (alphabet).
An interface that addresses the following "mass decomposition" problems:
Those problems are solved in integer arithmetic, i.e. only exact solutions are found with no error allowed.
ValueType | Type of values to be decomposed. |
DecompositionValueType | Type of decomposition elements. |
typedef std::vector<decomposition_value_type> decomposition_type |
Type of decomposition container.
typedef DecompositionValueType decomposition_value_type |
Type of decomposition value.
typedef std::vector<decomposition_type> decompositions_type |
Type of container for many decompositions.
typedef ValueType value_type |
Type of value to be decomposed.
|
inlinevirtual |
A virtual destructor.
|
pure virtual |
Returns true if the decomposition for the given mass
exists, otherwise - false.
mass | Mass to be checked on decomposing. |
mass
exist, otherwise - false. Implemented in IntegerMassDecomposer< ValueType, DecompositionValueType >.
|
pure virtual |
Returns all possible decompositions for the given mass
.
mass | Mass to be decomposed. |
mass
, if there are any exist, otherwise - an empty container. Implemented in IntegerMassDecomposer< ValueType, DecompositionValueType >.
|
pure virtual |
Returns one possible decomposition of the given mass
.
mass | Mass to be decomposed. |
mass
, if one exists, otherwise - an empty container. Implemented in IntegerMassDecomposer< ValueType, DecompositionValueType >.
|
pure virtual |
Returns the number of possible decompositions for the given mass
.
mass | Mass to be decomposed. |
mass
. Implemented in IntegerMassDecomposer< ValueType, DecompositionValueType >.