#include <Ql_baseop0.hxx>
Inherits Ql_otherops.
Inheritance diagram for Ql_baseop0:
Public Member Functions | |
| Ql_baseop0 (char *, int, Ql_baseop0 *) | |
| ~Ql_baseop0 () | |
| int | is_same (int n, char *id, Ql_baseop0 *ns) |
| int | is_equiv (Ql_operation *op, Ql_renaming *, Ql_iterop *) |
| int | type_infer (int, int *) |
| int | type_infer (Ql_argument *, int *) |
| char * | identifier () |
| int | evaluate () |
| Ql_baseop0::Ql_baseop0 | ( | char * | i, | |
| int | n, | |||
| Ql_baseop0 * | nsop | |||
| ) |
Construction of a baseop0 operation. Does not allocate new space for identifier.
| Ql_baseop0::~Ql_baseop0 | ( | ) |
Destruction of a baseop0 operation. Frees identifier
| int Ql_baseop0::is_same | ( | int | n, | |
| char * | id, | |||
| Ql_baseop0 * | ns | |||
| ) | [inline] |
| int Ql_baseop0::is_equiv | ( | Ql_operation * | op, | |
| Ql_renaming * | , | |||
| Ql_iterop * | ||||
| ) | [inline, virtual] |
| int Ql_baseop0::type_infer | ( | int | father_name, | |
| int * | error_code | |||
| ) |
This function performs type inference and evaluation of constant operations (i.e. class names, property names, metaclass names and atomic values)
| the | name of the father node in the query tree | |
| error_code | a placeholder, where an error code is put, in case of error |
| int Ql_baseop0::type_infer | ( | Ql_argument * | , | |
| int * | ||||
| ) | [inline] |
Dummy function ... always returns OK
| char* Ql_baseop0::identifier | ( | ) | [inline] |
| int Ql_baseop0::evaluate | ( | ) | [inline, virtual] |
Dummy function. Evaluation is done once and for all during type inference
Implements Ql_operation.
1.5.0