Generated on: Thu Mar 29 07:46:58 PDT 2012 for custom file set | ||
|
||
Go to the source code of this file.
Defines | |
#define | GG_LONGLONG(x) x##LL |
SWIG. | |
#define | GG_ULONGLONG(x) x##ULL |
#define | GG_LL_FORMAT "ll" |
#define | GG_LL_FORMAT_W L"ll" |
COMPILER_MSVC. | |
Typedefs | |
typedef signed char | schar |
Licensed under the Apache License, Version 2.0 (the "License"); you may not use this file except in compliance with the License. | |
typedef signed char | int8 |
typedef short | int16 |
NOLINT. | |
typedef int | int32 |
typedef long long | int64 |
NOLINT. | |
typedef unsigned char | uint8 |
COMPILER_MSVC. | |
typedef unsigned short | uint16 |
NOLINT. | |
typedef unsigned int | uint32 |
typedef unsigned long long | uint64 |
NOLINT. | |
typedef signed int | char32 |
COMPILER_MSVC. | |
typedef unsigned long | uword_t |
A type to represent a natural machine word (for e.g. | |
typedef long | sword_t |
A signed natural machine word. | |
Variables | |
static const uint8 | kuint8max = static_cast<uint8>(0xFF) |
static const uint16 | kuint16max = static_cast<uint16>(0xFFFF) |
static const uint32 | kuint32max = static_cast<uint32>(0xFFFFFFFF) |
static const uint64 | kuint64max |
static const int8 | kint8min = static_cast<int8>(0x80) |
static const int8 | kint8max = static_cast<int8>(0x7F) |
static const int16 | kint16min = static_cast<int16>(0x8000) |
static const int16 | kint16max = static_cast<int16>(0x7FFF) |
static const int32 | kint32min = static_cast<int32>(0x80000000) |
static const int32 | kint32max = static_cast<int32>(0x7FFFFFFF) |
static const int64 | kint64min |
static const int64 | kint64max |
OR_TOOLS_BASE_INTEGRAL_TYPES_H_. |
#define GG_LL_FORMAT "ll" |
Definition at line 85 of file integral_types.h.
#define GG_LL_FORMAT_W L"ll" |
#define GG_LONGLONG | ( | x | ) | x##LL |
SWIG.
long long macros to be used because gcc and vc++ use different suffixes, and different size specifiers in format strings if Visual C++ not Visual C++
Definition at line 83 of file integral_types.h.
#define GG_ULONGLONG | ( | x | ) | x##ULL |
Definition at line 84 of file integral_types.h.
typedef signed int char32 |
COMPILER_MSVC.
A type to represent a Unicode code-point value. As of Unicode 4.0, such values require up to 21 bits. (For type-checking on pointers, make this explicitly signed, and it should always be the signed version of whatever int32 is.)
Definition at line 48 of file integral_types.h.
typedef short int16 |
typedef int int32 |
Definition at line 22 of file integral_types.h.
typedef long long int64 |
typedef signed char int8 |
Definition at line 20 of file integral_types.h.
typedef signed char schar |
Licensed under the Apache License, Version 2.0 (the "License"); you may not use this file except in compliance with the License.
You may obtain a copy of the License at
http://www.apache.org/licenses/LICENSE-2.0
Unless required by applicable law or agreed to in writing, software distributed under the License is distributed on an "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the License for the specific language governing permissions and limitations under the License. Standard typedefs
Definition at line 19 of file integral_types.h.
typedef long sword_t |
A signed natural machine word.
In general you want to use "int" rather than "sword_t" NOLINT
Definition at line 61 of file integral_types.h.
typedef unsigned short uint16 |
typedef unsigned int uint32 |
Definition at line 37 of file integral_types.h.
typedef unsigned long long uint64 |
typedef unsigned char uint8 |
COMPILER_MSVC.
NOTE: unsigned types are DANGEROUS in loops and other arithmetical places. Use the signed types unless your variable represents a bit pattern (eg a hash value) or you really need the extra bit. Do NOT use 'unsigned' to express "this value should always be positive"; use assertions for this.
Definition at line 35 of file integral_types.h.
typedef unsigned long uword_t |
A type to represent a natural machine word (for e.g.
efficiently scanning through memory for checksums or index searching). Don't use this for storing normal integers. Ideally this would be just unsigned int, but our 64-bit architectures use the LP64 model (http://www.opengroup.org/public/tech/aspen/lp64_wp.htm), hence their ints are only 32 bits. We want to use the same fundamental type on all archs if possible to preserve *printf() compatability. NOLINT
Definition at line 57 of file integral_types.h.
Definition at line 99 of file integral_types.h.
Definition at line 98 of file integral_types.h.
Definition at line 101 of file integral_types.h.
Definition at line 100 of file integral_types.h.
Initial value:
static_cast<int64>(GG_LONGLONG(0x7FFFFFFFFFFFFFFF))
Definition at line 104 of file integral_types.h.
Initial value:
static_cast<int64>(GG_LONGLONG(0x8000000000000000))
Definition at line 102 of file integral_types.h.
Definition at line 97 of file integral_types.h.
Definition at line 96 of file integral_types.h.
const uint16 kuint16max = static_cast<uint16>(0xFFFF) [static] |
Definition at line 92 of file integral_types.h.
const uint32 kuint32max = static_cast<uint32>(0xFFFFFFFF) [static] |
Definition at line 93 of file integral_types.h.
const uint64 kuint64max [static] |
Initial value:
static_cast<uint64>(GG_LONGLONG(0xFFFFFFFFFFFFFFFF))
Definition at line 94 of file integral_types.h.
Definition at line 91 of file integral_types.h.