DGtal  0.9.4beta
Public Member Functions | Static Public Member Functions
DGtal::detail::toCoordinateImpl< TInput, TOutput > Struct Template Reference

#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

template<typename TInput , typename TOutput >
DGtal::detail::toCoordinateImpl< TInput, TOutput >::BOOST_CONCEPT_ASSERT ( (concepts::CSignedNumber< TInput >)  )
template<typename TInput , typename TOutput >
DGtal::detail::toCoordinateImpl< TInput, TOutput >::BOOST_CONCEPT_ASSERT ( (concepts::CSignedNumber< TOutput >)  )
template<typename TInput , typename TOutput >
DGtal::detail::toCoordinateImpl< TInput, TOutput >::BOOST_CONCEPT_ASSERT ( (concepts::CInteger< TInput >)  )
template<typename TInput , typename TOutput >
DGtal::detail::toCoordinateImpl< TInput, TOutput >::BOOST_CONCEPT_ASSERT ( (concepts::CInteger< TOutput >)  )
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: