Ql_otherops Class Reference

#include <Ql_otherops.hxx>

Inherits Ql_operation.

Inherited by Ql_baseop0, Ql_baseop1, Ql_baseop2, Ql_baseopn, and Ql_iterop.

Inheritance diagram for Ql_otherops:

[legend]
Collaboration diagram for Ql_otherops:
[legend]
List of all members.

Public Member Functions

 Ql_otherops (int)
virtual ~Ql_otherops ()
int is_outdated ()
void initialize_related_vars ()

Protected Attributes

unsigned * v_related_var_elts
unsigned * v_related_var_scans
unsigned v_constant_op_is_evaluated

Detailed Description

Class Ql_otherops concerns all the operations that are not scan operations. The variable related_var_values and the function is_outdated are used to check the stored result validity. The stored result is valid if the current values of the operation dependency variables are identical to the ones that were used for its evaluation. This way, we avoid 2 evaluations of the same operation while keeping a lazy evaluation mechanism. This class has no direct instances.

Author:
Grigoris Karvounarakis
Version:
1.0


Constructor & Destructor Documentation

Ql_otherops::Ql_otherops ( int  n  ) 

Construction of an operation

Ql_otherops::~Ql_otherops (  )  [virtual]

Destruction of an operation


Member Function Documentation

int Ql_otherops::is_outdated (  ) 

Function that checks if an operation has to be evaluated or if its stored result is up-to-date

void Ql_otherops::initialize_related_vars (  ) 

Initialization of the variables indicating the scans and scan elts that were used for the last evaluation


Member Data Documentation

unsigned* Ql_otherops::v_related_var_elts [protected]

Value of vars used for the evaluation

unsigned* Ql_otherops::v_related_var_scans [protected]

Scans in which evaluation was performed

unsigned Ql_otherops::v_constant_op_is_evaluated [protected]

When no dependency, says if evaluation has been performed


The documentation for this class was generated from the following files:
Generated on Thu Oct 26 16:42:10 2006 for rul by  doxygen 1.5.0