Tagcoll::MasterMMapIndex Class Reference

Performs the memory management and mmapping tasks for mmapped indexes. More...

#include <MMapIndex.h>

Inheritance diagram for Tagcoll::MasterMMapIndex:

Inheritance graph
[legend]
List of all members.

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

Detailed Description

Performs the memory management and mmapping tasks for mmapped indexes.

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.


Constructor & Destructor Documentation

MasterMMapIndex::MasterMMapIndex  ) 
 

MasterMMapIndex::MasterMMapIndex const std::string &  filename  ) 
 

MasterMMapIndex::~MasterMMapIndex  ) 
 


Member Function Documentation

void MasterMMapIndex::init const std::string &  filename  ) 
 


Friends And Related Function Documentation

friend class MMapIndex [friend]
 


Member Data Documentation

const char* Tagcoll::MasterMMapIndex::m_buf [protected]
 

int Tagcoll::MasterMMapIndex::m_fd [protected]
 

std::string Tagcoll::MasterMMapIndex::m_filename [protected]
 

size_t Tagcoll::MasterMMapIndex::m_size [protected]
 


The documentation for this class was generated from the following files:
Generated on Mon Jun 19 18:14:06 2006 for libtagcoll by  doxygen 1.4.6