PolyBoRi
Public Types | Public Member Functions | Protected Attributes
polybori::binary_composition Class Reference

Compose a binary function with two default constructable unary functions. More...

#include <pbori_func.h>

List of all members.

Public Types

typedef base::result_type result_type
 Getting inherited types.
typedef BinaryOp base
 Define types corresponding to template arguments.
typedef FirstOp first_op_type
typedef SecondOp second_op_type

Public Member Functions

 binary_composition (const base &binop=base(), const first_op_type &unop1=first_op_type(), const second_op_type &unop2=second_op_type())
template<class FirstType , class SecondType >
result_type operator() (const FirstType &first, const SecondType &second) const
 The composed operation for constant arguments.
template<class FirstType , class SecondType >
result_type operator() (FirstType &first, const SecondType &second) const
 The composed operation for constant second argument.
template<class FirstType , class SecondType >
result_type operator() (const FirstType &first, SecondType &second) const
 The composed operation for constant first argument.

Protected Attributes

first_op_type first_op
second_op_type second_op

Detailed Description

Compose a binary function with two default constructable unary functions.


Member Typedef Documentation

Define types corresponding to template arguments.

Reimplemented in polybori::symmetric_composition.

typedef base::result_type polybori::binary_composition::result_type

Getting inherited types.


Constructor & Destructor Documentation

polybori::binary_composition::binary_composition ( const base binop = base(),
const first_op_type unop1 = first_op_type(),
const second_op_type unop2 = second_op_type() 
) [inline]

Member Function Documentation

template<class FirstType , class SecondType >
result_type polybori::binary_composition::operator() ( const FirstType &  first,
const SecondType &  second 
) const [inline]

The composed operation for constant arguments.

template<class FirstType , class SecondType >
result_type polybori::binary_composition::operator() ( FirstType &  first,
const SecondType &  second 
) const [inline]

The composed operation for constant second argument.

template<class FirstType , class SecondType >
result_type polybori::binary_composition::operator() ( const FirstType &  first,
SecondType &  second 
) const [inline]

The composed operation for constant first argument.


Member Data Documentation


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