Tagcoll::StringIndexer Class Reference

Creates an on-disk index to use for IntIndex. More...

#include <StringIndex.h>

Inheritance diagram for Tagcoll::StringIndexer:

Inheritance graph
[legend]
Collaboration diagram for Tagcoll::StringIndexer:

Collaboration graph
[legend]
List of all members.

Public Member Functions

virtual std::string operator() (const int &item) const
 Convert a single item.
virtual int operator() (const std::string &item) const
 Convert a single item.
void map (const std::string &str)
 Store the key->val mapping into the indexer.
int encodedSize () const
 Return the size of the encoded index data.
void encode (char *buf) const
 Write the index data in the given buffer, which should be at least encodedSize bytes.

Protected Attributes

std::vector< std::string > data

Detailed Description

Creates an on-disk index to use for IntIndex.


Member Function Documentation

virtual std::string Tagcoll::StringIndexer::operator() ( const int &  item  )  const [inline, virtual]

Convert a single item.

Implements Tagcoll::Converter< int, std::string >.

int StringIndexer::operator() ( const std::string &  item  )  const [virtual]

Convert a single item.

Implements Tagcoll::Converter< std::string, int >.

void StringIndexer::map ( const std::string &  str  ) 

Store the key->val mapping into the indexer.

int StringIndexer::encodedSize (  )  const [virtual]

Return the size of the encoded index data.

Implements Tagcoll::MMapIndexer.

void StringIndexer::encode ( char *  buf  )  const [virtual]

Write the index data in the given buffer, which should be at least encodedSize bytes.

Implements Tagcoll::MMapIndexer.


Member Data Documentation

std::vector<std::string> Tagcoll::StringIndexer::data [protected]


The documentation for this class was generated from the following files:
Generated on Sat Jan 17 04:00:09 2009 for libtagcoll by  doxygen 1.5.1