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

#include <Functors.hh>

Public Member Functions

 CompositionFunctorFGx (const F &f, const G &g)
 
F::result_type operator() (const typename G::argument_type &x) const
 

Private Attributes

_f
 
_g
 

Detailed Description

template<class F, class G>
class Diades::Utils::CompositionFunctorFGx< F, G >

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

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

Definition at line 331 of file Functors.hh.

Constructor & Destructor Documentation

◆ CompositionFunctorFGx()

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

Composition functor f(g(x))

Parameters
fbinary functor
gunary functor

Definition at line 345 of file Functors.hh.

Member Function Documentation

◆ operator()()

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

Definition at line 356 of file Functors.hh.

Member Data Documentation

◆ _f

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

Definition at line 336 of file Functors.hh.

◆ _g

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

Definition at line 337 of file Functors.hh.


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