ACE  6.1.0
Public Member Functions | Static Public Member Functions | Private Types | Private Member Functions | Private Attributes | Friends
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]

List of all members.

Public Member Functions

bool add (Monitor_Base *type)
 Adds a monitor to the registry.
bool remove (const char *name)
 Remove a monitor from the registry.
Monitor_Control_Types::NameList names (void)
 Returns a list of names stored in the registry.
Monitor_Baseget (const ACE_CString &name) const
long constraint_id (void)
 Returns a unique id for a constraint when it is created.
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_MUTEX > 
Map
 Underlying container for the registry.

Private Member Functions

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

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

friend class ACE_Singleton< Monitor_Point_Registry, ACE_SYNCH_MUTEX > [friend]

Member Data Documentation

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

ACE_SYNCH_MUTEX ACE::Monitor_Control::Monitor_Point_Registry::mutex_ [mutable, private]

The documentation for this class was generated from the following files:
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Defines