#include <MTqueue.hh>
Public Methods | |
| MTjobbase_ () | |
| default ctor. | |
| MTjobbase_ (const MTjobbase_ &Jb) | |
| copy ctor. | |
| virtual | ~MTjobbase_ () |
| dtor. | |
| virtual void* | task ()=0 |
| task(): this virtual method shall carry out all computations in the thread that got the job. More... | |
| double | complexity () const |
| complexity([C]): returns [sets] a measure of the task complexity [to C]. More... | |
| bool | operator< (const MTjobbase_ &Rhs) const |
| comparison operator required by the job queue. | |
Protected Methods | |
| void | complexity (double C) |
| Sets the complexity of the job to C. | |
Private Attributes | |
| double | Complexity |
| some sort of measure of the complexity of the task. | |
The derived objects shall define the methods for carrying out the task and a measure for calculation complexity for setting up a priority queue for jobs. The class of user job objects must always be derived from MTjobbase_.
Definition at line 51 of file MTqueue.hh.
|
|
default ctor.
Definition at line 62 of file MTqueue.hh. |
|
|
copy ctor.
Definition at line 65 of file MTqueue.hh. |
|
|
dtor.
Definition at line 68 of file MTqueue.hh. |
|
|
task(): this virtual method shall carry out all computations in the thread that got the job. All necessary data shall be member variables of the job class derived from MTjobbase_, no extra parameters are accepted. The method may choose to return information pointed to by this dirty void*, or (this is preferred) the derived job class shall be laid out so that the return info is also contained in it. |
|
|
complexity([C]): returns [sets] a measure of the task complexity [to C]. [Only derived classes may set this value.] Definition at line 91 of file MTqueue.hh. Referenced by operator<(). |
|
|
comparison operator required by the job queue.
Definition at line 94 of file MTqueue.hh. |
|
|
Sets the complexity of the job to C.
Definition at line 103 of file MTqueue.hh. |
|
|
some sort of measure of the complexity of the task.
Definition at line 56 of file MTqueue.hh. |
1.2.6 written by Dimitri van Heesch,
© 1997-2001