Main Page   Class Hierarchy   Alphabetical List   Compound List   File List   Compound Members   File Members   Related Pages  

ACE_Name_Space_Map Class Template Reference

This class serves as a Proxy that ensures our process always has the appropriate allocator in place for every operation that accesses or updates the Map Manager. More...

#include <Local_Name_Space_T.h>

Inheritance diagram for ACE_Name_Space_Map

Inheritance graph
[legend]
Collaboration diagram for ACE_Name_Space_Map:

Collaboration graph
[legend]
List of all members.

Public Methods

 ACE_Name_Space_Map (ALLOCATOR *alloc)
 Constructor.

int bind (const ACE_NS_String &, const ACE_NS_Internal &, ALLOCATOR *alloc)
int unbind (const ACE_NS_String &, ACE_NS_Internal &, ALLOCATOR *alloc)
int rebind (const ACE_NS_String &, const ACE_NS_Internal &, ACE_NS_String &, ACE_NS_Internal &, ALLOCATOR *alloc)
int find (const ACE_NS_String &, ACE_NS_Internal &, ALLOCATOR *alloc)
int close (ALLOCATOR *alloc)

Detailed Description

template<class ALLOCATOR> template class ACE_Name_Space_Map

This class serves as a Proxy that ensures our process always has the appropriate allocator in place for every operation that accesses or updates the Map Manager.

We need this class because otherwise the ALLOCATOR pointer will be stored in the Map_Manager that resides within shared memory. Naturally, this will cause horrible problems since only the first process to set that pointer will be guaranteed the address of the ALLOCATOR is meaningful!


Constructor & Destructor Documentation

template<classALLOCATOR>
ACE_Name_Space_Map<ALLOCATOR>::ACE_Name_Space_Map<ALLOCATOR> ( ALLOCATOR * alloc ) [inline]
 

Constructor.


Member Function Documentation

template<classALLOCATOR>
int ACE_Name_Space_Map< ALLOCATOR >::bind ( const ACE_NS_String & ext_id,
const ACE_NS_Internal & int_id,
ALLOCATOR * alloc )
 

template<classALLOCATOR>
int ACE_Name_Space_Map< ALLOCATOR >::close ( ALLOCATOR * alloc )
 

template<classALLOCATOR>
int ACE_Name_Space_Map< ALLOCATOR >::find ( const ACE_NS_String & ext_id,
ACE_NS_Internal & int_id,
ALLOCATOR * alloc )
 

template<classALLOCATOR>
int ACE_Name_Space_Map< ALLOCATOR >::rebind ( const ACE_NS_String & ext_id,
const ACE_NS_Internal & int_id,
ACE_NS_String & old_ext_id,
ACE_NS_Internal & old_int_id,
ALLOCATOR * alloc )
 

template<classALLOCATOR>
int ACE_Name_Space_Map< ALLOCATOR >::unbind ( const ACE_NS_String & ext_id,
ACE_NS_Internal & int_id,
ALLOCATOR * alloc )
 


The documentation for this class was generated from the following files:
Generated at Fri Oct 5 07:03:07 2001 for ACE by doxygen1.2.3 written by Dimitri van Heesch, © 1997-2000