#include <DocListMemoryBuilder.hpp>
Public Types | |
typedef DocListMemoryBuilderIterator | iterator |
Public Member Functions | |
DocListMemoryBuilder (indri::utility::RegionAllocator *allocator) | |
~DocListMemoryBuilder () | |
const DocListMemoryBuilder & | operator= (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 |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|