rpa::mmap_ctrl::segment Class Reference

List of all members.

Public Member Functions

 segment (int aFilDes, off_t anOffset, size_t aLen)
 This simply maps a segment of memory and does not change the size.
 ~segment ()
 If an exception is thrown, the destructor unmaps the memory.
char * addr (void)
 Simply returns the beginning of the mapped memory.

Private Member Functions

 segment ()
 segment (const segment &)
segmentoperator= (const segment &)

Private Attributes

void * _addr
 The address of the mapped memory of this segment.
size_t _len

Detailed Description

This is necessary because the range to map may be too big, so it is split into several segment of files.


Constructor & Destructor Documentation

rpa::mmap_ctrl::segment::segment (  )  [private]

rpa::mmap_ctrl::segment::segment ( const segment  )  [private]

rpa::mmap_ctrl::segment::segment ( int  aFilDes,
off_t  anOffset,
size_t  aLen 
) [inline]

This simply maps a segment of memory and does not change the size.

rpa::mmap_ctrl::segment::~segment (  )  [inline]

If an exception is thrown, the destructor unmaps the memory.


Member Function Documentation

char* rpa::mmap_ctrl::segment::addr ( void   )  [inline]

Simply returns the beginning of the mapped memory.

segment& rpa::mmap_ctrl::segment::operator= ( const segment  )  [private]


Member Data Documentation

void* rpa::mmap_ctrl::segment::_addr [private]

The address of the mapped memory of this segment.

size_t rpa::mmap_ctrl::segment::_len [private]


The documentation for this class was generated from the following file:
Generated on Tue Sep 25 10:20:38 2007 for rpa by  doxygen 1.4.7