11 #include <OpenMS/config.h>
19 #ifdef OPENMS_HAS_STDINT_H
30 typedef OPENMS_INT32_TYPE
Int32;
44 typedef OPENMS_INT64_TYPE
Int64;
85 typedef OPENMS_BYTE_TYPE
Byte;
94 typedef OPENMS_UINT64_TYPE
UID;
181 template <
typename FloatingPo
intType>
182 inline constexpr
Int writtenDigits(
const FloatingPointType& = FloatingPointType());
188 return std::numeric_limits<float>::digits10;
195 return std::numeric_limits<double>::digits10;
202 return std::numeric_limits<int>::digits10;
209 return std::numeric_limits<unsigned int>::digits10;
216 return std::numeric_limits<int>::digits10;
223 return std::numeric_limits<unsigned int>::digits10;
231 return std::numeric_limits<double>::digits10;
254 #ifndef OPENMS_WINDOWSPLATFORM
255 return std::numeric_limits<long double>::digits10;
258 return std::numeric_limits<double>::digits10;
267 template <
typename FloatingPo
intType>
Class to hold strings, numeric values, lists of strings and lists of numeric values.
Definition: DataValue.h:33
OPENMS_BYTE_TYPE Byte
Byte type.
Definition: Types.h:85
OPENMS_UINT32_TYPE UInt32
Unsigned integer type (32bit)
Definition: Types.h:37
OPENMS_UINT64_TYPE UInt64
Unsigned integer type (64bit)
Definition: Types.h:51
int Int
Signed integer type.
Definition: Types.h:76
OPENMS_INT32_TYPE Int32
Signed integer type (32bit)
Definition: Types.h:30
OPENMS_INT64_TYPE Int64
Signed integer type (64bit)
Definition: Types.h:44
OPENMS_UINT64_TYPE UID
A unique object ID (as unsigned 64bit type).
Definition: Types.h:94
unsigned int UInt
Unsigned integer type.
Definition: Types.h:68
ptrdiff_t SignedSize
Signed Size type e.g. used as pointer difference.
Definition: Types.h:108
time_t Time
Time type.
Definition: Types.h:60
size_t Size
Size type e.g. used as variable which can hold result of size()
Definition: Types.h:101
const char * OpenMS_locale
Main OpenMS namespace.
Definition: FeatureDeconvolution.h:22
ASCII
Definition: Types.h:111
@ ASCII__EXCLAMATION_MARK
Definition: Types.h:124
@ ASCII__HORIZONTAL_TAB
Definition: Types.h:115
@ ASCII__BACKSPACE
Definition: Types.h:112
@ ASCII__RETURN
Definition: Types.h:117
@ ASCII__NEWLINE
Definition: Types.h:116
@ ASCII__SEMICOLON
Definition: Types.h:127
@ ASCII__TAB
Definition: Types.h:119
@ ASCII__COMMA
Definition: Types.h:123
@ ASCII__COLON
Definition: Types.h:122
@ ASCII__BELL
Definition: Types.h:113
@ ASCII__SPACE
Definition: Types.h:118
@ ASCII__POINT
Definition: Types.h:125
@ ASCII__QUESTION_MARK
Definition: Types.h:126
@ ASCII__CARRIAGE_RETURN
Definition: Types.h:114
@ ASCII__VERTICAL_TAB
Definition: Types.h:120
constexpr 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:214
constexpr Int writtenDigits< float >(const float &)
Number of digits commonly used for writing a float (a.k.a. precision).
Definition: Types.h:186
constexpr Int writtenDigits< long double >(const long double &)
Number of digits commonly used for writing a long double (a.k.a. precision). ...
Definition: Types.h:252
constexpr 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:221
constexpr Int writtenDigits< DataValue >(const DataValue &)
DataValue will be printed like double.
Definition: Types.h:229
constexpr Int writtenDigits< double >(const double &)
Number of digits commonly used for writing a double (a.k.a. precision).
Definition: Types.h:193
constexpr 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:207
constexpr Int writtenDigits< int >(const int &)
We do not want to bother people who unintentionally provide an int argument to this.
Definition: Types.h:200
constexpr Int writtenDigits(const FloatingPointType &=FloatingPointType())
Number of digits commonly used for writing a floating point type (a.k.a. precision)....
Definition: Types.h:268