![]() |
Vault
4.1
|
#include "vtypes_platform.h"#include <memory>#include <vector>#include <stdarg.h>#include <iostream>#include <deque>#include <map>#include <limits>#include "vconfigure.h"Go to the source code of this file.
Classes | |
| class | VAutoreleasePool |
| VAutoreleasePool currently is defined to support memory management in Cocoa applications. More... | |
Defines | |
| #define | Vx32_IS_xINT |
| #define | NULL 0 |
| Definition of NULL in compiler environments that don't already define it. | |
| #define | CONST_S64(s) /*lint -save -e961*/ s##LL |
| Macro to declare a Vs64 constant in a way that works even in VC++ 6./*lint -restore*/. | |
| #define | CONST_U64(s) s##ULL |
| Macro to declare a Vu64 constant in a way that works even in VC++ 6. | |
| #define | V_BYTESWAP_HTON_S16_GET(x) (x) |
| #define | V_BYTESWAP_NTOH_S16_GET(x) (x) |
| #define | V_BYTESWAP_HTON_S16_IN_PLACE(x) ((void)0) |
| #define | V_BYTESWAP_NTOH_S16_IN_PLACE(x) ((void)0) |
| #define | V_BYTESWAP_HTON_U16_GET(x) (x) |
| #define | V_BYTESWAP_NTOH_U16_GET(x) (x) |
| #define | V_BYTESWAP_HTON_U16_IN_PLACE(x) ((void)0) |
| #define | V_BYTESWAP_NTOH_U16_IN_PLACE(x) ((void)0) |
| #define | V_BYTESWAP_HTON_S32_GET(x) (x) |
| #define | V_BYTESWAP_NTOH_S32_GET(x) (x) |
| #define | V_BYTESWAP_HTON_S32_IN_PLACE(x) ((void)0) |
| #define | V_BYTESWAP_NTOH_S32_IN_PLACE(x) ((void)0) |
| #define | V_BYTESWAP_HTON_U32_GET(x) (x) |
| #define | V_BYTESWAP_NTOH_U32_GET(x) (x) |
| #define | V_BYTESWAP_HTON_U32_IN_PLACE(x) ((void)0) |
| #define | V_BYTESWAP_NTOH_U32_IN_PLACE(x) ((void)0) |
| #define | V_BYTESWAP_HTON_S64_GET(x) (x) |
| #define | V_BYTESWAP_NTOH_S64_GET(x) (x) |
| #define | V_BYTESWAP_HTON_S64_IN_PLACE(x) ((void)0) |
| #define | V_BYTESWAP_NTOH_S64_IN_PLACE(x) ((void)0) |
| #define | V_BYTESWAP_HTON_U64_GET(x) (x) |
| #define | V_BYTESWAP_NTOH_U64_GET(x) (x) |
| #define | V_BYTESWAP_HTON_U64_IN_PLACE(x) ((void)0) |
| #define | V_BYTESWAP_NTOH_U64_IN_PLACE(x) ((void)0) |
| #define | V_BYTESWAP_HTON_F_GET(x) (x) |
| #define | V_BYTESWAP_NTOH_F_GET(x) (x) |
| #define | V_BYTESWAP_HTON_F_IN_PLACE(x) ((void)0) |
| #define | V_BYTESWAP_NTOH_F_IN_PLACE(x) ((void)0) |
| #define | V_BYTESWAP_HTON_D_GET(x) (x) |
| #define | V_BYTESWAP_NTOH_D_GET(x) (x) |
| #define | V_BYTESWAP_HTON_D_IN_PLACE(x) ((void)0) |
| #define | V_BYTESWAP_NTOH_D_IN_PLACE(x) ((void)0) |
| #define | CLASS_CONST(type, name, init) static const type name = (init) |
| Macro to declare a class static constant in a way that works even in VC++ 6. | |
| #define | V_ASSERT_ACTIVE |
| #define | V_ASSERT_THROWS_EXCEPTION |
| #define | V_ASSERT_INVARIANT_ACTIVE |
| #define | ASSERT_INVARIANT() this->_assertInvariant() |
| Macro to call this->_assertInvariant(). | |
| #define | V_STATIC_INIT_TRACE |
| #define | V_CONSTRAIN_MINMAX(n, minValue, maxValue) V_MAX(minValue, V_MIN(maxValue, n)) |
| #define | VUniquePtr std::unique_ptr |
| #define | VSharedPtr std::shared_ptr |
| #define | VWeakPtr std::weak_ptr |
| #define | VEnableSharedFromThis std::enable_shared_from_this |
| #define | VStaticPtrCast std::static_pointer_cast |
| #define | VDynamicPtrCast std::dynamic_pointer_cast |
| #define | VConstPtrCast std::const_pointer_cast |
| #define | VCONFIGURE_AFTER_VTYPES |
Typedefs | |
| typedef int8_t | Vs8 |
| Signed 8-bit integer. | |
| typedef uint8_t | Vu8 |
| Unsigned 8-bit integer. | |
| typedef int16_t | Vs16 |
| Signed 16-bit integer. | |
| typedef uint16_t | Vu16 |
| Unsigned 16-bit integer. | |
| typedef int32_t | Vs32 |
| Signed 32-bit integer. | |
| typedef uint32_t | Vu32 |
| Unsigned 32-bit integer. | |
| typedef int64_t | Vs64 |
| Signed 64-bit integer. | |
| typedef uint64_t | Vu64 |
| Unsigned 64-bit integer. | |
| typedef float | VFloat |
| Single-precision floating-point number. | |
| typedef double | VDouble |
| Double-precision floating-point number. | |
| typedef Vs64 | VFSize |
| Container for file or stream sizes. The purpose is to prevent 32-bit limits from creeping into APIs and source code. | |
| typedef size_t | VSizeType |
| loop index variable of correct type for STL iteration | |
Functions | |
| Vu16 | vault::VbyteSwap16 (Vu16 a16BitValue) |
| Byte-swaps a 16-bit (2-byte) integer either host-to-network order, or network-to-host order (it's the same shuffling either way). | |
| Vu32 | vault::VbyteSwap32 (Vu32 a32BitValue) |
| Byte-swaps a 32-bit (4-byte) integer either host-to-network order, or network-to-host order (it's the same shuffling either way). | |
| Vu64 | vault::VbyteSwap64 (Vu64 a64BitValue) |
| Byte-swaps a 64-bit (8-byte) integer either host-to-network order, or network-to-host order (it's the same shuffling either way). | |
| VFloat | vault::VbyteSwapFloat (VFloat a32BitValue) |
| Byte-swaps a 32-bit (4-byte) float either host-to-network order, or network-to-host order (it's the same shuffling either way). | |
| VDouble | vault::VbyteSwapDouble (VDouble a64BitValue) |
| Byte-swaps a 64-bit (8-byte) double either host-to-network order, or network-to-host order (it's the same shuffling either way). | |
| Vs64 | vault::VgetMemoryUsage () |
| Returns the amount of memory used by the process as reported by some appropriate platform API. | |
| void | vault::Vmemcpy (Vu8 *to, Vu8 *from, int length) |
| Wrapper for memcpy using more precise and convenient types used within Vault classes. | |
| const Vu8 * | vault::VgetNativeLineEnding (int &numBytes) |
| Returns a pointer to a const static containing this platform's native text file line ending bytes, and also sets the supplied byte count so the caller (. | |
| template<class T > | |
| void | vault::vectorDeleteAll (std::vector< T * > &v) |
| A helper template function that both clears a vector and deletes each object it holds a pointer to. | |
| template<class KEY_TYPE , class VALUE_TYPE > | |
| void | vault::mapDeleteAllValues (std::map< KEY_TYPE, VALUE_TYPE * > &m) |
| A helper template function that both clears a map and deletes each value object it holds a pointer to. | |
| template<class KEY_TYPE , class VALUE_TYPE > | |
| void | vault::mapDeleteOneValue (std::map< KEY_TYPE, VALUE_TYPE * > &m, KEY_TYPE key) |
| A helper template function that both erases a map entry for a value, and also deletes the value object it holds a pointer to. | |
| int | Vtrace (const char *fileName, int lineNumber) |
Variables | |
| const void *const | VCPP_DEBUG_BAD_POINTER_VALUE |
Definition in file vtypes.h.