DGtal 1.4.0
|
#include <DGtal/kernel/IntegerConverter.h>
Public Types | |
typedef DGtal::int32_t | Integer |
Static Public Member Functions | |
static DGtal::int32_t | cast (DGtal::int32_t i) |
static PointVector< dim, DGtal::int32_t > | cast (PointVector< dim, DGtal::int32_t > p) |
static DGtal::int32_t | cast (DGtal::int64_t i) |
static PointVector< dim, DGtal::int32_t > | cast (PointVector< dim, DGtal::int64_t > p) |
static DGtal::int32_t | cast (DGtal::BigInteger i) |
static PointVector< dim, DGtal::int32_t > | cast (PointVector< dim, DGtal::BigInteger > p) |
Allows seamless conversion of integral types and lattice points, while checking for errors when going from a more precise to a less precise type.
Specialized version for int32_t.
dim | static constant of type DGtal::Dimension that specifies the static dimension of the space and thus the number of elements of the Point or Vector. |
Definition at line 149 of file IntegerConverter.h.
typedef DGtal::int32_t DGtal::IntegerConverter< dim, DGtal::int32_t >::Integer |
Definition at line 150 of file IntegerConverter.h.
|
inlinestatic |
i | any integer |
Definition at line 198 of file IntegerConverter.h.
References DGtal::trace, and DGtal::Trace::warning().
|
inlinestatic |
i | any integer |
Definition at line 154 of file IntegerConverter.h.
|
inlinestatic |
i | any integer |
Definition at line 172 of file IntegerConverter.h.
References DGtal::trace, and DGtal::Trace::warning().
|
inlinestatic |
Conversion of a lattice point.
p | any point |
Definition at line 213 of file IntegerConverter.h.
References DGtal::IntegerConverter< dim, TInteger >::cast(), and dim.
|
inlinestatic |
Conversion of a lattice point.
p | any point |
Definition at line 165 of file IntegerConverter.h.
|
inlinestatic |
Conversion of a lattice point.
p | any point |
Definition at line 187 of file IntegerConverter.h.
References DGtal::IntegerConverter< dim, TInteger >::cast(), and dim.