node_list Class Reference

#include <node_list.hxx>

Inherited by ResultSet, and TypeList.

Inheritance diagram for node_list:

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

Public Member Functions

 node_list (char **constants, int num_const)
 ~node_list ()
node * elementAt (int pos)
void append (node *nd)
void addUnique (node *nd)
node * find (node *nd)
void del (node *nd)
node * getHead ()
node * getTail ()
void setHead (node *n)
void setTail (node *n)
int length ()

Detailed Description

Utility class representing a generic double-linked list of nodes (instances of Ql_node)

Author:
Grigoris Karvounarakis
Version:
1.0


Constructor & Destructor Documentation

node_list::node_list ( char **  constants,
int  num_const 
)

Constructor

node_list::~node_list (  ) 

Destructor


Member Function Documentation

node * node_list::elementAt ( int  pos  ) 

Returns:
the element of the list at position pos

Reimplemented in ResultSet, and TypeList.

void node_list::append ( node *  nd  ) 

Appends the given node at the end of the list

void node_list::addUnique ( node *  nd  ) 

Appends the given node at the end of the list, only if there does not exist already an "equal" node

See also:
find(node *)

node * node_list::find ( node *  nd  ) 

Returns:
the node that is equal with the given node, or NULL if not found
See also:
node::equals(node *)

void node_list::del ( node *  nd  ) 

Searches for a node equal with the given node and deletes it

node* node_list::getHead (  )  [inline]

Returns:
the first element of the list

node* node_list::getTail (  )  [inline]

Returns:
the last element of the list

void node_list::setHead ( node *  n  )  [inline]

Set the first element of the list to n

void node_list::setTail ( node *  n  )  [inline]

Set the last element of the list to n

int node_list::length (  ) 

Returns:
the length of the list


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