Shmem Class Reference
A shared memory super class.
More...
Inheritance diagram for Shmem:
List of all members.
Detailed Description
A shared memory super class.
Shmem defines a new() operator that attaches to a shared memory segment existing as a memory mapped file. The name of the file is speicified in a parameter to the new() operator. Classes deriving from Shmem and using the parameter based new() operator, will be allocated as a shared memory mapped file. Contents of classes or structs drived from Shmem will survive process restart and even system reboot.
Constructor & Destructor Documentation
Shmem::Shmem |
( |
void |
|
) |
[inline] |
|
Shmem::~Shmem |
( |
void |
|
) |
[inline] |
|
Member Function Documentation
void Shmem::operator delete |
( |
void * |
|
) |
|
|
|
Detaches from shared memory segment, but does not destroy the memory mapped file. |
void* Shmem::operator new |
( |
size_t |
size, |
|
|
const std::string & |
filename |
|
) |
|
|
|
new() operator. - Parameters:
-
| size | - Standard size parameter for a C++ new() operator. Corresponds to the size of the data being allocated. |
| filename | - Name of the file to map to memory in shared space. This is the name of a file on the file system. If it does not exist, it will be created and sized appropriately. |
|
The documentation for this class was generated from the following file:
Generated on Sun Feb 26 20:00:03 2006 for osgEphemeris by
1.4.1