#include <StringIndex.h>
Inheritance diagram for Tagcoll::StringIndexer:
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 |
|
Write the index data in the given buffer, which should be at least encodedSize bytes.
Implements Tagcoll::MMapIndexer. |
|
Return the size of the encoded index data.
Implements Tagcoll::MMapIndexer. |
|
Store the key->val mapping into the indexer.
|
|
Convert a single item.
Implements Tagcoll::Converter< std::string, int >. |
|
Convert a single item.
Implements Tagcoll::Converter< int, std::string >. |
|
|