DGtal  1.5.beta
DGtal::detail::ValueConverter< X, Y > Struct Template Reference

Generic definition of a class for converting type X toward type Y. More...

#include <DGtal/helpers/Parameters.h>

Static Public Member Functions

static Y cast (const X &)
 By default, it is impossible to do such conversions. More...
 

Detailed Description

template<typename X, typename Y>
struct DGtal::detail::ValueConverter< X, Y >

Generic definition of a class for converting type X toward type Y.

Definition at line 56 of file Parameters.h.

Member Function Documentation

◆ cast()

template<typename X , typename Y >
static Y DGtal::detail::ValueConverter< X, Y >::cast ( const X &  )
inlinestatic

By default, it is impossible to do such conversions.

Definition at line 58 of file Parameters.h.

59  {
60  ASSERT( false
61  && "[ValueConverter<X,Y>::cast] there is no such generic type converter." );
62  return Y();
63  }

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