FMI 1.0
FaaS Message Interface
Public Member Functions | Public Attributes | List of all members
FMI::Utils::Function< T > Class Template Reference

Small wrapper around an arbitrary C++ binary function with signature T(T,T), i.e. accepting two arguments of type T and returning one of type T. More...

#include <Function.h>

Collaboration diagram for FMI::Utils::Function< T >:
Collaboration graph

Public Member Functions

 Function (std::function< T(T, T)> f, bool commutative, bool associative)
 
operator() (T a, T b) const
 

Public Attributes

bool commutative
 User provided information about commutativity. More...
 
bool associative
 User provided information about associativity. More...
 

Detailed Description

template<typename T>
class FMI::Utils::Function< T >

Small wrapper around an arbitrary C++ binary function with signature T(T,T), i.e. accepting two arguments of type T and returning one of type T.

Constructor & Destructor Documentation

◆ Function()

template<typename T >
FMI::Utils::Function< T >::Function ( std::function< T(T, T)>  f,
bool  commutative,
bool  associative 
)
inline

Member Function Documentation

◆ operator()()

template<typename T >
T FMI::Utils::Function< T >::operator() ( a,
b 
) const
inline

Member Data Documentation

◆ associative

template<typename T >
bool FMI::Utils::Function< T >::associative

User provided information about associativity.

◆ commutative

template<typename T >
bool FMI::Utils::Function< T >::commutative

User provided information about commutativity.


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