35 #ifndef OPENMS_CHEMISTRY_EMPIRICALFORMULA_H 36 #define OPENMS_CHEMISTRY_EMPIRICALFORMULA_H 50 class IsotopeDistribution;
85 typedef std::map<const Element*, SignedSize>
MapType_;
122 double getMonoWeight()
const;
126 double getAverageWeight()
const;
141 bool estimateFromWeightAndComp(
double average_weight,
double C,
double H,
double N,
double O,
double S,
double P);
157 bool estimateFromWeightAndCompAndS(
double average_weight,
UInt S,
double C,
double H,
double N,
double O,
double P);
222 bool isEmpty()
const;
226 bool isCharged()
const;
229 bool hasElement(
const Element* element)
const;
248 inline ConstIterator
begin()
const {
return formula_.begin(); }
250 inline ConstIterator
end()
const {
return formula_.end(); }
256 void removeZeroedElements_();
262 SignedSize parseFormula_(std::map<const Element*, SignedSize>& ef,
const String& formula)
const;
A more convenient string class.
Definition: String.h:57
unsigned int UInt
Unsigned integer type.
Definition: Types.h:95
Isotope distribution class.
Definition: IsotopeDistribution.h:62
bool operator==(_Iterator< _Val, _Ref, _Ptr > const &, _Iterator< _Val, _Ref, _Ptr > const &)
Definition: KDTree.h:806
ptrdiff_t SignedSize
Signed Size type e.g. used as pointer difference.
Definition: Types.h:135
Main OpenMS namespace.
Definition: FeatureDeconvolution.h:47
Representation of an element.
Definition: Element.h:54
std::ostream & operator<<(std::ostream &os, const AccurateMassSearchResult &amsr)
DPosition< D, TCoordinateType > operator*(DPosition< D, TCoordinateType > position, typename DPosition< D, TCoordinateType >::CoordinateType scalar)
Scalar multiplication (a bit inefficient)
Definition: DPosition.h:421
bool operator!=(_Iterator< _Val, _Ref, _Ptr > const &, _Iterator< _Val, _Ref, _Ptr > const &)
Definition: KDTree.h:824
String toString(T i)
toString functions (single argument)
Definition: StringUtils.h:69