DGtal  0.9.4beta
Public Member Functions | Private Member Functions | Private Attributes
DGtal::concepts::CUnaryFunctor< X, A &, R & > Struct Template Reference

#include <DGtal/base/CUnaryFunctor.h>

Inheritance diagram for DGtal::concepts::CUnaryFunctor< X, A &, R & >:
[legend]
Collaboration 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

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.

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

119  {
120  ConceptUtils::sameType( getRef(r), x.operator() ( getRef(a) ) );
121  }
void sameType(const T &t1, const T &t2)
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

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

Definition at line 125 of file CUnaryFunctor.h.

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

Definition at line 126 of file CUnaryFunctor.h.

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: