DGtal 2.1.0
Loading...
Searching...
No Matches
MyTransValueFunctor< TValue > Class Template Reference

Aim: Define a simple functor that returns a 'trans' value. More...

Public Types

typedef TValue Value
 

Public Member Functions

 MyTransValueFunctor (const Value &aValue=0)
 
template<typename TInput >
Value operator() (const TInput &aInput) const
 

Private Attributes

Value myValue
 

Detailed Description

template<typename TValue>
class MyTransValueFunctor< TValue >

Aim: Define a simple functor that returns a 'trans' value.

Description of template class 'MyTransValueFunctor'

Template Parameters
TValuetype of the value

Definition at line 110 of file testImageAdapter.cpp.

Member Typedef Documentation

◆ Value

template<typename TValue >
typedef TValue MyTransValueFunctor< TValue >::Value

Definition at line 113 of file testImageAdapter.cpp.

Constructor & Destructor Documentation

◆ MyTransValueFunctor()

template<typename TValue >
MyTransValueFunctor< TValue >::MyTransValueFunctor ( const Value aValue = 0)
inline

Constructor.

Parameters
aValuethe 'trans' value.

Definition at line 119 of file testImageAdapter.cpp.

120 :myValue(aValue) {};

Member Function Documentation

◆ operator()()

template<typename TValue >
template<typename TInput >
Value MyTransValueFunctor< TValue >::operator() ( const TInput &  aInput) const
inline

Operator

Template Parameters
TInputtype of the input object
Parameters
aInputinput object
Returns
the constant value.

Definition at line 132 of file testImageAdapter.cpp.

133 {
134 return aInput+myValue;
135 }

References MyTransValueFunctor< TValue >::myValue.

Field Documentation

◆ myValue

template<typename TValue >
Value MyTransValueFunctor< TValue >::myValue
private

value

Definition at line 141 of file testImageAdapter.cpp.

Referenced by MyTransValueFunctor< TValue >::operator()().


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