9#include <boost/regex.hpp>
15 return typeid(*this) ==
typeid(other) && this->
canConvertTo(other);
54 boost::regex pattern(
"in.*A.*\\^-1");
87 boost::regex pattern(
"(A\\^-1)");
bool canConvertTo(const MDUnit &other) const override
UnitLabel getUnitLabel() const override
InverseAngstromsUnit * clone() const override
UnitLabel getUnitLabel() const override
LabelUnit * clone() const override
LabelUnit(UnitLabel unitLabel)
bool isQUnit() const override
bool canConvertTo(const MDUnit &other) const override
MDUnit : Unit type for multidimensional data types.
virtual UnitLabel getUnitLabel() const =0
virtual bool canConvertTo(const MDUnit &other) const =0
bool operator==(const MDUnit &other) const
bool isQUnit() const override
UnitLabel getUnitLabel() const override
ReciprocalLatticeUnit * clone() const override
bool canConvertTo(const MDUnit &other) const override
bool isSpecialRLUUnitLabel() const
A base-class for the a class that is able to return unit labels in different representations.
const AsciiString & ascii() const
Return an ascii label for unit.
static const UnitLabel InverseAngstrom
InverseAngstrom.
static const UnitLabel RLU
Reciprocal lattice units.