VR-Link API Documentation for HLA Evolved
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Macros Groups Pages
List of all members | 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:

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.

virtual DtSharedMemoryPoolManager::~DtSharedMemoryPoolManager ( )
virtual

Closes the memory pool.

DtSharedMemoryPoolManager::DtSharedMemoryPoolManager ( const DtSharedMemoryPoolManager other)
private

Copy Ctor not implemented.

Member Function Documentation

void* DtSharedMemoryPoolManager::address ( ) const

returns the address of the successfully created memory pool.

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

Assignment Operator not implemented.

Member Data Documentation

void* DtSharedMemoryPoolManager::myAddr
protected
int DtSharedMemoryPoolManager::myId
protected
DtString DtSharedMemoryPoolManager::myName
protected

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

Document ID: Generated on Mon Feb 6 18:36:34 EST 2017 from SVN revision 173107
Copyright © 2005-2016 VT MÄK. All Rights Reserved (www.mak.com)