#include <MMapIndex.h>
Public Member Functions | |
MasterMMapIndexer (const std::string &filename) | |
~MasterMMapIndexer () | |
void | commit () |
Close the file and perform the final rename. | |
void | append (const MMapIndexer &idx) |
Append one subindex. | |
Protected Attributes | |
std::string | finalname |
std::string | tmpname |
int | fd |
It allows to write many indexes in the same file, atomically: the file will be created as a tempfile and atomically renamed to the destination filename on class destruction.
MasterMMapIndexer::MasterMMapIndexer | ( | const std::string & | filename | ) |
MasterMMapIndexer::~MasterMMapIndexer | ( | ) |
void MasterMMapIndexer::commit | ( | ) |
Close the file and perform the final rename.
void MasterMMapIndexer::append | ( | const MMapIndexer & | idx | ) |
Append one subindex.
std::string Tagcoll::MasterMMapIndexer::finalname [protected] |
std::string Tagcoll::MasterMMapIndexer::tmpname [protected] |
int Tagcoll::MasterMMapIndexer::fd [protected] |