41 #include <OpenMS/OpenMSConfig.h> 80 static const std::string NamesOfDataType[SIZE_OF_DATATYPE];
155 operator
std::
string() const;
185 operator
long double() const;
194 operator
double() const;
203 operator
float() const;
212 operator
short int() const;
221 operator
unsigned short int() const;
231 operator
int() const;
240 operator
unsigned int() const;
249 operator
long int() const;
258 operator
unsigned long int() const;
267 operator
long long() const;
276 operator
unsigned long long() const;
293 const
char* toChar() const;
347 DataValue& operator=(const
unsigned short int);
355 DataValue& operator=(const
unsigned long);
359 DataValue& operator=(const
unsigned long long);
390 return value_type_ == EMPTY_VALUE;
415 const int32_t & getUnit()
const;
418 void setUnit(
const int32_t & unit);
462 void clear_() noexcept;
UnitType
Supported types for DataValue.
Definition: DataValue.h:83
const std::string & toString(const DriftTimeUnit value)
A more convenient string class.
Definition: String.h:58
bool hasUnit() const
Check if the value has a unit.
Definition: DataValue.h:409
DataType value_type_
Type of the currently stored value.
Definition: DataValue.h:440
int32_t unit_
The unit of the data value (if it has one) using UO identifier, otherwise -1.
Definition: DataValue.h:446
std::vector< double > DoubleList
Vector of double precision real types.
Definition: ListUtils.h:62
UnitType unit_type_
Type of the currently stored unit.
Definition: DataValue.h:443
static const DataValue EMPTY
Empty data value for comparisons.
Definition: DataValue.h:64
unit.ontology UO
Definition: DataValue.h:85
DataType
Supported types for DataValue.
Definition: DataValue.h:67
string value
Definition: DataValue.h:69
std::vector< Int > IntList
Vector of signed integers.
Definition: ListUtils.h:55
void setUnitType(const UnitType &u)
Definition: DataValue.h:403
ptrdiff_t SignedSize
Signed Size type e.g. used as pointer difference.
Definition: Types.h:134
bool operator==(const IDBoostGraph::ProteinGroup &lhs, const IDBoostGraph::ProteinGroup &rhs)
Main OpenMS namespace.
Definition: FeatureDeconvolution.h:47
bool operator<(const MultiplexDeltaMasses &dm1, const MultiplexDeltaMasses &dm2)
Class to hold strings, numeric values, lists of strings and lists of numeric values.
Definition: DataValue.h:58
string list
Definition: DataValue.h:72
integer list
Definition: DataValue.h:73
std::ostream & operator<<(std::ostream &os, const AccurateMassSearchResult &amsr)
static QString toQString(const String &this_s)
Definition: StringUtils.h:234
UnitType getUnitType() const
returns the type of value stored
Definition: DataValue.h:398
double list
Definition: DataValue.h:74
std::vector< String > StringList
Vector of String.
Definition: ListUtils.h:70
bool operator!=(_Iterator< _Val, _Ref, _Ptr > const &, _Iterator< _Val, _Ref, _Ptr > const &)
Definition: KDTree.h:824
integer value
Definition: DataValue.h:70
bool isEmpty() const
Test if the value is empty.
Definition: DataValue.h:388
empty
Definition: DataValue.h:75
Class to hold strings, numeric values, vectors of strings and vectors of numeric values using the stl...
Definition: ParamValue.h:54
double value
Definition: DataValue.h:71
ms.ontology MS
Definition: DataValue.h:86