DGtal  0.6.devel
 All Data Structures Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Groups Pages
Public Member Functions
DGtal::CastFunctor< TOutput > Struct Template Reference

#include <BasicFunctors.h>

Public Member Functions

template<typename TInput >
TOutput operator() (const TInput &aInput) const

Detailed Description

template<typename TOutput>
struct DGtal::CastFunctor< TOutput >

Aim: Define a simple functor using the static cast operator.

Description of template class 'CastFunctor'

Template Parameters:
TOutputtype of the return value

Definition at line 178 of file BasicFunctors.h.


Member Function Documentation

template<typename TOutput>
template<typename TInput >
TOutput DGtal::CastFunctor< TOutput >::operator() ( const TInput &  aInput) const
inline

Operator

Returns:
the conversion of aInput into an object of type TOutput.
Template Parameters:
TInputtype of the input value

Definition at line 187 of file BasicFunctors.h.

{
return static_cast<TOutput>(aInput);
}

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