Public Types | Public Member Functions | Protected Attributes | List of all members
ustl::binary_compose< Operation1, Operation2, Operation3 > Class Template Reference

Chains two unary functions through a binary function. More...

#include <ufunction.h>

Inheritance diagram for ustl::binary_compose< Operation1, Operation2, Operation3 >:
ustl::unary_function< Operation2::argument_type, Operation1::result_type >

Public Types

typedef Operation2::argument_type arg_t
typedef const arg_t & rcarg_t
typedef Operation1::result_type result_t
- Public Types inherited from ustl::unary_function< Operation2::argument_type, Operation1::result_type >
typedef Operation2::argument_type argument_type
typedef Operation1::result_type result_type

Public Member Functions

 binary_compose (const Operation1 &f, const Operation2 &g, const Operation3 &h)
result_t operator() (rcarg_t x) const

Protected Attributes

Operation1 _f
 f(x,y), if c(x) = f(g(x),h(x))
Operation2 _g
 g(x), if c(x) = f(g(x),h(x))
Operation3 _h
 h(x), if c(x) = f(g(x),h(x))

Detailed Description

template<typename Operation1, typename Operation2, typename Operation3>
class ustl::binary_compose< Operation1, Operation2, Operation3 >

Chains two unary functions through a binary function.

When f(x,y), g(x), and h(x) are composed, the result is function c(x)=f(g(x),h(x)). Use the compose2 accessor to create this object. This template is an extension, implemented by SGI STL and uSTL.

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

Generated on Mon Sep 28 2015 17:58:50 for uSTL by Doxygen 1.8.10