Trig::binary_compose< BinaryFunction, UnaryFunction1, UnaryFunction2 > Class Template Reference

Function adaptor for combining function objects. More...

#include <binary_compose.h>

List of all members.

Public Member Functions

 binary_compose (BinaryFunction bfn, UnaryFunction1 ufn1, UnaryFunction2 ufn2)
BinaryFunction::result_type operator() (const typename UnaryFunction1::argument_type &x)

Detailed Description

template<class BinaryFunction, class UnaryFunction1, class UnaryFunction2>
class Trig::binary_compose< BinaryFunction, UnaryFunction1, UnaryFunction2 >

Function adaptor for combining function objects.

I got this function adaptor from the STL documentation, because it doesn't seem to be present in recent versions of GCC.

What it does is that if you call it with a binary function "bfn( X, Y )", and two unary functions "x1( X )" and "x2( X )", then internally it will evaluate as

bfn( x1( X ), x2( X ) )

The concept may be a bit tricky, but have a look at the STL documentation...

This class is not actually used by the code anymore, but I didn't just want to throw it out, as it might come handy later on.

Author:
Attila Krasznahorkay <Attila.Krasznahorkay@cern.ch>
Revision
457114
Date
2011-09-05 11:35:49 +0200 (Mon, 05 Sep 2011)

The documentation for this class was generated from the following file:
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Defines

Generated on 1 Dec 2017 for RootCore Packages by  doxygen 1.6.1