#include <MMapIndex.h>
Inheritance diagram for Tagcoll::MasterMMapIndex:

Public Member Functions | |
| MasterMMapIndex () | |
| MasterMMapIndex (const std::string &filename) | |
| ~MasterMMapIndex () | |
| void | init (const std::string &filename) |
Protected Attributes | |
| std::string | m_filename |
| size_t | m_size |
| int | m_fd |
| const char * | m_buf |
Friends | |
| class | MMapIndex |
One MMap can contain many indexes. Indexes come chained one after the other, prefixed by an int that specifies their length:
[size of index 1][index1][size of index 2][index]...
Every index must make sure that its size is int-aligned, otherwise accessing it would cause a bus error in many architectures.
| MasterMMapIndex::MasterMMapIndex | ( | ) |
| MasterMMapIndex::MasterMMapIndex | ( | const std::string & | filename | ) |
| MasterMMapIndex::~MasterMMapIndex | ( | ) |
| void MasterMMapIndex::init | ( | const std::string & | filename | ) |
friend class MMapIndex [friend] |
std::string Tagcoll::MasterMMapIndex::m_filename [protected] |
size_t Tagcoll::MasterMMapIndex::m_size [protected] |
int Tagcoll::MasterMMapIndex::m_fd [protected] |
const char* Tagcoll::MasterMMapIndex::m_buf [protected] |
1.5.1