35 #ifndef OPENMS_DATASTRUCTURES_DATAVALUE_H 36 #define OPENMS_DATASTRUCTURES_DATAVALUE_H 42 #include <OpenMS/OpenMSConfig.h> 133 operator std::string()
const;
163 operator long double()
const;
181 operator float()
const;
190 operator short int()
const;
199 operator unsigned short int()
const;
209 operator int()
const;
218 operator unsigned int()
const;
227 operator long int()
const;
236 operator unsigned long int()
const;
245 operator long long()
const;
254 operator unsigned long long()
const;
262 const char* toChar()
const;
293 DataValue& operator=(
const std::string&);
313 DataValue& operator=(
const unsigned short int);
321 DataValue& operator=(
const unsigned long);
325 DataValue& operator=(
const unsigned long long);
338 QString toQString()
const;
366 return value_type_ == EMPTY_VALUE;
380 const String& getUnit()
const;
383 void setUnit(
const String& unit);
427 #endif // OPENMS_DATASTRUCTURES_DATAVALUE_H StringList * str_list_
Definition: DataValue.h:413
A more convenient string class.
Definition: String.h:57
bool hasUnit() const
Check if the value has a unit.
Definition: DataValue.h:374
DataType value_type_
Type of the currently stored value.
Definition: DataValue.h:405
std::vector< double > DoubleList
Vector of double precision real types.
Definition: ListUtils.h:66
double list
Definition: DataValue.h:73
static const DataValue EMPTY
Empty data value for comparisons.
Definition: DataValue.h:63
double dou_
Definition: DataValue.h:411
integer value
Definition: DataValue.h:69
std::vector< Int > IntList
Vector of signed integers.
Definition: ListUtils.h:59
bool operator==(_Iterator< _Val, _Ref, _Ptr > const &, _Iterator< _Val, _Ref, _Ptr > const &)
Definition: KDTree.h:806
string list
Definition: DataValue.h:71
ptrdiff_t SignedSize
Signed Size type e.g. used as pointer difference.
Definition: Types.h:135
DataType valueType() const
returns the type of value stored
Definition: DataValue.h:351
Main OpenMS namespace.
Definition: FeatureDeconvolution.h:47
IntList * int_list_
Definition: DataValue.h:414
bool operator<(const MultiplexDeltaMasses &dm1, const MultiplexDeltaMasses &dm2)
DataType
Supported types for DataValue.
Definition: DataValue.h:66
Class to hold strings, numeric values, lists of strings and lists of numeric values.
Definition: DataValue.h:57
std::ostream & operator<<(std::ostream &os, const AccurateMassSearchResult &amsr)
double value
Definition: DataValue.h:70
string value
Definition: DataValue.h:68
DoubleList * dou_list_
Definition: DataValue.h:415
std::vector< String > StringList
Vector of String.
Definition: ListUtils.h:74
SignedSize ssize_
Definition: DataValue.h:410
bool operator!=(_Iterator< _Val, _Ref, _Ptr > const &, _Iterator< _Val, _Ref, _Ptr > const &)
Definition: KDTree.h:824
integer list
Definition: DataValue.h:72
bool isEmpty() const
Test if the value is empty.
Definition: DataValue.h:364
String toString(T i)
toString functions (single argument)
Definition: StringUtils.h:69
String * str_
Definition: DataValue.h:412
String unit_
The unit of the data value (if it has one), otherwise empty string.
Definition: DataValue.h:420