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

lemur::api::IndriFieldInfoList Class Reference

#include <IndriFieldInfoList.hpp>

Inheritance diagram for lemur::api::IndriFieldInfoList:

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

Public Member Functions

virtual ~IndriFieldInfoList ()
 IndriFieldInfoList ()
 C'tor - initializes a blank list.

 IndriFieldInfoList (const indri::utility::greedy_vector< indri::index::FieldExtent > &fields)
 C'tor - initializes a list with field extents.

void add (indri::index::FieldExtent newExtent)
 appends a new field entry at the end of the list

virtual void startIteration ()
 Prepare iteration.

virtual bool hasMore () const
 Has more entries.

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

virtual int size ()
 returns the number of FieldInfo elements in the list

virtual FieldInfooperator[] (int index)
 indexed access to the list


Protected Member Functions

virtual FieldInfogetElement (FieldInfo *elem, POS_T position) const
 Set element from position, returns pointer to the element.

virtual POS_T beginPosition () const
 Position at beginning of list.

virtual POS_T endPosition () const
 Position at end of list.

virtual POS_T nextPosition (POS_T position) const
 Advance to next position.


Protected Attributes

int _position
std::vector< lemur::api::FieldInfo_list
lemur::api::FieldInfo _currentInfo

Detailed Description

FieldInfo list class for Indri-style indexes


Constructor & Destructor Documentation

IndriFieldInfoList::~IndriFieldInfoList  )  [virtual]
 

IndriFieldInfoList::IndriFieldInfoList  ) 
 

C'tor - initializes a blank list.

C'tor / D'tor methods *

IndriFieldInfoList::IndriFieldInfoList const indri::utility::greedy_vector< indri::index::FieldExtent > &  fields  ) 
 

C'tor - initializes a list with field extents.


Member Function Documentation

void IndriFieldInfoList::add indri::index::FieldExtent  newExtent  ) 
 

appends a new field entry at the end of the list

public methods *

POS_T IndriFieldInfoList::beginPosition  )  const [protected, virtual]
 

Position at beginning of list.

Implements lemur::api::FieldInfoList.

POS_T IndriFieldInfoList::endPosition  )  const [protected, virtual]
 

Position at end of list.

Implements lemur::api::FieldInfoList.

FieldInfo * IndriFieldInfoList::getElement FieldInfo elem,
POS_T  position
const [protected, virtual]
 

Set element from position, returns pointer to the element.

protected methods *

Implements lemur::api::FieldInfoList.

bool IndriFieldInfoList::hasMore  )  const [virtual]
 

Has more entries.

Implements lemur::api::FieldInfoList.

lemur::api::FieldInfo * IndriFieldInfoList::nextEntry  )  const [virtual]
 

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

Implements lemur::api::FieldInfoList.

POS_T IndriFieldInfoList::nextPosition POS_T  position  )  const [protected, virtual]
 

Advance to next position.

Implements lemur::api::FieldInfoList.

lemur::api::FieldInfo * IndriFieldInfoList::operator[] int  index  )  [virtual]
 

indexed access to the list

Implements lemur::api::FieldInfoList.

int IndriFieldInfoList::size  )  [virtual]
 

returns the number of FieldInfo elements in the list

Implements lemur::api::FieldInfoList.

void IndriFieldInfoList::startIteration  )  [virtual]
 

Prepare iteration.

Implements lemur::api::FieldInfoList.


Member Data Documentation

lemur::api::FieldInfo lemur::api::IndriFieldInfoList::_currentInfo [protected]
 

std::vector<lemur::api::FieldInfo> lemur::api::IndriFieldInfoList::_list [protected]
 

int lemur::api::IndriFieldInfoList::_position [protected]
 


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