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. More...
 
virtual ~DtSharedMemoryPoolManager ()
 Closes the memory pool. More...
 
void * address () const
 returns the address of the successfully created memory pool. More...
 

Protected Attributes

DtString myName
 
void * myAddr
 
int myId
 

Private Member Functions

 DtSharedMemoryPoolManager (const DtSharedMemoryPoolManager &other)
 Copy Ctor not implemented. More...
 
DtSharedMemoryPoolManageroperator= (const DtSharedMemoryPoolManager &other)
 Assignment Operator not implemented. More...
 

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 Tue Feb 2 21:02:17 EST 2021 from SVN revision 223668
Copyright © 2005-2021 MAK Technologies. All Rights Reserved (www.mak.com)