41 #include <OpenMS/OpenMSConfig.h>
146 operator std::
string() const;
176 operator
long double() const;
185 operator
double() const;
194 operator
float() const;
203 operator
short int() const;
212 operator
unsigned short int() const;
222 operator
int() const;
231 operator
unsigned int() const;
240 operator
long int() const;
249 operator
unsigned long int() const;
258 operator
long long() const;
267 operator
unsigned long long() const;
284 const
char* toChar() const;
365 QString toQString() const;
381 return value_type_ == EMPTY_VALUE;
Class to hold strings, numeric values, lists of strings and lists of numeric values.
Definition: DataValue.h:59
static const DataValue EMPTY
Empty data value for comparisons.
Definition: DataValue.h:64
friend std::ostream & operator<<(std::ostream &, const DataValue &)
output stream operator
void setUnitType(const UnitType &u)
Definition: DataValue.h:394
UnitType
Supported types for DataValue.
Definition: DataValue.h:80
@ MS_ONTOLOGY
ms.ontology MS
Definition: DataValue.h:82
@ UNIT_ONTOLOGY
unit.ontology UO
Definition: DataValue.h:81
int32_t unit_
The unit of the data value (if it has one) using UO identifier, otherwise -1.
Definition: DataValue.h:437
DataValue(const DataValue &)
Copy constructor.
friend bool operator>(const DataValue &, const DataValue &)
Greater than comparator (for lists we use the size)
DataType
Supported types for DataValue.
Definition: DataValue.h:68
@ DOUBLE_VALUE
double value
Definition: DataValue.h:71
@ INT_LIST
integer list
Definition: DataValue.h:73
@ STRING_VALUE
string value
Definition: DataValue.h:69
@ STRING_LIST
string list
Definition: DataValue.h:72
@ INT_VALUE
integer value
Definition: DataValue.h:70
@ DOUBLE_LIST
double list
Definition: DataValue.h:74
friend bool operator<(const DataValue &, const DataValue &)
Smaller than comparator (for lists we use the size)
void setUnit(const int32_t &unit)
Sets the unit to the given String.
const int32_t & getUnit() const
Return the unit associated to this DataValue.
friend bool operator==(const DataValue &, const DataValue &)
Equality comparator.
UnitType unit_type_
Type of the currently stored unit.
Definition: DataValue.h:434
UnitType getUnitType() const
returns the type of value stored
Definition: DataValue.h:389
void clear_() noexcept
Clears the current state of the DataValue and release every used memory.
bool hasUnit() const
Check if the value has a unit.
Definition: DataValue.h:400
DataValue(DataValue &&) noexcept
Move constructor.
bool isEmpty() const
Test if the value is empty.
Definition: DataValue.h:379
DataType value_type_
Type of the currently stored value.
Definition: DataValue.h:431
friend bool operator!=(const DataValue &, const DataValue &)
Equality comparator.
Class to hold strings, numeric values, vectors of strings and vectors of numeric values using the stl...
Definition: ParamValue.h:53
A more convenient string class.
Definition: String.h:61
ptrdiff_t SignedSize
Signed Size type e.g. used as pointer difference.
Definition: Types.h:134
std::vector< Int > IntList
Vector of signed integers.
Definition: ListUtils.h:55
std::vector< String > StringList
Vector of String.
Definition: ListUtils.h:70
std::vector< double > DoubleList
Vector of double precision real types.
Definition: ListUtils.h:62
Main OpenMS namespace.
Definition: FeatureDeconvolution.h:47
const std::string & toString(const DriftTimeUnit value)