![]() |
MAK RTIspy API Documentation for HLA Evolved
|
This class creates and manages a shared memory pool. More...
Collaboration diagram for DtSharedMemoryPoolManager__rti__:Public Member Functions | |
| DtSharedMemoryPoolManager__rti__ (const MAKRti::DtString &shared_name, unsigned long size, DtShmPoolCreationMode create=DtShmPoolCreationMode_Normal) | |
| creates a shared memory pool with name shared_name, of the specified size. | |
| virtual | ~DtSharedMemoryPoolManager__rti__ () |
| Closes the memory pool. | |
| void * | address () const |
| returns the address of the successfully created memory pool. | |
Protected Attributes | |
| MAKRti::DtString | myName |
| void * | myAddr |
| int | myId |
Private Member Functions | |
| DtSharedMemoryPoolManager__rti__ (const DtSharedMemoryPoolManager__rti__ &other) | |
| Copy Ctor not implemented. | |
| DtSharedMemoryPoolManager__rti__ & | operator= (const DtSharedMemoryPoolManager__rti__ &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__rti__::DtSharedMemoryPoolManager__rti__ | ( | const MAKRti::DtString & | shared_name, |
| unsigned long | size, | ||
| DtShmPoolCreationMode | create = DtShmPoolCreationMode_Normal |
||
| ) |
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 MAKRti::DtException with a useful description of the error.
| DtSharedMemoryPoolManager__rti__::DtSharedMemoryPoolManager__rti__ | ( | const DtSharedMemoryPoolManager__rti__ & | other | ) | [private] |
Copy Ctor not implemented.
| void * DtSharedMemoryPoolManager__rti__::address | ( | ) | const |
returns the address of the successfully created memory pool.
References myAddr.
| DtSharedMemoryPoolManager__rti__& DtSharedMemoryPoolManager__rti__::operator= | ( | const DtSharedMemoryPoolManager__rti__ & | other | ) | [private] |
Assignment Operator not implemented.
void* DtSharedMemoryPoolManager__rti__::myAddr [protected] |
Referenced by address(), and ~DtSharedMemoryPoolManager__rti__().
int DtSharedMemoryPoolManager__rti__::myId [protected] |
Referenced by ~DtSharedMemoryPoolManager__rti__().
MAKRti::DtString DtSharedMemoryPoolManager__rti__::myName [protected] |
Referenced by ~DtSharedMemoryPoolManager__rti__().