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

dsMmapAnon Class Reference

#include <dsMmap.h>

Inheritance diagram for dsMmapAnon:

dsMmap dsZipMmap List of all members.

Public Methods

 dsMmapAnon ()
 dsMmapAnon (const size_t size, const int advize=MADV_NORMAL)
 ~dsMmapAnon ()
void mapCreate (const size_t size, const int advize=MADV_NORMAL)
void mapResize (size_t newsize)
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 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


class dsMmapStreambuf

Constructor & Destructor Documentation


dsMmapAnon::dsMmapAnon const size_t    size,
const int    advize = MADV_NORMAL


Member Function Documentation

int dsMmap::fd   [inline, inherited]

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

int dsMmap::getPageSize   [protected, inherited]

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

void dsMmapAnon::mapCreate const size_t    size,
const int    advize = MADV_NORMAL

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

void dsMmapAnon::mapResize size_t    newsize [virtual]

Reimplemented from dsMmap.

dsMmap::operator char *   [inline, inherited]

dsMmap::operator size_t   [inline, inherited]

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

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

char* dsMmap::ptr   [inline, inherited]

size_t dsMmap::size   [inline, inherited]

Friends And Related Function Documentation

friend class dsMmapStreambuf [friend, inherited]

Member Data Documentation

int dsMmap::_advize [protected, inherited]

bool dsMmap::_close_fd [protected, inherited]

int dsMmap::_fd [protected, inherited]

char* dsMmap::_filename [protected, inherited]

mode_t dsMmap::_mode [protected, inherited]

size_t dsMmap::_pages [protected, inherited]

size_t dsMmap::_pagesize [protected, inherited]

char* dsMmap::_ptr [protected, inherited]

size_t dsMmap::_size [protected, inherited]

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