DGtal  0.9.4beta
Public Member Functions
DGtal::functors::Identity Struct Reference

#include <DGtal/base/BasicFunctors.h>

Public Member Functions

template<typename T >
operator() (const T &aT) const
 

Detailed Description

Aim: Define a simple default functor that just returns its argument.

Description of template class 'functors::Identity'

Examples:
geometry/volumes/distance/exampleFMM3D.cpp, images/exampleConstImageAdapter.cpp, images/extract2DImagesFrom3D.cpp, images/extract2DImagesFrom3DandVisu.cpp, images/extract2DSlicesImagesFrom3D.cpp, images/imageBasicSubsampling.cpp, io/viewers/viewer3D-8bis-2Dimages.cpp, and tutorial-examples/2DSliceImageFromVol.cpp.

Definition at line 154 of file BasicFunctors.h.

Member Function Documentation

template<typename T >
T DGtal::functors::Identity::operator() ( const T &  aT) const
inline

Operator

Returns
aT.
Template Parameters
Tany type

Definition at line 163 of file BasicFunctors.h.

164  {
165  return aT;
166  }

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