proj home

Files   Classes   Functions   Hierarchy  

fnobj1Tfn< T, A0, A1 > Class Template Reference

Convert a member function with return type A0 and one argument to a functional object. More...

#include <fnobjTfn.h>

Inheritance diagram for fnobj1Tfn< T, A0, A1 >:
Collaboration diagram for fnobj1Tfn< T, A0, A1 >:

List of all members.

Public Types

typedef A0(T::* Fptr )(A1)

Public Member Functions

 fnobj1Tfn (T &data_, Fptr fn_)
A0 operator() (A1 arg1)

Public Attributes

Tdata
Fptr fn


Detailed Description

template<class T, class A0, class A1>
class fnobj1Tfn< T, A0, A1 >

Convert a member function with return type A0 and one argument to a functional object.

Example

Definition at line 62 of file fnobjTfn.h.


Member Typedef Documentation

template<class T, class A0, class A1>
typedef A0(T::* fnobj1Tfn< T, A0, A1 >::Fptr)(A1)


Constructor & Destructor Documentation

template<class T, class A0, class A1>
fnobj1Tfn< T, A0, A1 >::fnobj1Tfn ( T data_,
Fptr  fn_ 
) [inline]

Definition at line 70 of file fnobjTfn.h.

00071     : data(&data_), fn(fn_) {}


Member Function Documentation

template<class T, class A0, class A1>
A0 fnobj1Tfn< T, A0, A1 >::operator() ( A1  arg1  )  [inline, virtual]

Implements fnobj1< A0, A1 >.

Definition at line 73 of file fnobjTfn.h.

00074     { return (data->*fn)(arg1); }


Member Data Documentation

template<class T, class A0, class A1>
T* fnobj1Tfn< T, A0, A1 >::data

Definition at line 66 of file fnobjTfn.h.

Referenced by fnobj1Tfn< T, void, gobjContainer & >::operator()().

template<class T, class A0, class A1>
Fptr fnobj1Tfn< T, A0, A1 >::fn

Definition at line 68 of file fnobjTfn.h.

Referenced by fnobj1Tfn< T, void, gobjContainer & >::operator()().


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

Generated on Fri Mar 4 00:49:56 2011 for Chelton Evans Source by  doxygen 1.5.8