rpa::present< ThreadTree, Ftor > Class Template Reference

Holds all the data needed to start a thread with a functor into it. More...

#include <synchro.h>

Inheritance diagram for rpa::present< ThreadTree, Ftor >:

rpa::spawn< ThreadTree, Ftor > List of all members.

Public Types

typedef ThreadTree::head_thread_type head_thread_type
typedef threadify_t< Ftor,
ThreadTree > 
trdfy_t
typedef trdfy_t::functor_type functor_type
typedef future< functor_type,
head_thread_type
future_type

Public Member Functions

 present (ThreadTree aThrTree, Ftor *ftorPtr)
 The sub-thread is started by the constructor of the future.

Public Attributes

head_thread_type_thrMain
 NOTE: Temporarily public only.
functor_type _subFtor

Friends

class spawn< ThreadTree, Ftor >

Detailed Description

template<class ThreadTree, class Ftor>
class rpa::present< ThreadTree, Ftor >

Holds all the data needed to start a thread with a functor into it.

One cannot do anything with this structure alone, it has to be used with 'spawn'. The point of 'present' is to wrap a functor and a thread tree, if the main thread is not void.


Member Typedef Documentation

template<class ThreadTree, class Ftor>
typedef trdfy_t::functor_type rpa::present< ThreadTree, Ftor >::functor_type

template<class ThreadTree, class Ftor>
typedef future< functor_type, head_thread_type > rpa::present< ThreadTree, Ftor >::future_type

Reimplemented in rpa::spawn< ThreadTree, Ftor >.

template<class ThreadTree, class Ftor>
typedef ThreadTree::head_thread_type rpa::present< ThreadTree, Ftor >::head_thread_type

template<class ThreadTree, class Ftor>
typedef threadify_t< Ftor, ThreadTree > rpa::present< ThreadTree, Ftor >::trdfy_t


Constructor & Destructor Documentation

template<class ThreadTree, class Ftor>
rpa::present< ThreadTree, Ftor >::present ( ThreadTree  aThrTree,
Ftor *  ftorPtr 
) [inline]

The sub-thread is started by the constructor of the future.

This constructor is used by algorithms, when their operator() receives a thread tree whose head thread is not void.


Friends And Related Function Documentation

template<class ThreadTree, class Ftor>
friend class spawn< ThreadTree, Ftor > [friend]


Member Data Documentation

template<class ThreadTree, class Ftor>
functor_type rpa::present< ThreadTree, Ftor >::_subFtor

template<class ThreadTree, class Ftor>
head_thread_type* rpa::present< ThreadTree, Ftor >::_thrMain

NOTE: Temporarily public only.


The documentation for this class was generated from the following file:
Generated on Tue Sep 25 10:20:38 2007 for rpa by  doxygen 1.4.7