AGX Dynamics  2.38.0.2
Integer.h
Go to the documentation of this file.
1 /*
2 Copyright 2007-2024. Algoryx Simulation AB.
3 
4 All AGX source code, intellectual property, documentation, sample code,
5 tutorials, scene files and technical white papers, are copyrighted, proprietary
6 and confidential material of Algoryx Simulation AB. You may not download, read,
7 store, distribute, publish, copy or otherwise disseminate, use or expose this
8 material unless having a written signed agreement with Algoryx Simulation AB, or having been
9 advised so by Algoryx Simulation AB for a time limited evaluation, or having purchased a
10 valid commercial license from Algoryx Simulation AB.
11 
12 Algoryx Simulation AB disclaims all responsibilities for loss or damage caused
13 from using this software, unless otherwise stated in written agreements with
14 Algoryx 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 
24 namespace 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
66 
72 
74 }
agx::IntMax
const Int IntMax
Definition: Integer.h:67
agx::UInt64
uint64_t UInt64
Definition: Integer.h:33
agx::UIntMax
const UInt UIntMax
Definition: Integer.h:61
agx::Int8Max
const Int8 Int8Max
Definition: Integer.h:68
agx::UInt
uint64_t UInt
Definition: Integer.h:27
agx::Int16
int16_t Int16
Definition: Integer.h:36
agx::Int64Max
const Int64 Int64Max
Definition: Integer.h:71
agx::UInt64Max
const UInt64 UInt64Max
Definition: Integer.h:65
agx::Int16Max
const Int16 Int16Max
Definition: Integer.h:69
agx
The agx namespace contains the dynamics/math part of the AGX Dynamics API.
Definition: AddedMassInteraction.h:22
agx::Int
int64_t Int
Definition: Integer.h:28
agx::UInt16
uint16_t UInt16
Definition: Integer.h:31
agx::UInt8
uint8_t UInt8
Definition: Integer.h:30
agx::Size
size_t Size
Definition: Integer.h:42
agx::Index
UInt32 Index
Definition: Integer.h:44
agx::UInt8Max
const UInt8 UInt8Max
Definition: Integer.h:62
agx::Int8
int8_t Int8
Definition: Integer.h:35
stdint.h
agx::SizeMax
const Size SizeMax
Definition: Integer.h:73
agx::Bool
bool Bool
Definition: Integer.h:40
agx::UInt16Max
const UInt16 UInt16Max
Definition: Integer.h:63
agx::Int64
int64_t Int64
Definition: Integer.h:38
agx::UInt32Max
const UInt32 UInt32Max
Definition: Integer.h:64
agx::Int32Max
const Int32 Int32Max
Definition: Integer.h:70
agx::max
Vec3T< T > max(const Vec3T< T > &lhs, const Vec3T< T > &rhs)
Definition: Vec3Template.h:855
agx::Int32
int32_t Int32
Definition: Integer.h:37
agx::UInt32
uint32_t UInt32
Definition: Integer.h:32