MAK RTIspy API Documentation for HLA 1516
Public Member Functions | Protected Attributes | Private Member Functions
DtSharedMemoryPoolManager__rti__ Class Reference

This class creates and manages a shared memory pool. More...

+ Collaboration diagram for DtSharedMemoryPoolManager__rti__:

List of all members.

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.

Detailed Description

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.


Constructor & Destructor Documentation

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.

Closes the memory pool.

References myAddr, myId, myName, and NULL.

Copy Ctor not implemented.


Member Function Documentation

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.


Member Data Documentation

MAKRti::DtString DtSharedMemoryPoolManager__rti__::myName [protected]

The documentation for this class was generated from the following files:

Document ID: Generated on Thu Jun 14 14:15:04 EDT 2012 from SVN revision 116116
Copyright © 2005-2012 VT MÄK Inc. All Rights Reserved (www.mak.com)