Follow this link to skip to the main content

claraty::cl_binder< UnaryOp > Class Template Reference

#include <functor.h>

Inheritance diagram for claraty::cl_binder< UnaryOp >:

Inheritance graph
[legend]
Collaboration diagram for claraty::cl_binder< UnaryOp >:

Collaboration graph
[legend]
List of all members.

Public Types

typedef UnaryOp::result_type result_type

Public Member Functions

 cl_binder (const UnaryOp &op, const typename UnaryOp::argument_type &arg)
UnaryOp::result_type operator() ()

Private Attributes

UnaryOp _op
UnaryOp::argument_type _arg

Detailed Description

template<class UnaryOp>
class claraty::cl_binder< UnaryOp >

Definition at line 92 of file functor.h.


Member Typedef Documentation

typedef UnaryOp::result_type claraty::cl_simple_function< UnaryOp::result_type >::result_type [inherited]

Definition at line 50 of file functor.h.


Constructor & Destructor Documentation

template<class UnaryOp>
claraty::cl_binder< UnaryOp >::cl_binder ( const UnaryOp &  op,
const typename UnaryOp::argument_type &  arg 
) [inline]

Definition at line 96 of file functor.h.

00097     : _op(op), _arg(arg) { }


Member Function Documentation

template<class UnaryOp>
UnaryOp::result_type claraty::cl_binder< UnaryOp >::operator() (  )  [inline]

Definition at line 98 of file functor.h.

References claraty::cl_binder< UnaryOp >::_arg, and claraty::cl_binder< UnaryOp >::_op.

00098 { return _op(_arg); }


Member Data Documentation

template<class UnaryOp>
UnaryOp claraty::cl_binder< UnaryOp >::_op [private]

Definition at line 93 of file functor.h.

Referenced by claraty::cl_binder< UnaryOp >::operator()().

template<class UnaryOp>
UnaryOp::argument_type claraty::cl_binder< UnaryOp >::_arg [private]

Definition at line 94 of file functor.h.

Referenced by claraty::cl_binder< UnaryOp >::operator()().


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