ContRap-Core
Public Member Functions | Protected Attributes

crp::EvalThread Class Reference

Class EvalThread is a thread, which evaluates an expression. More...

#include <thread.h>

Inheritance diagram for crp::EvalThread:
crp::Thread

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.
Engineengine
 Engine.
SPtr< Scopescope
 Evaluation scope.
WaitConditioncondition
 Wait condition.
DPtr result
 Result.
double elapsed
 Elapsed time.

Detailed Description

Class EvalThread is a thread, which evaluates an expression.


Constructor & Destructor Documentation

crp::EvalThread::EvalThread ( const DPtr object,
const SPtr< Scope > &  scope,
Engine engine,
WaitCondition condition 
)

Creates a new thread class instance.

Parameters:
objectObject to evaluate
engineEvaluation engine
scopeEvaluation scope
conditionWait condition satisfied on success
virtual crp::EvalThread::~EvalThread ( ) [virtual]

Cleans up the memory.


Member Function Documentation

DPtr crp::EvalThread::get_result ( ) [inline]

Returns the result.

Returns:
Result of the computation
double crp::EvalThread::get_time ( ) [inline]

Returns the execution time.

Returns:
Execution time
virtual void crp::EvalThread::run ( ) [virtual]

Threads run function.

Implements crp::Thread.


Field Documentation

Wait condition.

double crp::EvalThread::elapsed [protected]

Elapsed time.

Input object.

Result.

Evaluation scope.


The documentation for this class was generated from the following file: