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

LOW_sharedMemSegment_SysV Class Reference

Platform specific sharedMemSegment for Unix System V platforms. More...

#include <LOW_sharedMemSegment_SysV.h>

Inheritance diagram for LOW_sharedMemSegment_SysV:

Inheritance graph
[legend]
Collaboration diagram for LOW_sharedMemSegment_SysV:

Collaboration graph
[legend]
List of all members.

Public Methods

 LOW_sharedMemSegment_SysV (const LOW_sharedMemSegmentFactory::sharedMemSegmentIPCKey_t inKey, const unsigned int inSize)
 Constructor. More...

virtual ~LOW_sharedMemSegment_SysV ()
 Destructor. More...

void * get () const
 Get a pointer to the shared memory segment. More...


Private Attributes

const key_t sharedMemSegKey
 IPC key of the segment. More...

int sharedMemSegID
 Sys V segment ID. More...

void * sharedMemPtr
 Pointer to the segment. More...


Static Private Attributes

const int SHM_PERMS = 0770
 Permissions for the shm segments. More...


Detailed Description

Platform specific sharedMemSegment for Unix System V platforms.

Author:
Harald Roelle, Helmut Reiser

Definition at line 30 of file LOW_sharedMemSegment_SysV.h.


Constructor & Destructor Documentation

LOW_sharedMemSegment_SysV::LOW_sharedMemSegment_SysV const LOW_sharedMemSegmentFactory::sharedMemSegmentIPCKey_t    inKey,
const unsigned int    inSize
 

Constructor.

Parameters:
inSharedMemIPCKey  Unique identifier for new shared memory segment. To get such an identifier see LOW_IPCKeyGenerator.
inSize  Size of the segment in bytes.

Definition at line 32 of file LOW_sharedMemSegment_SysV.cpp.

References sharedMemPtr, sharedMemSegID, sharedMemSegKey, and SHM_PERMS.

LOW_sharedMemSegment_SysV::~LOW_sharedMemSegment_SysV   [virtual]
 

Destructor.

Definition at line 53 of file LOW_sharedMemSegment_SysV.cpp.

References sharedMemPtr, and sharedMemSegID.


Member Function Documentation

void * LOW_sharedMemSegment_SysV::get   const [virtual]
 

Get a pointer to the shared memory segment.

Abstract method to be implemented by derived class.

Returns:
Pointer to the shared memory segment.

Reimplemented from LOW_sharedMemSegment.

Definition at line 67 of file LOW_sharedMemSegment_SysV.cpp.

References sharedMemPtr.


Member Data Documentation

void* LOW_sharedMemSegment_SysV::sharedMemPtr [private]
 

Pointer to the segment.

Definition at line 79 of file LOW_sharedMemSegment_SysV.h.

Referenced by get(), LOW_sharedMemSegment_SysV(), and ~LOW_sharedMemSegment_SysV().

int LOW_sharedMemSegment_SysV::sharedMemSegID [private]
 

Sys V segment ID.

Definition at line 78 of file LOW_sharedMemSegment_SysV.h.

Referenced by LOW_sharedMemSegment_SysV(), and ~LOW_sharedMemSegment_SysV().

const key_t LOW_sharedMemSegment_SysV::sharedMemSegKey [private]
 

IPC key of the segment.

Definition at line 77 of file LOW_sharedMemSegment_SysV.h.

Referenced by LOW_sharedMemSegment_SysV().

const int LOW_sharedMemSegment_SysV::SHM_PERMS = 0770 [static, private]
 

Permissions for the shm segments.

Definition at line 69 of file LOW_sharedMemSegment_SysV.h.

Referenced by LOW_sharedMemSegment_SysV().


The documentation for this class was generated from the following files:
Generated on Sun Jan 12 21:07:58 2003 by doxygen1.2.13.1 written by Dimitri van Heesch, © 1997-2001