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

lemur::retrieval::QnList Class Reference

List of query nodes which constitute the one level of a structured query parse tree. More...

#include <QueryNode.hpp>

List of all members.

Public Member Functions

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

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

QueryNodenextNode ()
 return the next element from the list.

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

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

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

QueryNodepopNode ()
 remove an elt and return it (allows moving from list to list).


Private 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

lemur::retrieval::QnList::QnList  )  [inline]
 

lemur::retrieval::QnList::~QnList  ) 
 


Member Function Documentation

const QueryNode* lemur::retrieval::QnList::getNode int  j  )  const [inline]
 

return the i'th element of the list.

bool lemur::retrieval::QnList::hasMore  )  [inline]
 

are there any more elements in the list.

QueryNode* lemur::retrieval::QnList::nextNode  )  [inline]
 

return the next element from the list.

QueryNode* lemur::retrieval::QnList::popNode  )  [inline]
 

remove an elt and return it (allows moving from list to list).

void lemur::retrieval::QnList::push_back QueryNode qn  )  [inline]
 

Add a new element to the back of the list.

int lemur::retrieval::QnList::size  )  const [inline]
 

return the number of elements in the list.

void lemur::retrieval::QnList::startIteration  )  [inline]
 

initialize for iteration.


Member Data Documentation

int lemur::retrieval::QnList::i [mutable, private]
 

index counter for iteration.

vector<QueryNode *> lemur::retrieval::QnList::qnList [private]
 

the actual vector of QueryNodes.


The documentation for this class was generated from the following files:
Generated on Tue Jun 15 11:03:06 2010 for Lemur by doxygen 1.3.4