![]() |
VR-Link API Documentation for HLA 1.3
|
This class creates and manages a shared memory pool. More...
Collaboration diagram for DtSharedMemoryPoolManager:Public Member Functions | |
| DtSharedMemoryPoolManager (const DtString &shared_name, unsigned long size) | |
| creates a shared memory pool with name shared_name, of the specified size. | |
| virtual | ~DtSharedMemoryPoolManager () |
| Closes the memory pool. | |
| void * | address () const |
| returns the address of the successfully created memory pool. | |
Protected Attributes | |
| DtString | myName |
| void * | myAddr |
| int | myId |
Private Member Functions | |
| DtSharedMemoryPoolManager (const DtSharedMemoryPoolManager &other) | |
| Copy Ctor not implemented. | |
| DtSharedMemoryPoolManager & | operator= (const DtSharedMemoryPoolManager &other) |
| Assignment Operator not implemented. | |
This class creates and manages a shared memory pool.
It will create a pool on construction and delete the pool when it is destroyed. There is currently no way to preserve the pool past the life of this class.
| DtSharedMemoryPoolManager::DtSharedMemoryPoolManager | ( | const DtString & | shared_name, |
| unsigned long | size | ||
| ) |
creates a shared memory pool with name shared_name, of the specified size.
If the pool already exists this manager will join the pool and not throw an error. If an error occurs the CTOR will throw a DtException with a useful description of the error.
| virtual DtSharedMemoryPoolManager::~DtSharedMemoryPoolManager | ( | ) | [virtual] |
Closes the memory pool.
| DtSharedMemoryPoolManager::DtSharedMemoryPoolManager | ( | const DtSharedMemoryPoolManager & | other | ) | [private] |
Copy Ctor not implemented.
| void* DtSharedMemoryPoolManager::address | ( | ) | const |
returns the address of the successfully created memory pool.
| DtSharedMemoryPoolManager& DtSharedMemoryPoolManager::operator= | ( | const DtSharedMemoryPoolManager & | other | ) | [private] |
Assignment Operator not implemented.
void* DtSharedMemoryPoolManager::myAddr [protected] |
int DtSharedMemoryPoolManager::myId [protected] |
DtString DtSharedMemoryPoolManager::myName [protected] |