31#if defined(IntegerConverter_RECURSES)
32#error Recursive header files inclusion detected in IntegerConverter.h
35#define IntegerConverter_RECURSES
37#if !defined IntegerConverter_h
39#define IntegerConverter_h
47#include "DGtal/base/Common.h"
48#include "DGtal/kernel/CInteger.h"
49#include "DGtal/kernel/NumberTraits.h"
50#include "DGtal/kernel/PointVector.h"
101 template < DGtal::Dimension dim >
129 trace.warning() <<
"Bad integer conversion: " << i <<
" -> " << r
144 q[ i ] =
cast( p[ i ] );
154 trace.warning() <<
"Bad integer conversion: " << i <<
" -> " << r
169 q[ i ] =
cast( p[ i ] );
184 template < DGtal::Dimension dim >
205 q[ i ] =
cast( p[ i ] );
234 trace.warning() <<
"Bad integer conversion: " << i <<
" -> " << r
249 q[ i ] =
cast( p[ i ] );
263 template < DGtal::Dimension dim >
284 q[ i ] =
cast( p[ i ] );
306 q[ i ] =
cast( p[ i ] );
334#undef IntegerConverter_RECURSES
DGtal is the top-level namespace which contains all DGtal functions and types.
std::int32_t int32_t
signed 32-bit integer.
std::int64_t int64_t
signed 94-bit integer.
DGtal::uint32_t Dimension
boost::multiprecision::number< boost::multiprecision::cpp_int_backend<>, boost::multiprecision::et_off > BigInteger
static PointVector< dim, DGtal::BigInteger > cast(PointVector< dim, DGtal::BigInteger > p)
static DGtal::BigInteger cast(DGtal::int32_t i)
static PointVector< dim, DGtal::BigInteger > cast(PointVector< dim, DGtal::int32_t > p)
static PointVector< dim, DGtal::BigInteger > cast(PointVector< dim, DGtal::int64_t > p)
static DGtal::BigInteger cast(DGtal::BigInteger i)
static DGtal::BigInteger cast(DGtal::int64_t i)
DGtal::BigInteger Integer
static DGtal::int32_t cast(DGtal::int32_t i)
static PointVector< dim, DGtal::int32_t > cast(PointVector< dim, DGtal::int64_t > p)
static PointVector< dim, DGtal::int32_t > cast(PointVector< dim, DGtal::BigInteger > p)
static DGtal::int32_t cast(DGtal::BigInteger i)
static PointVector< dim, DGtal::int32_t > cast(PointVector< dim, DGtal::int32_t > p)
static DGtal::int32_t cast(DGtal::int64_t i)
static DGtal::int64_t cast(DGtal::int32_t i)
static PointVector< dim, DGtal::int64_t > cast(PointVector< dim, DGtal::int64_t > p)
static DGtal::int64_t cast(DGtal::int64_t i)
static PointVector< dim, DGtal::int64_t > cast(PointVector< dim, DGtal::BigInteger > p)
static PointVector< dim, DGtal::int64_t > cast(PointVector< dim, DGtal::int32_t > p)
static DGtal::int64_t cast(DGtal::BigInteger i)
----------— INTEGER/POINT CONVERSION SERVICES -----------------—
BOOST_CONCEPT_ASSERT((concepts::CInteger< TInteger >))
static PointVector< dim, Integer > cast(PointVector< dim, Integer > p)
CoordinateInteger Integer
static Integer cast(Integer i)
static DGtal::int64_t castToInt64_t(const T &aT)
Aim: Concept checking for Integer Numbers. More precisely, this concept is a refinement of both CEucl...