35 #ifndef OPENMS_CONCEPT_TYPES_H 36 #define OPENMS_CONCEPT_TYPES_H 38 #include <OpenMS/config.h> 46 #ifdef OPENMS_HAS_STDINT_H 57 typedef OPENMS_INT32_TYPE
Int32;
71 typedef OPENMS_INT64_TYPE
Int64;
121 typedef OPENMS_UINT64_TYPE
UID;
208 template <
typename FloatingPo
intType>
209 inline Int
writtenDigits(
const FloatingPointType& = FloatingPointType());
215 return std::numeric_limits<float>::digits10;
222 return std::numeric_limits<double>::digits10;
229 return std::numeric_limits<int>::digits10;
236 return std::numeric_limits<unsigned int>::digits10;
243 return std::numeric_limits<int>::digits10;
250 return std::numeric_limits<unsigned int>::digits10;
258 return std::numeric_limits<double>::digits10;
281 #ifndef OPENMS_WINDOWSPLATFORM 282 return std::numeric_limits<long double>::digits10;
285 return std::numeric_limits<double>::digits10;
294 template <
typename FloatingPo
intType>
313 #endif // OPENMS_CONCEPT_TYPES_H
Int writtenDigits< DataValue >(const DataValue &)
DataValue will be printed like double.
Definition: Types.h:256
unsigned int UInt
Unsigned integer type.
Definition: Types.h:95
Int writtenDigits(const FloatingPointType &=FloatingPointType())
Number of digits commonly used for writing a floating point type (a.k.a. precision). Specializations are defined for float, double, long double.
Definition: Types.h:295
ptrdiff_t SignedSize
Signed Size type e.g. used as pointer difference.
Definition: Types.h:135
const char * OpenMS_locale
Main OpenMS namespace.
Definition: FeatureDeconvolution.h:47
Class to hold strings, numeric values, lists of strings and lists of numeric values.
Definition: DataValue.h:57
Int writtenDigits< float >(const float &)
Number of digits commonly used for writing a float (a.k.a. precision).
Definition: Types.h:213
Int writtenDigits< int >(const int &)
We do not want to bother people who unintentionally provide an int argument to this.
Definition: Types.h:227
Int writtenDigits< long int >(const long int &)
We do not want to bother people who unintentionally provide a long int argument to this...
Definition: Types.h:241
OPENMS_INT32_TYPE Int32
Signed integer type (32bit)
Definition: Types.h:57
OPENMS_UINT32_TYPE UInt32
Unsigned integer type (32bit)
Definition: Types.h:64
ASCII
Definition: Types.h:137
OPENMS_UINT64_TYPE UInt64
Unsigned integer type (64bit)
Definition: Types.h:78
Int writtenDigits< unsigned long int >(const unsigned long int &)
We do not want to bother people who unintentionally provide an unsigned long int argument to this...
Definition: Types.h:248
size_t Size
Size type e.g. used as variable which can hold result of size()
Definition: Types.h:128
Int writtenDigits< unsigned int >(const unsigned int &)
We do not want to bother people who unintentionally provide an unsigned int argument to this...
Definition: Types.h:234
OPENMS_INT64_TYPE Int64
Signed integer type (64bit)
Definition: Types.h:71
OPENMS_BYTE_TYPE Byte
Byte type.
Definition: Types.h:112
Int writtenDigits< double >(const double &)
Number of digits commonly used for writing a double (a.k.a. precision).
Definition: Types.h:220
int Int
Signed integer type.
Definition: Types.h:103
Int writtenDigits< long double >(const long double &)
Number of digits commonly used for writing a long double (a.k.a. precision). ...
Definition: Types.h:279
time_t Time
Time type.
Definition: Types.h:87
OPENMS_UINT64_TYPE UID
A unique object ID (as unsigned 64bit type).
Definition: Types.h:121