DGtal
1.5.beta
|
----------— INTEGER/POINT CONVERSION SERVICES -----------------— More...
#include <DGtal/kernel/IntegerConverter.h>
Public Types | |
typedef TInteger | Integer |
Public Member Functions | |
BOOST_CONCEPT_ASSERT ((concepts::CInteger< TInteger >)) | |
Static Public Member Functions | |
static Integer | cast (Integer i) |
static PointVector< dim, Integer > | cast (PointVector< dim, Integer > p) |
----------— INTEGER/POINT CONVERSION SERVICES -----------------—
Allows seamless conversion of integral types and lattice points, while checking for errors when going from a more precise to a less precise type.
Generic version allowing only the identity cast.
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. |
TInteger | an integral type, a model of concepts::CInteger |
Definition at line 116 of file IntegerConverter.h.
typedef TInteger DGtal::IntegerConverter< dim, TInteger >::Integer |
Definition at line 118 of file IntegerConverter.h.
DGtal::IntegerConverter< dim, TInteger >::BOOST_CONCEPT_ASSERT | ( | (concepts::CInteger< TInteger >) | ) |
|
inlinestatic |
i | any integer |
Definition at line 122 of file IntegerConverter.h.
Referenced by DGtal::IntegerConverter< dim, DGtal::int64_t >::cast(), DGtal::IntegerConverter< dim, DGtal::BigInteger >::cast(), DGtal::IntegerConverter< dim, DGtal::int32_t >::cast(), DGtal::ConvexHullCommonKernel< dim, TCoordinateInteger, TInternalInteger >::compute(), DGtal::ConvexHullCommonKernel< dim, TCoordinateInteger, TInternalInteger >::height(), DGtal::ConvexHullCommonKernel< dim, TCoordinateInteger, TInternalInteger >::intercept(), and DGtal::ConvexHullCommonKernel< dim, TCoordinateInteger, TInternalInteger >::normal().
|
inlinestatic |
Conversion of a lattice point.
p | any point |
Definition at line 133 of file IntegerConverter.h.