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

indri::index::DocListMemoryBuilder Class Reference

#include <DocListMemoryBuilder.hpp>

List of all members.

Public Types

typedef DocListMemoryBuilderIterator iterator

Public Member Functions

 DocListMemoryBuilder (indri::utility::RegionAllocator *allocator)
 ~DocListMemoryBuilder ()
const DocListMemoryBuilderoperator= (DocListMemoryBuilder &other)
void startDocument (int docID)
void addLocation (int location)
void endDocument ()
void clear ()
void flush ()
bool empty ()
int documentFrequency () const
int termFrequency () const
size_t memorySize () const

Private Member Functions

void _safeAddLocation (int position)
size_t _roundUp (size_t amount)
void _grow ()
void _terminateDocument ()

Private Attributes

int _documentFrequency
int _termFrequency
indri::utility::greedy_vector<
DocListMemoryBuilderSegment, 4 > 
_lists
char * _list
char * _listBegin
char * _listEnd
char * _documentPointer
char * _locationCountPointer
int _lastLocation
int _lastDocument
int _lastTermFrequency
indri::utility::RegionAllocator_allocator

Friends

class DocListMemoryBuilderIterator


Member Typedef Documentation

typedef DocListMemoryBuilderIterator indri::index::DocListMemoryBuilder::iterator
 


Constructor & Destructor Documentation

indri::index::DocListMemoryBuilder::DocListMemoryBuilder indri::utility::RegionAllocator allocator  ) 
 

indri::index::DocListMemoryBuilder::~DocListMemoryBuilder  ) 
 


Member Function Documentation

void indri::index::DocListMemoryBuilder::_grow  )  [private]
 

size_t indri::index::DocListMemoryBuilder::_roundUp size_t  amount  )  [private]
 

void indri::index::DocListMemoryBuilder::_safeAddLocation int  position  )  [inline, private]
 

void indri::index::DocListMemoryBuilder::_terminateDocument  )  [inline, private]
 

void indri::index::DocListMemoryBuilder::addLocation int  location  ) 
 

void indri::index::DocListMemoryBuilder::clear  ) 
 

int indri::index::DocListMemoryBuilder::documentFrequency  )  const
 

bool indri::index::DocListMemoryBuilder::empty  ) 
 

void indri::index::DocListMemoryBuilder::endDocument  ) 
 

void indri::index::DocListMemoryBuilder::flush  ) 
 

size_t indri::index::DocListMemoryBuilder::memorySize  )  const
 

const DocListMemoryBuilder& indri::index::DocListMemoryBuilder::operator= DocListMemoryBuilder other  ) 
 

void indri::index::DocListMemoryBuilder::startDocument int  docID  ) 
 

int indri::index::DocListMemoryBuilder::termFrequency  )  const
 


Friends And Related Function Documentation

friend class DocListMemoryBuilderIterator [friend]
 


Member Data Documentation

indri::utility::RegionAllocator* indri::index::DocListMemoryBuilder::_allocator [private]
 

int indri::index::DocListMemoryBuilder::_documentFrequency [private]
 

char* indri::index::DocListMemoryBuilder::_documentPointer [private]
 

int indri::index::DocListMemoryBuilder::_lastDocument [private]
 

int indri::index::DocListMemoryBuilder::_lastLocation [private]
 

int indri::index::DocListMemoryBuilder::_lastTermFrequency [private]
 

char* indri::index::DocListMemoryBuilder::_list [private]
 

char* indri::index::DocListMemoryBuilder::_listBegin [private]
 

char* indri::index::DocListMemoryBuilder::_listEnd [private]
 

indri::utility::greedy_vector< DocListMemoryBuilderSegment, 4 > indri::index::DocListMemoryBuilder::_lists [private]
 

char* indri::index::DocListMemoryBuilder::_locationCountPointer [private]
 

int indri::index::DocListMemoryBuilder::_termFrequency [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