Main Page   Namespace List   Class Hierarchy   Compound List   File List   Namespace Members   Compound Members   File Members   Related Pages  

QnList Class Reference

#include <StructQueryRep.hpp>

List of all members.

Public Methods

 QnList ()
virtual ~QnList ()
virtual void startIteration ()
 initialize for iteration.

virtual bool hasMore ()
 are there any more elements in the list.

virtual QueryNodenextNode ()
 return the next element from the list.

virtual QueryNodegetNode (int i)
 return the i'th element of the list.

virtual int size ()
 return the number of elements in the list.

virtual void push_back (QueryNode *qn)
 Add a new element to the back of the list.


Protected Attributes

int i
 index counter for iteration.

vector< QueryNode * > qnList
 the actual vector of QueryNodes.


Detailed Description

List of query nodes which constitute the one level of a structured query parse tree. Provides iteration and random access of individual list elements by index.


Constructor & Destructor Documentation

QnList::QnList   [inline]
 

QnList::~QnList   [virtual]
 


Member Function Documentation

virtual QueryNode* QnList::getNode int    i [inline, virtual]
 

return the i'th element of the list.

virtual bool QnList::hasMore   [inline, virtual]
 

are there any more elements in the list.

virtual QueryNode* QnList::nextNode   [inline, virtual]
 

return the next element from the list.

virtual void QnList::push_back QueryNode   qn [inline, virtual]
 

Add a new element to the back of the list.

virtual int QnList::size   [inline, virtual]
 

return the number of elements in the list.

virtual void QnList::startIteration   [inline, virtual]
 

initialize for iteration.


Member Data Documentation

int QnList::i [protected]
 

index counter for iteration.

vector<QueryNode *> QnList::qnList [protected]
 

the actual vector of QueryNodes.


The documentation for this class was generated from the following files:
Generated on Mon Sep 30 14:14:16 2002 for LEMUR by doxygen1.2.18