DGtal  1.0.0
Static Public Member Functions
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 &value)
 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 55 of file Parameters.h.

Member Function Documentation

◆ cast()

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

By default, it is impossible to do such conversions.

Definition at line 57 of file Parameters.h.

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

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