#include <Ql_baseopn.hxx>
Inherits Ql_otherops.
Inheritance diagram for Ql_baseopn:
Public Member Functions | |
| Ql_baseopn (int n, Ql_operation **p, int a) | |
| virtual | ~Ql_baseopn () |
| int | arity () |
| void | arity (int i) |
| Ql_operation * | parameters (int i) |
| Ql_operation ** | parameters () |
| void | parameters (Ql_operation **p) |
| void | update_nesting_links () |
| int | has_params (Ql_operation **, int) |
| int | has_params_com (Ql_operation **, int) |
| virtual int | is_equiv (Ql_operation *, Ql_renaming *, Ql_iterop *) |
| int | type_infer (int *) |
| int | evaluate () |
| Ql_baseopn::Ql_baseopn | ( | int | n, | |
| Ql_operation ** | p, | |||
| int | a | |||
| ) |
Construction of a baseopn operation
| Ql_baseopn::~Ql_baseopn | ( | ) | [virtual] |
Destruction of a baseopn operation
| int Ql_baseopn::arity | ( | ) | [inline] |
| void Ql_baseopn::arity | ( | int | i | ) | [inline] |
Set the number of parameters of this operation to i
| Ql_operation* Ql_baseopn::parameters | ( | int | i | ) | [inline] |
| Ql_operation** Ql_baseopn::parameters | ( | ) | [inline] |
| void Ql_baseopn::parameters | ( | Ql_operation ** | p | ) | [inline] |
Set the array with the parameters of this operation to p
| void Ql_baseopn::update_nesting_links | ( | ) |
Update of the dependency links. A baseopn operation is nested in the most embedded iterator its parameters are nested in and depends on the variables belonging to this iterator and on which its parameters depend
| int Ql_baseopn::has_params | ( | Ql_operation ** | params, | |
| int | nb_params | |||
| ) |
Checks if "this" baseopn has the given parameters
| params | the array of parameters to compare with | |
| nb_params | the size of the given array |
| int Ql_baseopn::has_params_com | ( | Ql_operation ** | params, | |
| int | nb_params | |||
| ) |
Checks if "this" baseopn has the given parameters
| params | the array of parameters to compare with | |
| nb_params | the size of the given array |
| int Ql_baseopn::is_equiv | ( | Ql_operation * | op, | |
| Ql_renaming * | renaming, | |||
| Ql_iterop * | circle | |||
| ) | [virtual] |
Used when testing the equivalence of two iterators. (see Ql_algiterop::is_equiv(Ql_operation *, Ql_renaming *, Ql_iterop *) Checks the equivalence of two operations inside the main query (circle=NULL) or inside an iterator (circle<>NULL) according to a variable renaming. The rule says that outside the circle the operations must be strictly equal and that inside they must be equivalent (variables renaming).
| op | the operation to check equivalence with | |
| renaming | a variable renaming | |
| circle | the iterator in which we check the equivalence |
Implements Ql_operation.
| int Ql_baseopn::type_infer | ( | int * | error_code | ) |
This function performs type inference and assigns evaluation functions for baseopns
| error_code | a placeholder, where an error code is put, in case of error |
| int Ql_baseopn::evaluate | ( | ) | [virtual] |
Baseopn evaluation differs from other baseop: we do not evaluate all the parameters because it is not always necessary (and, or)
Implements Ql_operation.
1.5.0