node Class Reference

#include <node.hxx>

Inherited by Ql_res, and Ql_type.

Inheritance diagram for node:

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

Public Member Functions

 node ()
 node (Ql_kind k)
 ~node ()
node * next ()
void next (node *n)
node * prev ()
void prev (node *n)
Ql_kind kind ()
void kind (Ql_kind k)
virtual int equals (node *nd)=0
char * kind2string ()
char * kind2pg_type ()
int union_marker ()

Detailed Description

Utility class, representing a generic node in a double-linked list, with a "kind" field (used by subclasses Ql_type, Ql_res)

Author:
Grigoris Karvounarakis
Version:
1.0


Constructor & Destructor Documentation

node::node (  ) 

"Default" constructor

node::node ( Ql_kind  k  ) 

Constructor that sets the kind of this node to k

node::~node (  ) 

Destructor


Member Function Documentation

node * node::next (  ) 

Returns:
the next node in the list

void node::next ( node *  n  ) 

Set the next node in the list to n

node * node::prev (  ) 

Returns:
the previous node in the list

void node::prev ( node *  n  ) 

Set the previous node in the list to n

Ql_kind node::kind (  ) 

Returns:
the kind of this node

void node::kind ( Ql_kind  k  ) 

set the kind of this node

virtual int node::equals ( node *  nd  )  [pure virtual]

Virtual method, should be defined for each subclass

Implemented in Ql_res, and Ql_type.

char * node::kind2string (  ) 

Returns:
a string representation of the kind of "this" node

char * node::kind2pg_type (  ) 

Returns:
the postgresql type identifier that is equivalent to the kind of "this" node

int node::union_marker (  ) 

The integer marker used to identify the kind of this node if we need to store it as a union value


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