|
ContRap-Core
|
Class EvalThread is a thread, which evaluates an expression. More...
#include <thread.h>
Public Member Functions | |
| EvalThread (const DPtr &object, const SPtr< Scope > &scope, Engine *engine, WaitCondition *condition) | |
| Creates a new thread class instance. | |
| virtual | ~EvalThread () |
| Cleans up the memory. | |
| virtual void | run () |
| Threads run function. | |
| DPtr | get_result () |
| Returns the result. | |
| double | get_time () |
| Returns the execution time. | |
Protected Attributes | |
| DPtr | object |
| Input object. | |
| Engine * | engine |
| Engine. | |
| SPtr< Scope > | scope |
| Evaluation scope. | |
| WaitCondition * | condition |
| Wait condition. | |
| DPtr | result |
| Result. | |
| double | elapsed |
| Elapsed time. | |
Class EvalThread is a thread, which evaluates an expression.
| crp::EvalThread::EvalThread | ( | const DPtr & | object, |
| const SPtr< Scope > & | scope, | ||
| Engine * | engine, | ||
| WaitCondition * | condition | ||
| ) |
Creates a new thread class instance.
| object | Object to evaluate |
| engine | Evaluation engine |
| scope | Evaluation scope |
| condition | Wait condition satisfied on success |
| virtual crp::EvalThread::~EvalThread | ( | ) | [virtual] |
Cleans up the memory.
| DPtr crp::EvalThread::get_result | ( | ) | [inline] |
Returns the result.
| double crp::EvalThread::get_time | ( | ) | [inline] |
Returns the execution time.
| virtual void crp::EvalThread::run | ( | ) | [virtual] |
Threads run function.
Implements crp::Thread.
WaitCondition* crp::EvalThread::condition [protected] |
Wait condition.
double crp::EvalThread::elapsed [protected] |
Elapsed time.
Engine* crp::EvalThread::engine [protected] |
DPtr crp::EvalThread::object [protected] |
Input object.
DPtr crp::EvalThread::result [protected] |
Result.
SPtr<Scope> crp::EvalThread::scope [protected] |
Evaluation scope.
1.7.3