Main Page   Modules   Namespace List   Class Hierarchy   Alphabetical List   Compound List   File List   Compound Members   File Members   Related Pages  

dsMmap Class Reference

#include <dsMmap.h>

Inheritance diagram for dsMmap:

dsMmapAnon dsZipMmap List of all members.

Public Methods

 dsMmap (const char *fname, const mode_t openmode=0444, const int advize=MADV_NORMAL)
 dsMmap (const int fd, const size_t size, const mode_t openmode=0444, const int advize=MADV_NORMAL)
 dsMmap ()
virtual ~dsMmap ()
int fd ()
char operator[] (int i)
void operator+= (int i)
 operator char * ()
 operator size_t ()
char * ptr ()
size_t size ()

Protected Methods

int getPageSize ()
virtual void mapCreate (const int fd, const size_t size, const mode_t openmode=0444, const int advize=MADV_NORMAL)
virtual void mapDestroy (bool close_fd=false)
virtual void mapResize (size_t new_size)
virtual void fileResize (size_t new_size)

Protected Attributes

int _fd
char * _filename
mode_t _mode
size_t _pagesize
size_t _pages
char * _ptr
size_t _size
int _advize
bool _close_fd

Friends

class dsMmapStreambuf

Detailed Description

C++ interface to mmap()


Constructor & Destructor Documentation

dsMmap::dsMmap const char *    fname,
const mode_t    openmode = 0444,
const int    advize = MADV_NORMAL
 

dsMmap::dsMmap const int    fd,
const size_t    size,
const mode_t    openmode = 0444,
const int    advize = MADV_NORMAL
 

dsMmap::dsMmap  
 

dsMmap::~dsMmap   [virtual]
 


Member Function Documentation

int dsMmap::fd   [inline]
 

void dsMmap::fileResize size_t    new_size [protected, virtual]
 

int dsMmap::getPageSize   [protected]
 

void dsMmap::mapCreate const int    fd,
const size_t    size,
const mode_t    openmode = 0444,
const int    advize = MADV_NORMAL
[protected, virtual]
 

void dsMmap::mapDestroy bool    close_fd = false [protected, virtual]
 

void dsMmap::mapResize size_t    new_size [protected, virtual]
 

Reimplemented in dsMmapAnon.

dsMmap::operator char *   [inline]
 

dsMmap::operator size_t   [inline]
 

void dsMmap::operator+= int    i [inline]
 

char dsMmap::operator[] int    i [inline]
 

char* dsMmap::ptr   [inline]
 

size_t dsMmap::size   [inline]
 


Friends And Related Function Documentation

friend class dsMmapStreambuf [friend]
 


Member Data Documentation

int dsMmap::_advize [protected]
 

bool dsMmap::_close_fd [protected]
 

int dsMmap::_fd [protected]
 

char* dsMmap::_filename [protected]
 

mode_t dsMmap::_mode [protected]
 

size_t dsMmap::_pages [protected]
 

size_t dsMmap::_pagesize [protected]
 

char* dsMmap::_ptr [protected]
 

size_t dsMmap::_size [protected]
 


The documentation for this class was generated from the following files:
Generated on Mon May 16 18:27:00 2005 for libdms4 by doxygen1.3-rc2