41 #include <OpenMS/OpenMSConfig.h> 132 operator std::string()
const;
162 operator long double()
const;
180 operator float()
const;
189 operator short int()
const;
198 operator unsigned short int()
const;
208 operator int()
const;
217 operator unsigned int()
const;
226 operator long int()
const;
235 operator unsigned long int()
const;
244 operator long long()
const;
253 operator unsigned long long()
const;
261 const char* toChar()
const;
292 DataValue& operator=(
const std::string&);
312 DataValue& operator=(
const unsigned short int);
320 DataValue& operator=(
const unsigned long);
324 DataValue& operator=(
const unsigned long long);
337 QString toQString()
const;
365 return value_type_ == EMPTY_VALUE;
379 const String& getUnit()
const;
382 void setUnit(
const String& unit);
StringList * str_list_
Definition: DataValue.h:412
A more convenient string class.
Definition: String.h:57
bool hasUnit() const
Check if the value has a unit.
Definition: DataValue.h:373
DataType value_type_
Type of the currently stored value.
Definition: DataValue.h:404
std::vector< double > DoubleList
Vector of double precision real types.
Definition: ListUtils.h:65
double list
Definition: DataValue.h:72
static const DataValue EMPTY
Empty data value for comparisons.
Definition: DataValue.h:62
double dou_
Definition: DataValue.h:410
integer value
Definition: DataValue.h:68
std::vector< Int > IntList
Vector of signed integers.
Definition: ListUtils.h:58
bool operator==(_Iterator< _Val, _Ref, _Ptr > const &, _Iterator< _Val, _Ref, _Ptr > const &)
Definition: KDTree.h:806
string list
Definition: DataValue.h:70
ptrdiff_t SignedSize
Signed Size type e.g. used as pointer difference.
Definition: Types.h:134
DataType valueType() const
returns the type of value stored
Definition: DataValue.h:350
Main OpenMS namespace.
Definition: FeatureDeconvolution.h:46
IntList * int_list_
Definition: DataValue.h:413
bool operator<(const MultiplexDeltaMasses &dm1, const MultiplexDeltaMasses &dm2)
DataType
Supported types for DataValue.
Definition: DataValue.h:65
Class to hold strings, numeric values, lists of strings and lists of numeric values.
Definition: DataValue.h:56
std::ostream & operator<<(std::ostream &os, const AccurateMassSearchResult &amsr)
double value
Definition: DataValue.h:69
string value
Definition: DataValue.h:67
DoubleList * dou_list_
Definition: DataValue.h:414
std::vector< String > StringList
Vector of String.
Definition: ListUtils.h:73
SignedSize ssize_
Definition: DataValue.h:409
bool operator!=(_Iterator< _Val, _Ref, _Ptr > const &, _Iterator< _Val, _Ref, _Ptr > const &)
Definition: KDTree.h:824
integer list
Definition: DataValue.h:71
bool isEmpty() const
Test if the value is empty.
Definition: DataValue.h:363
String toString(T i)
toString functions (single argument)
Definition: StringUtils.h:68
String * str_
Definition: DataValue.h:411
String unit_
The unit of the data value (if it has one), otherwise empty string.
Definition: DataValue.h:419