VR-Link API Documentation for HLA 1516
Public Member Functions | Protected Attributes | Private Member Functions
DtSharedMemoryPoolManager Class Reference

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

+ Collaboration diagram for DtSharedMemoryPoolManager:

List of all members.

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.
DtSharedMemoryPoolManageroperator= (const DtSharedMemoryPoolManager &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::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.

Closes the memory pool.

Copy Ctor not implemented.


Member Function Documentation

returns the address of the successfully created memory pool.

DtSharedMemoryPoolManager& DtSharedMemoryPoolManager::operator= ( const DtSharedMemoryPoolManager other) [private]

Assignment Operator not implemented.


Member Data Documentation


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

Document ID: Generated on Mon May 14 08:06:18 EDT 2012 from SVN revision 114750
Copyright © 2005-2012 VT MÄK Inc. All Rights Reserved (www.mak.com)