DGtal  0.9.3beta
Public 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 Attributes

x
 
a
 
r
 

Detailed Description

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

Aim: Defines a unary functor, which associates arguments to results.

Description of concept 'CUnaryFunctor'

Refinement of

Associated types :

Notation

Definitions

Valid expressions and semantics

Name Expression Type requirements Return type Precondition Semantics Post condition Complexity
Apply function r = x(a) R returns the value of the function x on argument a

Invariants

Models

Notes

Definition at line 89 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 95 of file CUnaryFunctor.h.

96  {
97  // x( a ) returns r.
98  ConceptUtils::sameType( r, x.operator() ( a ) );
99  }
void sameType(const T &t1, const T &t2)

Field Documentation

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

Definition at line 104 of file CUnaryFunctor.h.

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

Definition at line 102 of file CUnaryFunctor.h.


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