Ql_nameop Class Reference

#include <Ql_nameop.hxx>

Inherits Ql_varop.

Inheritance diagram for Ql_nameop:

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

Public Member Functions

 Ql_nameop (int, char *, Ql_operation *, int)
int is_equiv (Ql_operation *, Ql_renaming *, Ql_iterop *)
Ql_operation * definition ()
int type_infer (int *)
int evaluate ()
int assigned_var ()

Detailed Description

Class Ql_nameop is used to assign a name to an operation. Some They are never evaluated because it is their definition that is given to the operation invoking them and not the variable itself.


Constructor & Destructor Documentation

Ql_nameop::Ql_nameop ( int  n,
char *  v,
Ql_operation *  def,
int  assigned 
)

Construction of a nameop operation

Parameters:
n the name (code) of this operation
v the name of this variable
def the definition operation
assigned true (1) if this nameop is assigned a definition (i.e. if def <> NULL)


Member Function Documentation

int Ql_nameop::is_equiv ( Ql_operation *  op,
Ql_renaming *  renaming,
Ql_iterop *  circle 
) [virtual]

Used when testing the equivalence of two iterators. Checks the equivalence of two operations the first of which is a nameop. Applied inside an iterator (circle) in which the scan vars are possibly renamed

Parameters:
op the operation to check equivalence with
renaming a variable renaming
circle the iterator in which we check the equivalence

Implements Ql_operation.

Ql_operation* Ql_nameop::definition (  )  [inline]

Returns:
the definition operation of this named variable

int Ql_nameop::type_infer ( int *  error_code  ) 

Type inference for nameops. Copy the type of the definition operation

int Ql_nameop::evaluate (  )  [virtual]

Virtual method, implemented for each of the more specific subclasses of Ql_operation

Implements Ql_operation.

int Ql_nameop::assigned_var (  )  [inline]

Returns:
true (1) if this variable has been assigned a definition


The documentation for this class was generated from the following files:
Generated on Thu Oct 26 17:13:01 2006 for rql by  doxygen 1.5.0