Main Page   Class Hierarchy   Compound List   File List   Compound Members   File Members  

Threaded< T > Class Template Reference

Inherits Thread.

List of all members.


Detailed Description

template<class T>
class Threaded< T >

A Thread of control for an object with a run() method.

A Threaded<T> is a Thread that is also a T. When the Thread is run, the T's run() method is invoked. For example:

 Threaded<IOEventLoop> loop;
 loop.start();   // Runs the event loop in a separate Thread


Public Methods

 Threaded ()
 Threaded (const char *ch)
template<class A1>  Threaded (A1 &a1)
template<class A1, class A2>  Threaded (A1 &a1, A2 &a2)
template<class A1, class A2, class A3>  Threaded (A1 &a1, A2 &a2, A3 &a3)

Protected Methods

virtual void run ()


Constructor & Destructor Documentation

template<class T>
Threaded< T >::Threaded  
 

template<class T>
Threaded< T >::Threaded const char *    ch
 

template<class T>
template<class A1>
Threaded< T >::Threaded A1 &    a1
 

template<class T>
template<class A1, class A2>
Threaded< T >::Threaded A1 &    a1,
A2 &    a2
 

template<class T>
template<class A1, class A2, class A3>
Threaded< T >::Threaded A1 &    a1,
A2 &    a2,
A3 &    a3
 


Member Function Documentation

template<class T>
virtual void Threaded< T >::run   [protected, virtual]
 

Implements Thread.


The documentation for this class was generated from the following file:
Generated on Fri Dec 20 13:35:11 2002 for NMSTL