DiaDes  0.1
DIAgnosis of Discrete-Event System
Public Member Functions | Private Attributes | List of all members
Diades::Utils::CompositionFunctorFGxHy< F, G, H > Class Template Reference

#include <Functors.hh>

Public Member Functions

 CompositionFunctorFGxHy (const F &f, const G &g, const H &h)
 
F::result_type operator() (const typename G::argument_type &x, const typename H::argument_type &y) const
 

Private Attributes

_f
 
_g
 
_h
 

Detailed Description

template<class F, class G, class H>
class Diades::Utils::CompositionFunctorFGxHy< F, G, H >

Composition functor for unary functors Given unary functors g and h and a binary functor f, make the binary functor f(g(x),h(y))

See also
Book C++ Standard Library - A Tutorial and Reference - Addison-Wesley, 1999.

Definition at line 385 of file Functors.hh.

Constructor & Destructor Documentation

◆ CompositionFunctorFGxHy()

template<class F, class G, class H>
Diades::Utils::CompositionFunctorFGxHy< F, G, H >::CompositionFunctorFGxHy ( const F &  f,
const G &  g,
const H &  h 
)
inline

Composition functor f(g(x),h(y))

Parameters
fbinary functor
gunary functor
hunary functor

Definition at line 401 of file Functors.hh.

Member Function Documentation

◆ operator()()

template<class F, class G, class H>
F::result_type Diades::Utils::CompositionFunctorFGxHy< F, G, H >::operator() ( const typename G::argument_type &  x,
const typename H::argument_type &  y 
) const
inline
Parameters
x,yan argument to apply f(g(x),h(y))
Returns
f(g(x),h(y))

Definition at line 412 of file Functors.hh.

Member Data Documentation

◆ _f

template<class F, class G, class H>
F Diades::Utils::CompositionFunctorFGxHy< F, G, H >::_f
private

Definition at line 390 of file Functors.hh.

◆ _g

template<class F, class G, class H>
G Diades::Utils::CompositionFunctorFGxHy< F, G, H >::_g
private

Definition at line 391 of file Functors.hh.

◆ _h

template<class F, class G, class H>
H Diades::Utils::CompositionFunctorFGxHy< F, G, H >::_h
private

Definition at line 392 of file Functors.hh.


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