|
DGtal 2.0.0
|
----------— 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 69 of file IntegerConverter.h.
| typedef TInteger DGtal::IntegerConverter< dim, TInteger >::Integer |
Definition at line 71 of file IntegerConverter.h.
| DGtal::IntegerConverter< dim, TInteger >::BOOST_CONCEPT_ASSERT | ( | (concepts::CInteger< TInteger >) | ) |
|
inlinestatic |
| i | any integer |
Definition at line 75 of file IntegerConverter.h.
Referenced by DGtal::IntegerConverter< dim, DGtal::BigInteger >::cast(), DGtal::IntegerConverter< dim, DGtal::BigInteger >::cast(), DGtal::IntegerConverter< dim, DGtal::int32_t >::cast(), DGtal::IntegerConverter< dim, DGtal::int32_t >::cast(), DGtal::IntegerConverter< dim, DGtal::int64_t >::cast(), and DGtal::IntegerConverter< dim, DGtal::int64_t >::cast().
|
inlinestatic |
Conversion of a lattice point.
| p | any point |
Definition at line 86 of file IntegerConverter.h.