Basic types, define and class. More...
#include <string>#include <exception>#include <sys/types.h>#include <stdint.h>#include <climits>#include <ext/hash_map>#include <ext/hash_set>
Go to the source code of this file.
Classes | |
| struct | __gnu_cxx::hash< std::string > |
| struct | __gnu_cxx::hash< uint64 > |
Namespaces | |
| namespace | __gnu_cxx |
Defines | |
| #define | nl_time time |
| #define | nl_mktime mktime |
| #define | nl_gmtime gmtime |
| #define | nl_localtime localtime |
| #define | nl_difftime difftime |
| #define | FINAL_VERSION 0 |
| #define | NL_LITTLE_ENDIAN |
| #define | NL_OS_UNIX |
| #define | NL_COMP_GCC |
| #define | NL_ISO_SYNTAX 1 |
| #define | NL_ISO_TEMPLATE_SPEC template <> |
| #define | NL_NO_ASM |
| #define | NL_I64 "ll" |
| Used to display a int64 in a platform independent way with printf like functions. | |
| #define | CHashMap ::__gnu_cxx::hash_map |
| #define | CHashSet ::__gnu_cxx::hash_set |
| #define | CHashMultiMap ::__gnu_cxx::hash_multimap |
| #define | INT64_CONSTANT(c) (c##LL) |
| #define | SINT64_CONSTANT(c) (c##LL) |
| #define | UINT64_CONSTANT(c) (c##ULL) |
| #define | NL_TMPL_PARAM_ON_METHOD_1(p1) |
| #define | NL_TMPL_PARAM_ON_METHOD_2(p1, p2) |
| #define | MAX_PATH 255 |
Typedefs | |
| typedef int8_t | sint8 |
| An signed 8 bits integer (use char only as character and not as integer). | |
| typedef u_int8_t | uint8 |
| An unsigned 8 bits integer (use char only as character and not as integer). | |
| typedef int16_t | sint16 |
| An signed 16 bits integer (don't use short). | |
| typedef u_int16_t | uint16 |
| An unsigned 16 bits integer (don't use short). | |
| typedef int32_t | sint32 |
| An signed 32 bits integer (don't use int or long). | |
| typedef u_int32_t | uint32 |
| An unsigned 32 bits integer (don't use int or long). | |
| typedef long long int | sint64 |
| An signed 64 bits integer (don't use long long or __int64). | |
| typedef unsigned long long int | uint64 |
| An unsigned 64 bits integer (don't use long long or __int64). | |
| typedef int | sint |
| An signed integer at least 32 bits (used only for internal loops or speedy purpose, processor dependent). | |
| typedef unsigned int | uint |
| An unsigned integer, at least 32 bits (used only for internal loops or speedy purpose, processor dependent). | |
| typedef uint16 | ucchar |
| An Unicode character (16 bits). | |
Functions | |
| const std::string | nlMode ("NL_RELEASE") |
Basic types, define and class.
Available constants:
Definition in file types_nl.h.
| #define CHashMap ::__gnu_cxx::hash_map |
Definition at line 316 of file types_nl.h.
| #define CHashMultiMap ::__gnu_cxx::hash_multimap |
Definition at line 318 of file types_nl.h.
| #define CHashSet ::__gnu_cxx::hash_set |
Definition at line 317 of file types_nl.h.
| #define FINAL_VERSION 0 |
Definition at line 57 of file types_nl.h.
| #define INT64_CONSTANT | ( | c | ) | (c##LL) |
Definition at line 372 of file types_nl.h.
Referenced by NL3D::CFastHLSModifier::applyHLSMod(), NLMISC::CBitmap::flipHDXTCBlockAlpha3(), NLMISC::CBitmap::flipHDXTCBlockAlpha5(), and NLMISC::CBitmap::flipVDXTCBlockAlpha5().
| #define MAX_PATH 255 |
Definition at line 387 of file types_nl.h.
Referenced by NLMISC::CFileContainer::getWindowsDirectory(), and NLMISC::openDoc().
| #define NL_COMP_GCC |
Definition at line 131 of file types_nl.h.
| #define nl_difftime difftime |
Definition at line 42 of file types_nl.h.
| #define nl_gmtime gmtime |
Definition at line 40 of file types_nl.h.
| #define NL_I64 "ll" |
Used to display a int64 in a platform independent way with printf like functions.
sint64 myint64 = SINT64_CONSTANT(0x123456781234); printf("This is a 64 bits int: %"NL_I64"u", myint64);
Definition at line 311 of file types_nl.h.
Referenced by NLNET::CUnifiedNetwork::autoCheck(), NLMISC::bytesToHumanReadable(), NLNET::cbServerAskUniversalTime(), NLNET::CMessageRecorder::checkNextOne(), NLNET::CCallbackClient::connect(), NLNET::CCallbackClient::disconnect(), NLMISC::CBufFIFO::displayStats(), NLMISC::fromString(), NLMISC::CEntityId::fromString(), NLMISC::CCPUTimeStat::getCPUTicks(), NLMISC::CCPUTimeStat::getPIDTicks(), NLMISC::CBitMemStream::getSerialItem(), NLMISC::NLMISC_CATEGORISED_COMMAND(), NLMISC::CEntityId::operator++(), NLNET::CMessageRecorder::replayConnectionAttempt(), NLPACS::CVector2s::safeCastSint16(), NLMISC::COXml::serial(), NLMISC::CMemStream::serial(), NLMISC::toString(), NLNET::uncbMsgProcessing(), and NLNET::uncbServiceIdentification().
| #define NL_ISO_SYNTAX 1 |
Definition at line 144 of file types_nl.h.
| #define NL_ISO_TEMPLATE_SPEC template <> |
Definition at line 145 of file types_nl.h.
| #define NL_LITTLE_ENDIAN |
Definition at line 126 of file types_nl.h.
| #define nl_localtime localtime |
Definition at line 41 of file types_nl.h.
| #define nl_mktime mktime |
Definition at line 39 of file types_nl.h.
| #define NL_NO_ASM |
Definition at line 178 of file types_nl.h.
| #define NL_OS_UNIX |
Definition at line 130 of file types_nl.h.
| #define nl_time time |
Definition at line 38 of file types_nl.h.
| #define NL_TMPL_PARAM_ON_METHOD_1 | ( | p1 | ) |
Definition at line 382 of file types_nl.h.
| #define NL_TMPL_PARAM_ON_METHOD_2 | ( | p1, | |||
| p2 | ) |
Definition at line 383 of file types_nl.h.
| #define SINT64_CONSTANT | ( | c | ) | (c##LL) |
Definition at line 373 of file types_nl.h.
Referenced by NLMISC::nlfseek64().
| #define UINT64_CONSTANT | ( | c | ) | (c##ULL) |
Definition at line 374 of file types_nl.h.
Referenced by NLNET::CTransportIdAllocator::CTransportIdAllocator(), NL3D::CWaterEnvMap::invalidate(), and setCPUMask().
An signed integer at least 32 bits (used only for internal loops or speedy purpose, processor dependent).
Definition at line 308 of file types_nl.h.
An signed 16 bits integer (don't use short).
Definition at line 301 of file types_nl.h.
An signed 32 bits integer (don't use int or long).
Definition at line 303 of file types_nl.h.
An signed 64 bits integer (don't use long long or __int64).
Definition at line 305 of file types_nl.h.
An signed 8 bits integer (use char only as character and not as integer).
Definition at line 299 of file types_nl.h.
An Unicode character (16 bits).
Definition at line 357 of file types_nl.h.
An unsigned integer, at least 32 bits (used only for internal loops or speedy purpose, processor dependent).
Definition at line 309 of file types_nl.h.
An unsigned 16 bits integer (don't use short).
Definition at line 302 of file types_nl.h.
An unsigned 32 bits integer (don't use int or long).
Definition at line 304 of file types_nl.h.
An unsigned 64 bits integer (don't use long long or __int64).
Definition at line 306 of file types_nl.h.
An unsigned 8 bits integer (use char only as character and not as integer).
Definition at line 300 of file types_nl.h.
| const std::string nlMode | ( | "NL_RELEASE" | ) |
1.6.1