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

#include <Functors.hh>

Public Member Functions

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

Private Attributes

_f
 
_g
 
_h
 

Detailed Description

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

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

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

Definition at line 275 of file Functors.hh.

Constructor & Destructor Documentation

◆ CompositionFunctorFGxHx()

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

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

Parameters
fbinary functor
gunary functor
hunary functor

Definition at line 291 of file Functors.hh.

Member Function Documentation

◆ operator()()

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

Definition at line 302 of file Functors.hh.

Member Data Documentation

◆ _f

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

Definition at line 280 of file Functors.hh.

◆ _g

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

Definition at line 281 of file Functors.hh.

◆ _h

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

Definition at line 282 of file Functors.hh.


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