ACE  6.4.2
Public Member Functions | Static Public Member Functions | Private Types | Private Member Functions | Private Attributes | Friends | List of all members
ACE::Monitor_Control::Monitor_Point_Registry Class Reference

Storage for instantiated monitor points. More...

#include <Monitor_Point_Registry.h>

Collaboration diagram for ACE::Monitor_Control::Monitor_Point_Registry:
Collaboration graph
[legend]

Public Member Functions

bool add (Monitor_Base *type)
 Adds a monitor to the registry. More...
 
bool remove (const char *name)
 Remove a monitor from the registry. More...
 
Monitor_Control_Types::NameList names (void)
 Returns a list of names stored in the registry. More...
 
Monitor_Baseget (const ACE_CString &name) const
 
long constraint_id (void)
 Returns a unique id for a constraint when it is created. More...
 
void cleanup (void)
 

Static Public Member Functions

static Monitor_Point_Registryinstance (void)
 

Private Types

typedef ACE_Hash_Map_Manager< ACE_CString, Monitor_Base *, ACE_SYNCH_NULL_MUTEXMap
 Underlying container for the registry. More...
 

Private Member Functions

 Monitor_Point_Registry (void)
 Prevent that users can make an instance. More...
 

Private Attributes

ACE_SYNCH_MUTEX mutex_
 
Map map_
 
long constraint_id_
 

Friends

class ACE_Singleton< Monitor_Point_Registry, ACE_SYNCH_MUTEX >
 

Detailed Description

Storage for instantiated monitor points.

Member Typedef Documentation

Underlying container for the registry.

Constructor & Destructor Documentation

ACE::Monitor_Control::Monitor_Point_Registry::Monitor_Point_Registry ( void  )
private

Prevent that users can make an instance.

Member Function Documentation

bool ACE::Monitor_Control::Monitor_Point_Registry::add ( Monitor_Base type)

Adds a monitor to the registry.

Temporary debugging code.

void ACE::Monitor_Control::Monitor_Point_Registry::cleanup ( void  )

Decrements the reference count on all remaining entries, called right before we go out of scope (i.e., process exits).

long ACE::Monitor_Control::Monitor_Point_Registry::constraint_id ( void  )

Returns a unique id for a constraint when it is created.

Monitor_Base * ACE::Monitor_Control::Monitor_Point_Registry::get ( const ACE_CString name) const

Increments the refcount, so the caller is responsible for decrementing it when finished.

Monitor_Point_Registry * ACE::Monitor_Control::Monitor_Point_Registry::instance ( void  )
static

Used to help ensure that there is only a single instance per process of Monitor_Point_Registry.

Monitor_Control_Types::NameList ACE::Monitor_Control::Monitor_Point_Registry::names ( void  )

Returns a list of names stored in the registry.

bool ACE::Monitor_Control::Monitor_Point_Registry::remove ( const char *  name)

Remove a monitor from the registry.

Temporary debugging code.

Friends And Related Function Documentation

Member Data Documentation

long ACE::Monitor_Control::Monitor_Point_Registry::constraint_id_
private

Since we're accessed as a singleton, we can keep track of dispensing unique ids for constraints.

Map ACE::Monitor_Control::Monitor_Point_Registry::map_
private
ACE_SYNCH_MUTEX ACE::Monitor_Control::Monitor_Point_Registry::mutex_
mutableprivate

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