Ql_varop Class Reference

#include <Ql_varop.hxx>

Inherits Ql_operation.

Inherited by Ql_nameop, and Ql_scanop.

Inheritance diagram for Ql_varop:

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

Public Member Functions

 Ql_varop (int, char *)
 ~Ql_varop ()
int same_var_name (Ql_varop **, int)
char * var_name ()
void current_id (unsigned i)
void current_scan_id (unsigned i)
unsigned current_id ()
unsigned current_scan_id ()

Detailed Description

Class Ql_varop is used for creating variables. There are two kind of variables that correspond to 2 subclasses of class Ql_varop: scan variables and name variables. Scan variables are used for designing the elements of a scan on a collection (they are further refined in other subclasses according to the type of the scan/collection). Named variables are used for naming operations inside an iteration. Variables are characterized by a name (v_var_name) and an identifier that identifies the current value of the variable and the current scan. This is used to know if an operation depending on the variable has to be re-evaluated or not (see the attribute "related_var_values" of class Ql_otherops).

Author:
Grigoris Karvounarakis
Version:
1.0


Constructor & Destructor Documentation

Ql_varop::Ql_varop ( int  n,
char *  v 
)

Construction of a var operation

Parameters:
n the name (code) of the operation
v the name of the variable

Ql_varop::~Ql_varop (  ) 

Destruction of a var operation


Member Function Documentation

int Ql_varop::same_var_name ( Ql_varop **  others,
int  size 
)

Checks if there is a var of same name in a list of vars

char* Ql_varop::var_name (  )  [inline]

Returns:
the name of "this" variable

void Ql_varop::current_id ( unsigned  i  )  [inline]

Set the current value of "this" variable (i.e. tuple number of the collection) to i

void Ql_varop::current_scan_id ( unsigned  i  )  [inline]

Set the current scan id to i

unsigned Ql_varop::current_id (  )  [inline]

Returns:
the current value of "this" variable (i.e. tuple number of the collection)

unsigned Ql_varop::current_scan_id (  )  [inline]

Returns:
the current scan


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