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

indri::index::PositionList Class Reference

#include <IndriTermInfoList.hpp>

Inheritance diagram for indri::index::PositionList:

lemur::api::TermInfoList List of all members.

Public Member Functions

 PositionList (const class TermList *list)
 ~PositionList ()
lemur::api::TermInfonewElement ()
void assignElement (lemur::api::TermInfo *to, lemur::api::TermInfo *from)
lemur::api::TermInfogetElement (lemur::api::TermInfo *elem, lemur::api::POS_T position) const
 Set element from position, returns pointer to the element.

lemur::api::POS_T beginPosition () const
 Position at beginning of list.

lemur::api::POS_T endPosition () const
 Position at end of list.

lemur::api::POS_T nextPosition (lemur::api::POS_T position) const
 Advance to next position.

void startIteration () const
 Prepare iteration.

bool hasMore () const
 Has more entries.

lemur::api::TermInfonextEntry () const
 Get a pointer to the next entry (pointer to a local static memory), so do not delete it.

virtual int size ()
 Gets the number of entries in this list.

virtual lemur::api::TermInfooperator[] (int index) const

Private Attributes

const class TermList_list
PositionInfo _info
int _position

Constructor & Destructor Documentation

indri::index::PositionList::PositionList const class TermList list  ) 
 

indri::index::PositionList::~PositionList  ) 
 


Member Function Documentation

void indri::index::PositionList::assignElement lemur::api::TermInfo to,
lemur::api::TermInfo from
 

lemur::api::POS_T indri::index::PositionList::beginPosition  )  const [virtual]
 

Position at beginning of list.

Implements lemur::api::TermInfoList.

lemur::api::POS_T indri::index::PositionList::endPosition  )  const [virtual]
 

Position at end of list.

Implements lemur::api::TermInfoList.

lemur::api::TermInfo * indri::index::PositionList::getElement lemur::api::TermInfo elem,
lemur::api::POS_T  position
const [virtual]
 

Set element from position, returns pointer to the element.

Implements lemur::api::TermInfoList.

bool indri::index::PositionList::hasMore  )  const [virtual]
 

Has more entries.

Implements lemur::api::TermInfoList.

lemur::api::TermInfo * indri::index::PositionList::newElement  ) 
 

lemur::api::TermInfo * indri::index::PositionList::nextEntry  )  const [virtual]
 

Get a pointer to the next entry (pointer to a local static memory), so do not delete it.

Implements lemur::api::TermInfoList.

lemur::api::POS_T indri::index::PositionList::nextPosition lemur::api::POS_T  position  )  const [virtual]
 

Advance to next position.

Implements lemur::api::TermInfoList.

lemur::api::TermInfo * indri::index::PositionList::operator[] int  index  )  const [virtual]
 

indexed access to the list. Also sets the iterator to the next item after or to the end if invalid.

Implements lemur::api::TermInfoList.

int indri::index::PositionList::size  )  [virtual]
 

Gets the number of entries in this list.

Implements lemur::api::TermInfoList.

void indri::index::PositionList::startIteration  )  const [virtual]
 

Prepare iteration.

Implements lemur::api::TermInfoList.


Member Data Documentation

PositionInfo indri::index::PositionList::_info [private]
 

const class TermList* indri::index::PositionList::_list [private]
 

int indri::index::PositionList::_position [private]
 


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