aswang  1.0
Classes | Public Member Functions
aswang::ThreadFunc< Class, Arg > Class Template Reference

Template class which spawns a thread and executes a function on a given class pointer. More...

#include <ThreadFunc.h>

List of all members.

Classes

struct  func_arg
struct  func_base
struct  func_noarg

Public Member Functions

 ThreadFunc (Class *c, void(Class::*p)())
 ThreadFunc (Class *c, void(Class::*p)(Arg), Arg a=0)
 ~ThreadFunc ()
void operator() ()
void operator() (Arg p)

Detailed Description

template<typename Class, typename Arg = void *>
class aswang::ThreadFunc< Class, Arg >

Template class which spawns a thread and executes a function on a given class pointer.

The called member function may optionally take one argument determined by the second template parameter. All "ThreadFuncs" return void.

Definition at line 37 of file ThreadFunc.h.


Constructor & Destructor Documentation

template<typename Class, typename Arg = void *>
aswang::ThreadFunc< Class, Arg >::ThreadFunc ( Class *  c,
void(Class::*)()  p 
) [inline]

Definition at line 90 of file ThreadFunc.h.

template<typename Class, typename Arg = void *>
aswang::ThreadFunc< Class, Arg >::ThreadFunc ( Class *  c,
void(Class::*)(Arg)  p,
Arg  a = 0 
) [inline]

Definition at line 91 of file ThreadFunc.h.

template<typename Class, typename Arg = void *>
aswang::ThreadFunc< Class, Arg >::~ThreadFunc ( ) [inline]

Definition at line 92 of file ThreadFunc.h.


Member Function Documentation

template<typename Class, typename Arg = void *>
void aswang::ThreadFunc< Class, Arg >::operator() ( ) [inline]

Definition at line 96 of file ThreadFunc.h.

template<typename Class, typename Arg = void *>
void aswang::ThreadFunc< Class, Arg >::operator() ( Arg  p) [inline]

Definition at line 101 of file ThreadFunc.h.


The documentation for this class was generated from the following file:
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Defines