DGtal  1.4.beta
DGtal::detail::toCoordinateImpl< TInput, TOutput > Struct Template Reference

Aim: Define a simple functor that can cast a signed integer (possibly a DGtal::BigInteger) into another. More...

#include <DGtal/geometry/curves/ArithmeticalDSL.h>

Public Member Functions

 BOOST_CONCEPT_ASSERT ((concepts::CSignedNumber< TInput >))
 
 BOOST_CONCEPT_ASSERT ((concepts::CSignedNumber< TOutput >))
 
 BOOST_CONCEPT_ASSERT ((concepts::CInteger< TInput >))
 
 BOOST_CONCEPT_ASSERT ((concepts::CInteger< TOutput >))
 

Static Public Member Functions

static TOutput cast (const TInput &aInput)
 

Detailed Description

template<typename TInput, typename TOutput>
struct DGtal::detail::toCoordinateImpl< TInput, TOutput >

Aim: Define a simple functor that can cast a signed integer (possibly a DGtal::BigInteger) into another.

Description of template class 'functors::CastForSignedIntegers'

Template Parameters
TInputtype of the input value
TOutputtype of the return value

Definition at line 831 of file ArithmeticalDSL.h.

Member Function Documentation

◆ BOOST_CONCEPT_ASSERT() [1/4]

template<typename TInput , typename TOutput >
DGtal::detail::toCoordinateImpl< TInput, TOutput >::BOOST_CONCEPT_ASSERT ( (concepts::CInteger< TInput >)  )

◆ BOOST_CONCEPT_ASSERT() [2/4]

template<typename TInput , typename TOutput >
DGtal::detail::toCoordinateImpl< TInput, TOutput >::BOOST_CONCEPT_ASSERT ( (concepts::CInteger< TOutput >)  )

◆ BOOST_CONCEPT_ASSERT() [3/4]

template<typename TInput , typename TOutput >
DGtal::detail::toCoordinateImpl< TInput, TOutput >::BOOST_CONCEPT_ASSERT ( (concepts::CSignedNumber< TInput >)  )

◆ BOOST_CONCEPT_ASSERT() [4/4]

template<typename TInput , typename TOutput >
DGtal::detail::toCoordinateImpl< TInput, TOutput >::BOOST_CONCEPT_ASSERT ( (concepts::CSignedNumber< TOutput >)  )

◆ cast()

template<typename TInput , typename TOutput >
static TOutput DGtal::detail::toCoordinateImpl< TInput, TOutput >::cast ( const TInput &  aInput)
inlinestatic

cast operator

Returns
the conversion of aInput into an object of type TOutput.

Definition at line 842 of file ArithmeticalDSL.h.

843  {
844  return static_cast<TOutput>(aInput);
845  }

The documentation for this struct was generated from the following file: