Ql_baseop0 Class Reference

#include <Ql_baseop0.hxx>

Inherits Ql_otherops.

Inheritance diagram for Ql_baseop0:

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

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 ()

Detailed Description

Class Ql_baseop0 concerns the base operations of arity 0 (valid RDF name (i.e. a class name) or atomic constants). They are mainly characterized by the fact that their result is always up-to-date. The identifier is used for an easier factorization at construction time.

Author:
Grigoris Karvounarakis
Version:
1.0


Constructor & Destructor Documentation

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


Member Function Documentation

int Ql_baseop0::is_same ( int  n,
char *  id,
Ql_baseop0 *  ns 
) [inline]

Returns:
true (1) if both baseop0s have the same name and identifier, false (0) otherwise

int Ql_baseop0::is_equiv ( Ql_operation *  op,
Ql_renaming *  ,
Ql_iterop *   
) [inline, virtual]

Returns:
true (1) if op is equal (pointer equality) to "this" baseop0

Implements Ql_operation.

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)

Parameters:
the name of the father node in the query tree
error_code a placeholder, where an error code is put, in case of error
Returns:
KO (1) if an error occured, OK (1) otherwise

int Ql_baseop0::type_infer ( Ql_argument *  ,
int *   
) [inline]

Dummy function ... always returns OK

char* Ql_baseop0::identifier (  )  [inline]

Returns:
the identifier of this baseop0

int Ql_baseop0::evaluate (  )  [inline, virtual]

Dummy function. Evaluation is done once and for all during type inference

Implements Ql_operation.


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