DGtal  1.4.beta
DGtal::concepts::CUnaryFunctor< X, A &, R & > Struct Template Reference

#include <DGtal/base/CUnaryFunctor.h>

Inheritance diagram for DGtal::concepts::CUnaryFunctor< X, A &, R & >:
[legend]

Public Member Functions

 BOOST_CONCEPT_USAGE (CUnaryFunctor)
 

Private Member Functions

template<typename T >
T & getRef (T &t)
 

Private Attributes

x
 
a
 
r
 

Detailed Description

template<typename X, typename A, typename R>
struct DGtal::concepts::CUnaryFunctor< X, A &, R & >

Definition at line 112 of file CUnaryFunctor.h.

Member Function Documentation

◆ BOOST_CONCEPT_USAGE()

template<typename X , typename A , typename R >
DGtal::concepts::CUnaryFunctor< X, A &, R & >::BOOST_CONCEPT_USAGE ( CUnaryFunctor< X, A &, R & >  )
inline

Definition at line 118 of file CUnaryFunctor.h.

119  {
120  ConceptUtils::sameType( getRef(r), x.operator() ( getRef(a) ) );
121  }
void sameType(const T &, const T &)
Definition: ConceptUtils.h:117

References DGtal::concepts::ConceptUtils::sameType().

◆ getRef()

template<typename X , typename A , typename R >
template<typename T >
T& DGtal::concepts::CUnaryFunctor< X, A &, R & >::getRef ( T &  t)
inlineprivate

Definition at line 130 of file CUnaryFunctor.h.

131  {
132  return t;
133  }

Field Documentation

◆ a

template<typename X , typename A , typename R >
A DGtal::concepts::CUnaryFunctor< X, A &, R & >::a
private

Definition at line 125 of file CUnaryFunctor.h.

◆ r

template<typename X , typename A , typename R >
R DGtal::concepts::CUnaryFunctor< X, A &, R & >::r
private

Definition at line 126 of file CUnaryFunctor.h.

◆ x

template<typename X , typename A , typename R >
X DGtal::concepts::CUnaryFunctor< X, A &, R & >::x
private

Definition at line 124 of file CUnaryFunctor.h.


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