AGX Dynamics 2.41.3.0
Loading...
Searching...
No Matches
Integer.h
Go to the documentation of this file.
1/*
2Copyright 2007-2025. Algoryx Simulation AB.
3
4All AGX source code, intellectual property, documentation, sample code,
5tutorials, scene files and technical white papers, are copyrighted, proprietary
6and confidential material of Algoryx Simulation AB. You may not download, read,
7store, distribute, publish, copy or otherwise disseminate, use or expose this
8material unless having a written signed agreement with Algoryx Simulation AB, or having been
9advised so by Algoryx Simulation AB for a time limited evaluation, or having purchased a
10valid commercial license from Algoryx Simulation AB.
11
12Algoryx Simulation AB disclaims all responsibilities for loss or damage caused
13from using this software, unless otherwise stated in written agreements with
14Algoryx Simulation AB.
15*/
16
17#pragma once
18
19#include <agx/config.h>
20#include <agx/stdint.h>
21#include <stdlib.h>
22#include <limits>
23
24namespace agx
25{
26
27 typedef uint64_t UInt;
28 typedef int64_t Int;
29
30 typedef uint8_t UInt8;
31 typedef uint16_t UInt16;
32 typedef uint32_t UInt32;
33 typedef uint64_t UInt64;
34
35 typedef int8_t Int8;
36 typedef int16_t Int16;
37 typedef int32_t Int32;
38 typedef int64_t Int64;
39
40 typedef bool Bool;
41
42 typedef size_t Size;
43
44 typedef UInt32 Index;
45
46 // Use UInt types for non-default index types
47 // typedef UInt8 Index8;
48 // typedef UInt16 Index16;
49 // typedef UInt32 Index32;
50 // typedef UInt64 Index64;
51
52#ifdef max
53#undef max
54#endif
55
56#ifdef min
57#undef min
58#endif
59
60 // Name clash with global macro definitions
61 const UInt UIntMax = std::numeric_limits<UInt>::max();
62 const UInt8 UInt8Max = std::numeric_limits<UInt8>::max();
63 const UInt16 UInt16Max = std::numeric_limits<UInt16>::max();
64 const UInt32 UInt32Max = std::numeric_limits<UInt32>::max();
65 const UInt64 UInt64Max = std::numeric_limits<UInt64>::max();
66
67 const Int IntMax = std::numeric_limits<Int>::max();
68 const Int8 Int8Max = std::numeric_limits<Int8>::max();
69 const Int16 Int16Max = std::numeric_limits<Int16>::max();
70 const Int32 Int32Max = std::numeric_limits<Int32>::max();
71 const Int64 Int64Max = std::numeric_limits<Int64>::max();
72
73 const Size SizeMax = std::numeric_limits<Size>::max();
74}
The agx namespace contains the dynamics/math part of the AGX Dynamics API.
const UInt32 UInt32Max
Definition: Integer.h:64
uint16_t UInt16
Definition: Integer.h:31
int32_t Int32
Definition: Integer.h:37
const UInt UIntMax
Definition: Integer.h:61
const Int IntMax
Definition: Integer.h:67
uint32_t UInt32
Definition: Integer.h:32
const Int8 Int8Max
Definition: Integer.h:68
bool Bool
Definition: Integer.h:40
uint64_t UInt64
Definition: Integer.h:33
int64_t Int64
Definition: Integer.h:38
const Size SizeMax
Definition: Integer.h:73
const UInt8 UInt8Max
Definition: Integer.h:62
size_t Size
Definition: Integer.h:42
uint64_t UInt
Definition: Integer.h:27
const Int16 Int16Max
Definition: Integer.h:69
uint8_t UInt8
Definition: Integer.h:30
const UInt16 UInt16Max
Definition: Integer.h:63
int8_t Int8
Definition: Integer.h:35
const UInt64 UInt64Max
Definition: Integer.h:65
int16_t Int16
Definition: Integer.h:36
const Int64 Int64Max
Definition: Integer.h:71
int64_t Int
Definition: Integer.h:28
const Int32 Int32Max
Definition: Integer.h:70
UInt32 Index
Definition: Integer.h:44