RunnableClosure< T, A > Class Template Reference

An adapter object similar to RunnableDelegate that additionally takes an arbitrary argument which will be passed to the member function. More...

#include <Runnable.h++>

Inheritance diagram for RunnableClosure< T, A >:
Inheritance graph
[legend]

List of all members.

Public Member Functions

 RunnableClosure (T *object, void(T::*func)(A), A argument)
 Construct a new RunnableClosure which will call a method on another object with the given argument.
void run ()
 Entry point.

Detailed Description

template<class T, typename A>
class ccxx::RunnableClosure< T, A >

An adapter object similar to RunnableDelegate that additionally takes an arbitrary argument which will be passed to the member function.

Author:
Mark Lindner

Constructor & Destructor Documentation

RunnableClosure ( T *  object,
void(T::*)(A)  func,
argument 
) [inline]

Construct a new RunnableClosure which will call a method on another object with the given argument.

Parameters:
object The object.
func A member function (method) in the object which will be called by run().
argument The argument that will be passed to the member function.

Member Function Documentation

void run (  )  [inline, virtual]

Entry point.

Implements Runnable.


The documentation for this class was generated from the following file:
Generated on Sat Nov 26 16:49:09 2011 for libcommonc++ by  doxygen 1.6.3