DGtal 2.0.0
Loading...
Searching...
No Matches
Functor< T, Point > Struct Template Reference

Public Member Functions

 Functor (double c)
double operator() (double v) const
 Functor (Point const &c, T r)
operator() (Point const &pt) const

Data Fields

double cst
Point center
radius

Detailed Description

Constructor & Destructor Documentation

◆ Functor() [1/2]

template<typename T, typename Point>
Functor< T, Point >::Functor ( double c)
inlineexplicit

Definition at line 48 of file testFunctorHolder.cpp.

References cst.

◆ Functor() [2/2]

template<typename T, typename Point>
Functor< T, Point >::Functor ( Point const & c,
T r )
inline

Definition at line 48 of file testPointFunctorHolder.cpp.

References center, and radius.

Member Function Documentation

◆ operator()() [1/2]

template<typename T, typename Point>
double Functor< T, Point >::operator() ( double v) const
inline

Definition at line 49 of file testFunctorHolder.cpp.

49{ return v + cst; }

References cst.

◆ operator()() [2/2]

template<typename T, typename Point>
T Functor< T, Point >::operator() ( Point const & pt) const
inline

Definition at line 52 of file testPointFunctorHolder.cpp.

53 {
54 return kernel<T>(pt, center, radius);
55 }

References center, and radius.

Field Documentation

◆ center

template<typename T, typename Point>
Point Functor< T, Point >::center

Definition at line 45 of file testPointFunctorHolder.cpp.

Referenced by Functor(), and operator()().

◆ cst

template<typename T, typename Point>
double Functor< T, Point >::cst

Definition at line 46 of file testFunctorHolder.cpp.

Referenced by Functor(), and operator()().

◆ radius

template<typename T, typename Point>
T Functor< T, Point >::radius

Definition at line 46 of file testPointFunctorHolder.cpp.

Referenced by Functor(), and operator()().


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