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

indri::index::BagList Class Reference

#include <IndriTermInfoList.hpp>

Inheritance diagram for indri::index::BagList:

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

Public Member Functions

 BagList (const class TermList *list)
 ~BagList ()
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
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.


Private Attributes

const class TermList_list
std::vector< std::pair< lemur::api::TERMID_T,
int > > 
_termCounts
lemur::api::TermInfo _info
int _position

Constructor & Destructor Documentation

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

indri::index::BagList::~BagList  ) 
 


Member Function Documentation

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

Position at beginning of list.

Implements lemur::api::TermInfoList.

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

Position at end of list.

Implements lemur::api::TermInfoList.

lemur::api::TermInfo * indri::index::BagList::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::BagList::hasMore  )  const [virtual]
 

Has more entries.

Implements lemur::api::TermInfoList.

lemur::api::TermInfo * indri::index::BagList::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::BagList::nextPosition lemur::api::POS_T  position  )  const [virtual]
 

Advance to next position.

Implements lemur::api::TermInfoList.

lemur::api::TermInfo * indri::index::BagList::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::BagList::size  )  [virtual]
 

Gets the number of entries in this list.

Implements lemur::api::TermInfoList.

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

Prepare iteration.

Implements lemur::api::TermInfoList.


Member Data Documentation

lemur::api::TermInfo indri::index::BagList::_info [private]
 

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

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

std::vector< std::pair<lemur::api::TERMID_T, int> > indri::index::BagList::_termCounts [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