Follow this link to skip to the main content

claraty::cl_binder2nd< BinOp > Class Template Reference

#include <functor.h>

Inheritance diagram for claraty::cl_binder2nd< BinOp >:

Inheritance graph
[legend]
Collaboration diagram for claraty::cl_binder2nd< BinOp >:

Collaboration graph
[legend]
List of all members.

Public Types

typedef BinOp::first_argument_type argument_type
typedef BinOp::result_type result_type

Public Member Functions

 cl_binder2nd (const BinOp &x, const typename BinOp::second_argument_type v)
BinOp::result_type operator() (const typename BinOp::first_argument_type &x) const

Protected Attributes

BinOp op
BinOp::second_argument_type arg2

Detailed Description

template<class BinOp>
class claraty::cl_binder2nd< BinOp >

Definition at line 70 of file functor.h.


Member Typedef Documentation

typedef BinOp::first_argument_type claraty::cl_unary_function< BinOp::first_argument_type , BinOp::result_type >::argument_type [inherited]

Definition at line 55 of file functor.h.

typedef BinOp::result_type claraty::cl_unary_function< BinOp::first_argument_type , BinOp::result_type >::result_type [inherited]

Definition at line 56 of file functor.h.


Constructor & Destructor Documentation

template<class BinOp>
claraty::cl_binder2nd< BinOp >::cl_binder2nd ( const BinOp &  x,
const typename BinOp::second_argument_type  v 
) [inline]

Definition at line 77 of file functor.h.

00078     : op(x), arg2(v) { }


Member Function Documentation

template<class BinOp>
BinOp::result_type claraty::cl_binder2nd< BinOp >::operator() ( const typename BinOp::first_argument_type &  x  )  const [inline]

Definition at line 80 of file functor.h.

References claraty::cl_binder2nd< BinOp >::arg2, and claraty::cl_binder2nd< BinOp >::op.

00080                                                                {
00081     return op(x, arg2);
00082   }


Member Data Documentation

template<class BinOp>
BinOp claraty::cl_binder2nd< BinOp >::op [protected]

Definition at line 74 of file functor.h.

Referenced by claraty::cl_binder2nd< BinOp >::operator()().

template<class BinOp>
BinOp::second_argument_type claraty::cl_binder2nd< BinOp >::arg2 [protected]

Definition at line 75 of file functor.h.

Referenced by claraty::cl_binder2nd< BinOp >::operator()().


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