DGtal  0.6.devel
 All Data Structures Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Groups Pages
Public Member Functions | Private Attributes
DGtal::CUnaryFunctor< X, A, R > Struct Template Reference

#include <CUnaryFunctor.h>

Inheritance diagram for DGtal::CUnaryFunctor< X, A, R >:
Inheritance graph
[legend]
Collaboration diagram for DGtal::CUnaryFunctor< X, A, R >:
Collaboration graph
[legend]

Public Member Functions

 BOOST_CONCEPT_USAGE (CUnaryFunctor)

Private Attributes

x
a
r

Detailed Description

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

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

Description of concept 'CUnaryFunctor'

Refinement of Assignable

Associated types :

Notation

Definitions

Valid expressions and semantics

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

Invariants

Models

Notes

Definition at line 102 of file CUnaryFunctor.h.


Member Function Documentation

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

Definition at line 107 of file CUnaryFunctor.h.

{
// x( p ) returns myV.
ConceptUtils::sameType( r, x.operator() ( a ) );
}

Field Documentation

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

Definition at line 116 of file CUnaryFunctor.h.

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

Definition at line 114 of file CUnaryFunctor.h.


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