DGtal
1.5.beta
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
56
namespace
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
DGtal is the top-level namespace which contains all DGtal functions and types.
DGtal::int64_t
boost::int64_t int64_t
signed 94-bit integer.
Definition:
BasicTypes.h:74
DGtal::uint32_t
boost::uint32_t uint32_t
unsigned 32-bit integer.
Definition:
BasicTypes.h:63
DGtal::uint16_t
boost::uint16_t uint16_t
unsigned 16-bit integer.
Definition:
BasicTypes.h:61
DGtal::uint8_t
boost::uint8_t uint8_t
unsigned 8-bit integer.
Definition:
BasicTypes.h:59
DGtal::uint64_t
boost::uint64_t uint64_t
unsigned 64-bit integer.
Definition:
BasicTypes.h:65
DGtal::int32_t
boost::int32_t int32_t
signed 32-bit integer.
Definition:
BasicTypes.h:72
DGtal::int8_t
boost::int8_t int8_t
signed 8-bit integer.
Definition:
BasicTypes.h:68
DGtal::int16_t
boost::int16_t int16_t
signed 16-bit integer.
Definition:
BasicTypes.h:70
DGtal::BigInteger
mpz_class BigInteger
Multi-precision integer with GMP implementation.
Definition:
BasicTypes.h:79
src
DGtal
base
BasicTypes.h
Generated on Fri Dec 20 2024 12:44:13 for DGtal by
1.9.1