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

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

#include <DGtal/base/CUnaryFunctor.h>

Inheritance 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

◆ 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 95 of file CUnaryFunctor.h.

96  {
97  // x( a ) returns r.
98  ConceptUtils::sameType( r, x.operator() ( a ) );
99  }

Field Documentation

◆ a

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

Definition at line 103 of file CUnaryFunctor.h.

◆ r

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

Definition at line 104 of file CUnaryFunctor.h.

◆ x

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:
DGtal::concepts::ConceptUtils::sameType
void sameType(const T &, const T &)
Definition: ConceptUtils.h:117