DGtal 1.3.0
Loading...
Searching...
No Matches
BasicTypes.h
1
17#pragma once
18
33#if defined(BasicTypes_RECURSES)
34#error Recursive header files inclusion detected in BasicTypes.h
35#else // defined(BasicTypes_RECURSES)
37#define BasicTypes_RECURSES
38
39#if !defined BasicTypes_h
41#define BasicTypes_h
42
44// Inclusions
45#include <cstdlib>
46#include <iostream>
47#include <boost/cstdint.hpp>
48
49#ifdef WITH_GMP
50#include <gmpxx.h>
51#endif
53
54
55
56namespace DGtal
57{
59 typedef boost::uint8_t uint8_t;
61 typedef boost::uint16_t uint16_t;
63 typedef boost::uint32_t uint32_t;
65 typedef boost::uint64_t uint64_t;
66
68 typedef boost::int8_t int8_t;
70 typedef boost::int16_t int16_t;
72 typedef boost::int32_t int32_t;
74 typedef boost::int64_t int64_t;
75
76#ifdef WITH_GMP
77 #define WITH_BIGINTEGER
79 typedef mpz_class BigInteger;
80#endif
81
82} // namespace DGtal
83
84
85
86// //
88
89#endif // !defined BasicTypes_h
90
91#undef BasicTypes_RECURSES
92#endif // else defined(BasicTypes_RECURSES)
DGtal is the top-level namespace which contains all DGtal functions and types.
boost::int64_t int64_t
signed 94-bit integer.
Definition: BasicTypes.h:74
boost::uint32_t uint32_t
unsigned 32-bit integer.
Definition: BasicTypes.h:63
boost::uint16_t uint16_t
unsigned 16-bit integer.
Definition: BasicTypes.h:61
boost::uint8_t uint8_t
unsigned 8-bit integer.
Definition: BasicTypes.h:59
boost::uint64_t uint64_t
unsigned 64-bit integer.
Definition: BasicTypes.h:65
boost::int32_t int32_t
signed 32-bit integer.
Definition: BasicTypes.h:72
boost::int8_t int8_t
signed 8-bit integer.
Definition: BasicTypes.h:68
boost::int16_t int16_t
signed 16-bit integer.
Definition: BasicTypes.h:70
mpz_class BigInteger
Multi-precision integer with GMP implementation.
Definition: BasicTypes.h:79