NCBI C++ ToolKit
|
Classes | |
class | ncbi_numeric_limits< T > |
class | ncbi_numeric_limits< char > |
class | ncbi_numeric_limits< signed char > |
class | ncbi_numeric_limits< unsigned char > |
class | ncbi_numeric_limits< wchar_t > |
class | ncbi_numeric_limits< signed short > |
class | ncbi_numeric_limits< unsigned short > |
class | ncbi_numeric_limits< signed int > |
class | ncbi_numeric_limits< unsigned int > |
class | ncbi_numeric_limits< signed long > |
class | ncbi_numeric_limits< unsigned long > |
class | ncbi_numeric_limits< float > |
class | ncbi_numeric_limits< double > |
struct | SAutoMinMaxLimits< T, is_signed > |
struct | SAutoMinMaxLimits< T, false > |
struct | SAutoMax |
struct | SAutoMin |
Macros | |
#define | NCBI_WIN32_THREADS |
#define | NCBI_THREADS |
#define | NCBI_HAS_CPP_ATTRIBUTE(x) 0 |
#define | NCBI_HAS_C_ATTRIBUTE(x) 0 |
#define | NCBI_HAS_SCOPED_C_ATTRIBUTE(x) NCBI_HAS_C_ATTRIBUTE(x) |
#define | NCBI_HAS_SCOPED_ATTRIBUTE(x) NCBI_HAS_SCOPED_C_ATTRIBUTE(x) |
#define | NCBI_HAS_ATTRIBUTE(x) NCBI_HAS_C_ATTRIBUTE(x) |
#define | NCBI_HAS_STD_ATTRIBUTE(x) (NCBI_HAS_C_ATTRIBUTE(x) >= 201904L) |
#define | __has_attribute(x) 0 |
#define | NCBI_RESTRICT |
#define | NCBI_LEGACY_DEPRECATED_0 |
#define | NCBI_LEGACY_DEPRECATED_1(msg) |
#define | NCBI_STD_DEPRECATED_0 NCBI_LEGACY_DEPRECATED_0 |
#define | NCBI_STD_DEPRECATED_1(message) NCBI_LEGACY_DEPRECATED_1(message) |
#define | NCBI_STD_DEPRECATED(message) NCBI_STD_DEPRECATED_1(message) |
#define | NCBI_DEPRECATED NCBI_LEGACY_DEPRECATED_0 |
#define | NCBI_WARN_UNUSED_RESULT |
#define | NCBI_FALLTHROUGH |
#define | NCBI_PACKED |
#define | NCBI_UNUSED |
#define | HAVE_THREAD_LOCAL 1 |
#define | kMin_Char CHAR_MIN |
#define | kMax_Char CHAR_MAX |
#define | kMin_SChar SCHAR_MIN |
#define | kMax_SChar SCHAR_MAX |
#define | kMax_UChar UCHAR_MAX |
#define | kMin_Short SHRT_MIN |
#define | kMax_Short SHRT_MAX |
#define | kMax_UShort USHRT_MAX |
#define | kMin_Int INT_MIN |
#define | kMax_Int INT_MAX |
#define | kMax_UInt UINT_MAX |
#define | kMin_Float FLT_MIN; |
#define | kMax_Float FLT_MAX; |
#define | kMin_Double DBL_MIN; |
#define | kMax_Double DBL_MAX; |
#define | kMin_I1 SCHAR_MIN |
#define | kMax_I1 SCHAR_MAX |
#define | kMax_UI1 UCHAR_MAX |
#define | kMin_I2 SHRT_MIN |
#define | kMax_I2 SHRT_MAX |
#define | kMax_UI2 USHRT_MAX |
#define | kMin_I4 INT_MIN |
#define | kMax_I4 INT_MAX |
#define | kMax_UI4 UINT_MAX |
#define | kMin_I8 NCBI_MIN_I8 |
#define | kMax_I8 NCBI_MAX_I8 |
#define | kMax_UI8 NCBI_MAX_UI8 |
#define | numeric_limits ncbi_numeric_limits |
Pre-declaration of the "numeric_limits<>" template Forcibly overrides (using preprocessor) the original "numeric_limits<>"! More... | |
#define | NCBI_NUMERIC_LIMITS(type, alias) |
Auxiliary macro to implement (a limited edition of) the "numeric_limits<>" template. More... | |
#define | NCBI_NUMERIC_LIMITS_UNSIGNED(type, alias) |
#define | NCBI_FORBID_AUTOMINMAX_OPERATION(op, T1, T2) |
#define | NCBI_FORBID_AUTOMINMAX_OPERATIONS(op) |
#define | NCBI_GET_NUMERIC_LIMITS(type) |
Macro to declare specialized get_limits. More... | |
#define | __STDC_CONSTANT_MACROS |
#define | __STDC_FORMAT_MACROS |
#define | NCBI_BIG_TYPE Int8 |
#define | SIZEOF_NCBI_BIG 8 |
#define | NCBI_CONST_INT8(v) INT64_C(v) |
#define | NCBI_CONST_UINT8(v) UINT64_C(v) |
#define | NCBI_INT8_FORMAT_SPEC PRId64 |
#define | NCBI_UINT8_FORMAT_SPEC PRIu64 |
#define | NCBI_CONST_LONGDOUBLE(v) v |
Typedefs | |
typedef ncbi_numeric_limits< T > | SAutoMinMaxLimits< T, is_signed >::TStdLim |
typedef ncbi_numeric_limits< T > | SAutoMinMaxLimits< T, false >::TStdLim |
typedef char | Char |
Alias for char. More... | |
typedef signed char | Schar |
Alias for signed char. More... | |
typedef unsigned char | Uchar |
Alias for unsigned char. More... | |
typedef int8_t | Int1 |
1-byte (8-bit) signed integer More... | |
typedef uint8_t | Uint1 |
1-byte (8-bit) unsigned integer More... | |
typedef int16_t | Int2 |
2-byte (16-bit) signed integer More... | |
typedef uint16_t | Uint2 |
2-byte (16-bit) unsigned integer More... | |
typedef int32_t | Int4 |
4-byte (32-bit) signed integer More... | |
typedef uint32_t | Uint4 |
4-byte (32-bit) unsigned integer More... | |
typedef int64_t | Int8 |
8-byte (64-bit) signed integer More... | |
typedef uint64_t | Uint8 |
8-byte (64-bit) unsigned integer More... | |
typedef Int8 | Ncbi_BigScalar |
Define large scalar type. More... | |
typedef int | intptr_t |
typedef unsigned int | uintptr_t |
Variables | |
static const SAutoMax | kMax_Auto = {} |
Generic stand-in for type-specific kMax_* constants from ncbi_limits.h, useful in any context with exactly one preferred type. More... | |
static const SAutoMin | kMin_Auto = {} |
Generic stand-in for type-specific kMin_* constants from ncbi_limits.h, useful in any context with exactly one preferred type. More... | |
FORWARDING_NCBICONF_H
#define __has_attribute | ( | x | ) | 0 |
Definition at line 155 of file ncbiconf_impl.h.
#define __STDC_CONSTANT_MACROS |
Definition at line 58 of file ncbitype.h.
#define __STDC_FORMAT_MACROS |
__STDC_CONSTANT_MACROS
Definition at line 61 of file ncbitype.h.
#define HAVE_THREAD_LOCAL 1 |
Definition at line 336 of file ncbiconf_impl.h.
#define kMax_Char CHAR_MAX |
Definition at line 174 of file ncbi_limits.h.
#define kMax_Double DBL_MAX; |
Definition at line 208 of file ncbi_limits.h.
#define kMax_Float FLT_MAX; |
Definition at line 205 of file ncbi_limits.h.
#define kMax_I1 SCHAR_MAX |
Definition at line 212 of file ncbi_limits.h.
#define kMax_I2 SHRT_MAX |
Definition at line 215 of file ncbi_limits.h.
#define kMax_I4 INT_MAX |
Definition at line 218 of file ncbi_limits.h.
#define kMax_I8 NCBI_MAX_I8 |
Definition at line 221 of file ncbi_limits.h.
#define kMax_Int INT_MAX |
Definition at line 184 of file ncbi_limits.h.
#define kMax_SChar SCHAR_MAX |
Definition at line 176 of file ncbi_limits.h.
#define kMax_Short SHRT_MAX |
Definition at line 180 of file ncbi_limits.h.
#define kMax_UChar UCHAR_MAX |
Definition at line 177 of file ncbi_limits.h.
#define kMax_UI1 UCHAR_MAX |
Definition at line 213 of file ncbi_limits.h.
#define kMax_UI2 USHRT_MAX |
Definition at line 216 of file ncbi_limits.h.
#define kMax_UI4 UINT_MAX |
Definition at line 219 of file ncbi_limits.h.
#define kMax_UI8 NCBI_MAX_UI8 |
Definition at line 222 of file ncbi_limits.h.
#define kMax_UInt UINT_MAX |
Definition at line 185 of file ncbi_limits.h.
#define kMax_UShort USHRT_MAX |
Definition at line 181 of file ncbi_limits.h.
#define kMin_Char CHAR_MIN |
Definition at line 173 of file ncbi_limits.h.
#define kMin_Double DBL_MIN; |
Definition at line 207 of file ncbi_limits.h.
#define kMin_Float FLT_MIN; |
Definition at line 204 of file ncbi_limits.h.
#define kMin_I1 SCHAR_MIN |
Definition at line 211 of file ncbi_limits.h.
#define kMin_I2 SHRT_MIN |
Definition at line 214 of file ncbi_limits.h.
#define kMin_I4 INT_MIN |
Definition at line 217 of file ncbi_limits.h.
#define kMin_I8 NCBI_MIN_I8 |
Definition at line 220 of file ncbi_limits.h.
#define kMin_Int INT_MIN |
Definition at line 183 of file ncbi_limits.h.
#define kMin_SChar SCHAR_MIN |
Definition at line 175 of file ncbi_limits.h.
#define kMin_Short SHRT_MIN |
Definition at line 179 of file ncbi_limits.h.
#define NCBI_BIG_TYPE Int8 |
Definition at line 153 of file ncbitype.h.
#define NCBI_CONST_INT8 | ( | v | ) | INT64_C(v) |
Definition at line 212 of file ncbitype.h.
#define NCBI_CONST_LONGDOUBLE | ( | v | ) | v |
Definition at line 245 of file ncbitype.h.
#define NCBI_CONST_UINT8 | ( | v | ) | UINT64_C(v) |
Definition at line 213 of file ncbitype.h.
#define NCBI_DEPRECATED NCBI_LEGACY_DEPRECATED_0 |
Definition at line 200 of file ncbiconf_impl.h.
#define NCBI_FALLTHROUGH |
Definition at line 256 of file ncbiconf_impl.h.
#define NCBI_FORBID_AUTOMINMAX_OPERATION | ( | op, | |
T1, | |||
T2 | |||
) |
Definition at line 215 of file ncbi_limits.hpp.
#define NCBI_FORBID_AUTOMINMAX_OPERATIONS | ( | op | ) |
Definition at line 222 of file ncbi_limits.hpp.
#define NCBI_GET_NUMERIC_LIMITS | ( | type | ) |
Macro to declare specialized get_limits.
Definition at line 253 of file ncbi_limits.hpp.
#define NCBI_HAS_ATTRIBUTE | ( | x | ) | NCBI_HAS_C_ATTRIBUTE(x) |
Definition at line 128 of file ncbiconf_impl.h.
#define NCBI_HAS_C_ATTRIBUTE | ( | x | ) | 0 |
Definition at line 109 of file ncbiconf_impl.h.
#define NCBI_HAS_CPP_ATTRIBUTE | ( | x | ) | 0 |
Definition at line 102 of file ncbiconf_impl.h.
#define NCBI_HAS_SCOPED_ATTRIBUTE | ( | x | ) | NCBI_HAS_SCOPED_C_ATTRIBUTE(x) |
Definition at line 121 of file ncbiconf_impl.h.
#define NCBI_HAS_SCOPED_C_ATTRIBUTE | ( | x | ) | NCBI_HAS_C_ATTRIBUTE(x) |
Definition at line 115 of file ncbiconf_impl.h.
#define NCBI_HAS_STD_ATTRIBUTE | ( | x | ) | (NCBI_HAS_C_ATTRIBUTE(x) >= 201904L) |
Definition at line 149 of file ncbiconf_impl.h.
#define NCBI_INT8_FORMAT_SPEC PRId64 |
Definition at line 214 of file ncbitype.h.
#define NCBI_LEGACY_DEPRECATED_0 |
Definition at line 181 of file ncbiconf_impl.h.
#define NCBI_LEGACY_DEPRECATED_1 | ( | msg | ) |
Definition at line 182 of file ncbiconf_impl.h.
#define NCBI_NUMERIC_LIMITS | ( | type, | |
alias | |||
) |
Auxiliary macro to implement (a limited edition of) the "numeric_limits<>" template.
Definition at line 101 of file ncbi_limits.hpp.
#define NCBI_NUMERIC_LIMITS_UNSIGNED | ( | type, | |
alias | |||
) |
Definition at line 110 of file ncbi_limits.hpp.
#define NCBI_PACKED |
Definition at line 269 of file ncbiconf_impl.h.
#define NCBI_RESTRICT |
Definition at line 165 of file ncbiconf_impl.h.
#define NCBI_STD_DEPRECATED | ( | message | ) | NCBI_STD_DEPRECATED_1(message) |
Definition at line 193 of file ncbiconf_impl.h.
#define NCBI_STD_DEPRECATED_0 NCBI_LEGACY_DEPRECATED_0 |
Definition at line 189 of file ncbiconf_impl.h.
#define NCBI_STD_DEPRECATED_1 | ( | message | ) | NCBI_LEGACY_DEPRECATED_1(message) |
Definition at line 190 of file ncbiconf_impl.h.
#define NCBI_THREADS |
Definition at line 77 of file ncbiconf_impl.h.
#define NCBI_UINT8_FORMAT_SPEC PRIu64 |
Definition at line 215 of file ncbitype.h.
#define NCBI_UNUSED |
Definition at line 289 of file ncbiconf_impl.h.
#define NCBI_WARN_UNUSED_RESULT |
Definition at line 244 of file ncbiconf_impl.h.
#define NCBI_WIN32_THREADS |
Definition at line 66 of file ncbiconf_impl.h.
#define numeric_limits ncbi_numeric_limits |
Pre-declaration of the "numeric_limits<>" template Forcibly overrides (using preprocessor) the original "numeric_limits<>"!
Definition at line 92 of file ncbi_limits.hpp.
#define SIZEOF_NCBI_BIG 8 |
Definition at line 154 of file ncbitype.h.
typedef char Char |
1-byte (8-bit) signed integer
Definition at line 98 of file ncbitype.h.
2-byte (16-bit) signed integer
Definition at line 100 of file ncbitype.h.
4-byte (32-bit) signed integer
Definition at line 102 of file ncbitype.h.
8-byte (64-bit) signed integer
Definition at line 104 of file ncbitype.h.
Definition at line 185 of file ncbitype.h.
typedef Int8 Ncbi_BigScalar |
Define large scalar type.
This is platform dependent. It could be an Int8, long double, double or void*.
Definition at line 180 of file ncbitype.h.
typedef signed char Schar |
Alias for signed char.
Definition at line 94 of file ncbitype.h.
typedef ncbi_numeric_limits<T> SAutoMinMaxLimits< T, is_signed >::TStdLim |
Definition at line 167 of file ncbi_limits.hpp.
typedef ncbi_numeric_limits<T> SAutoMinMaxLimits< T, false >::TStdLim |
Definition at line 187 of file ncbi_limits.hpp.
typedef unsigned char Uchar |
Alias for unsigned char.
Definition at line 95 of file ncbitype.h.
1-byte (8-bit) unsigned integer
Definition at line 99 of file ncbitype.h.
2-byte (16-bit) unsigned integer
Definition at line 101 of file ncbitype.h.
4-byte (32-bit) unsigned integer
Definition at line 103 of file ncbitype.h.
8-byte (64-bit) unsigned integer
Definition at line 105 of file ncbitype.h.
Definition at line 197 of file ncbitype.h.
|
inline |
Definition at line 258 of file ncbi_limits.hpp.
|
inline |
Definition at line 272 of file ncbi_limits.hpp.
|
inline |
Definition at line 271 of file ncbi_limits.hpp.
|
inline |
Definition at line 259 of file ncbi_limits.hpp.
|
inline |
Definition at line 265 of file ncbi_limits.hpp.
|
inline |
Definition at line 268 of file ncbi_limits.hpp.
|
inline |
Definition at line 262 of file ncbi_limits.hpp.
|
inline |
Generic template to get STD limits by a variable.
Typical use:
int a = 10; get_limits(a).max();
Definition at line 246 of file ncbi_limits.hpp.
References tmp.
Referenced by CMemoryFile::Extend(), CArchive::ExtractFileToHeap(), CMemoryFileMap::Map(), and CNcbiApplicationAPI::x_HonorStandardSettings().
|
inline |
Definition at line 260 of file ncbi_limits.hpp.
|
inline |
Definition at line 266 of file ncbi_limits.hpp.
|
inline |
Definition at line 269 of file ncbi_limits.hpp.
|
inline |
Definition at line 263 of file ncbi_limits.hpp.
|
inlinestatic |
Definition at line 125 of file ncbi_limits.hpp.
|
inlinestatic |
Definition at line 126 of file ncbi_limits.hpp.
|
inlinestatic |
Definition at line 127 of file ncbi_limits.hpp.
|
inlinestatic |
Definition at line 130 of file ncbi_limits.hpp.
|
inlinestatic |
Definition at line 133 of file ncbi_limits.hpp.
|
inlinestatic |
Definition at line 134 of file ncbi_limits.hpp.
|
inlinestatic |
Definition at line 136 of file ncbi_limits.hpp.
|
inlinestatic |
Definition at line 137 of file ncbi_limits.hpp.
|
inlinestatic |
Definition at line 139 of file ncbi_limits.hpp.
|
inlinestatic |
Definition at line 140 of file ncbi_limits.hpp.
|
inlinestatic |
Definition at line 142 of file ncbi_limits.hpp.
|
inlinestatic |
Definition at line 143 of file ncbi_limits.hpp.
|
inlinestatic |
Definition at line 168 of file ncbi_limits.hpp.
References max().
Referenced by SAutoMax::operator T().
|
inlinestatic |
Definition at line 188 of file ncbi_limits.hpp.
References max().
|
inlinestatic |
Definition at line 125 of file ncbi_limits.hpp.
|
inlinestatic |
Definition at line 126 of file ncbi_limits.hpp.
|
inlinestatic |
Definition at line 127 of file ncbi_limits.hpp.
|
inlinestatic |
Definition at line 130 of file ncbi_limits.hpp.
|
inlinestatic |
Definition at line 133 of file ncbi_limits.hpp.
|
inlinestatic |
Definition at line 134 of file ncbi_limits.hpp.
|
inlinestatic |
Definition at line 136 of file ncbi_limits.hpp.
|
inlinestatic |
Definition at line 137 of file ncbi_limits.hpp.
|
inlinestatic |
Definition at line 139 of file ncbi_limits.hpp.
|
inlinestatic |
Definition at line 140 of file ncbi_limits.hpp.
|
inlinestatic |
Definition at line 142 of file ncbi_limits.hpp.
|
inlinestatic |
Definition at line 143 of file ncbi_limits.hpp.
|
inlinestatic |
For non-integral types, yield a huge negative value rather than a tiny positive one.
Definition at line 172 of file ncbi_limits.hpp.
References max(), min(), and T.
Referenced by SAutoMin::operator T().
|
inlinestatic |
Definition at line 189 of file ncbi_limits.hpp.
|
inline |
Definition at line 195 of file ncbi_limits.hpp.
References SAutoMinMaxLimits< T, is_signed >::max().
|
inline |
Definition at line 205 of file ncbi_limits.hpp.
References SAutoMinMaxLimits< T, is_signed >::min().
Definition at line 229 of file ncbi_limits.hpp.
Definition at line 229 of file ncbi_limits.hpp.
Definition at line 229 of file ncbi_limits.hpp.
Definition at line 229 of file ncbi_limits.hpp.
Definition at line 230 of file ncbi_limits.hpp.
Definition at line 230 of file ncbi_limits.hpp.
Definition at line 230 of file ncbi_limits.hpp.
Definition at line 230 of file ncbi_limits.hpp.
Definition at line 231 of file ncbi_limits.hpp.
Definition at line 231 of file ncbi_limits.hpp.
Definition at line 231 of file ncbi_limits.hpp.
Definition at line 231 of file ncbi_limits.hpp.
Definition at line 228 of file ncbi_limits.hpp.
Definition at line 228 of file ncbi_limits.hpp.
Definition at line 228 of file ncbi_limits.hpp.
Definition at line 228 of file ncbi_limits.hpp.
Definition at line 232 of file ncbi_limits.hpp.
Definition at line 232 of file ncbi_limits.hpp.
Definition at line 232 of file ncbi_limits.hpp.
Definition at line 232 of file ncbi_limits.hpp.
Definition at line 233 of file ncbi_limits.hpp.
Definition at line 233 of file ncbi_limits.hpp.
Definition at line 233 of file ncbi_limits.hpp.
Definition at line 233 of file ncbi_limits.hpp.
Generic stand-in for type-specific kMax_* constants from ncbi_limits.h, useful in any context with exactly one preferred type.
Definition at line 200 of file ncbi_limits.hpp.
Referenced by value_slice::SConvertUsingRunTimeCP< to_is_integer, from_is_integer >::Convert(), value_slice::SConvertUsingRunTimeCP< true, true >::Convert(), CGeneFinder::ResolveGeneXref(), CSdbapiTest::Run(), and CQueryImpl::x_InitBeforeExec().
Generic stand-in for type-specific kMin_* constants from ncbi_limits.h, useful in any context with exactly one preferred type.
NB: For non-integral types, yields a huge negative value rather than a tiny positive one.
Definition at line 212 of file ncbi_limits.hpp.
Referenced by value_slice::SConvertUsingRunTimeCP< to_is_integer, from_is_integer >::Convert(), and value_slice::SConvertUsingRunTimeCP< true, true >::Convert().