DGtal  0.9.4beta
Public Member Functions
DGtal::functors::Cast< TOutput > Struct Template Reference

#include <DGtal/base/BasicFunctors.h>

Inheritance diagram for DGtal::functors::Cast< TOutput >:
[legend]

Public Member Functions

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

Detailed Description

template<typename TOutput>
struct DGtal::functors::Cast< TOutput >

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

Description of template class 'Cast'

Template Parameters
TOutputtype of the return value
Examples:
dec/exampleDECSurface.cpp.

Definition at line 261 of file BasicFunctors.h.

Member Function Documentation

template<typename TOutput>
template<typename TInput >
TOutput DGtal::functors::Cast< 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 270 of file BasicFunctors.h.

271  {
272  return static_cast<TOutput>(aInput);
273  }

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