TAO_Notify_Event_Map_Entry_T< PROXY > Class Template Reference

The entry stored in the event map. More...

#include <Event_Map_Entry_T.h>

Inheritance diagram for TAO_Notify_Event_Map_Entry_T< PROXY >:

Inheritance graph
[legend]
Collaboration diagram for TAO_Notify_Event_Map_Entry_T< PROXY >:

Collaboration graph
[legend]
List of all members.

Public Types

typedef TAO_ESF_Proxy_Collection<
PROXY > 
COLLECTION

Public Member Functions

 TAO_Notify_Event_Map_Entry_T (void)
 Constructor.
 ~TAO_Notify_Event_Map_Entry_T (void)
 Destructor.
void init (void)
 Init - Allocates collection.
void connected (PROXY *proxy)
 Connect.
void disconnected (PROXY *proxy)
 Disconnect.
COLLECTIONcollection (void)
 Collection accessor.
int count (void)
 Count accessor.
CORBA::ULong _incr_refcnt (void)
 = Reference counting methods.
CORBA::ULong _decr_refcnt (void)

Protected Attributes

COLLECTIONcollection_
 The Collection.
int count_
 Count of PROXY's connected in the collection;.
ACE_Atomic_Op< TAO_SYNCH_MUTEX,
int > 
usage_count_
 Count of users accessing this entry.

Detailed Description

template<class PROXY>
class TAO_Notify_Event_Map_Entry_T< PROXY >

The entry stored in the event map.

Definition at line 41 of file Event_Map_Entry_T.h.


Member Typedef Documentation

template<class PROXY>
typedef TAO_ESF_Proxy_Collection<PROXY> TAO_Notify_Event_Map_Entry_T< PROXY >::COLLECTION

Definition at line 44 of file Event_Map_Entry_T.h.


Constructor & Destructor Documentation

template<class PROXY>
TAO_BEGIN_VERSIONED_NAMESPACE_DECL TAO_Notify_Event_Map_Entry_T< PROXY >::TAO_Notify_Event_Map_Entry_T ( void   ) 

Constructor.

Definition at line 23 of file Event_Map_Entry_T.cpp.

00024   : collection_ (0), count_ (0), usage_count_ (1)
00025 {
00026 }

template<class PROXY>
TAO_Notify_Event_Map_Entry_T< PROXY >::~TAO_Notify_Event_Map_Entry_T ( void   ) 

Destructor.

Definition at line 29 of file Event_Map_Entry_T.cpp.

References TAO_Notify_Event_Map_Entry_T< PROXY >::collection_.

00030 {
00031   delete collection_;
00032 }


Member Function Documentation

template<class PROXY>
ACE_INLINE CORBA::ULong TAO_Notify_Event_Map_Entry_T< PROXY >::_decr_refcnt ( void   ) 

Definition at line 26 of file Event_Map_Entry_T.inl.

References TAO_Notify_Event_Map_Entry_T< PROXY >::usage_count_.

Referenced by TAO_Notify_Event_Map_T< PROXY, ACE_LOCK >::release(), and TAO_Notify_Event_Map_T< PROXY, ACE_LOCK >::remove().

00027 {
00028   return --this->usage_count_;
00029 }

template<class PROXY>
ACE_INLINE CORBA::ULong TAO_Notify_Event_Map_Entry_T< PROXY >::_incr_refcnt ( void   ) 

= Reference counting methods.

Definition at line 20 of file Event_Map_Entry_T.inl.

References TAO_Notify_Event_Map_Entry_T< PROXY >::usage_count_.

Referenced by TAO_Notify_Event_Map_T< PROXY, ACE_LOCK >::find().

00021 {
00022   return ++this->usage_count_;
00023 }

template<class PROXY>
TAO_BEGIN_VERSIONED_NAMESPACE_DECL ACE_INLINE TAO_Notify_Event_Map_Entry_T< PROXY >::COLLECTION * TAO_Notify_Event_Map_Entry_T< PROXY >::collection ( void   ) 

Collection accessor.

Definition at line 9 of file Event_Map_Entry_T.inl.

References TAO_Notify_Event_Map_Entry_T< PROXY >::collection_.

Referenced by TAO_Notify_Event_Map_T< PROXY, ACE_LOCK >::broadcast_collection(), and TAO_Notify_Event_Map_T< PROXY, ACE_LOCK >::updates_collection().

00009                                                      {
00010   return collection_;
00011 }

template<class PROXY>
void TAO_Notify_Event_Map_Entry_T< PROXY >::connected ( PROXY *  proxy  ) 

Connect.

Definition at line 43 of file Event_Map_Entry_T.cpp.

References TAO_Notify_Event_Map_Entry_T< PROXY >::collection_, TAO_ESF_Proxy_Collection< PROXY >::connected(), and TAO_Notify_Event_Map_Entry_T< PROXY >::count_.

Referenced by TAO_Notify_Event_Map_T< PROXY, ACE_LOCK >::connect(), and TAO_Notify_Event_Map_T< PROXY, ACE_LOCK >::insert().

00044 {
00045   this->collection_->connected (proxy);
00046   ++count_;
00047 }

template<class PROXY>
ACE_INLINE int TAO_Notify_Event_Map_Entry_T< PROXY >::count ( void   ) 

Count accessor.

Definition at line 14 of file Event_Map_Entry_T.inl.

References TAO_Notify_Event_Map_Entry_T< PROXY >::count_.

Referenced by TAO_Notify_Event_Map_T< PROXY, ACE_LOCK >::remove().

00015 {
00016   return this->count_;
00017 }

template<class PROXY>
void TAO_Notify_Event_Map_Entry_T< PROXY >::disconnected ( PROXY *  proxy  ) 

Disconnect.

Definition at line 50 of file Event_Map_Entry_T.cpp.

References TAO_Notify_Event_Map_Entry_T< PROXY >::collection_, TAO_Notify_Event_Map_Entry_T< PROXY >::count_, and TAO_ESF_Proxy_Collection< PROXY >::disconnected().

Referenced by TAO_Notify_Event_Map_T< PROXY, ACE_LOCK >::disconnect(), and TAO_Notify_Event_Map_T< PROXY, ACE_LOCK >::remove().

00051 {
00052   this->collection_->disconnected (proxy);
00053   --count_;
00054 }

template<class PROXY>
void TAO_Notify_Event_Map_Entry_T< PROXY >::init ( void   ) 

Init - Allocates collection.

Definition at line 35 of file Event_Map_Entry_T.cpp.

References TAO_Notify_Event_Map_Entry_T< PROXY >::collection_, TAO_Notify_Factory::create(), TAO_Notify_Properties::factory(), and TAO_Notify_Properties::instance().

Referenced by TAO_Notify_Event_Map_T< PROXY, ACE_LOCK >::init(), and TAO_Notify_Event_Map_T< PROXY, ACE_LOCK >::insert().

00036 {
00037   TAO_Notify_Factory* factory = TAO_Notify_PROPERTIES::instance ()->factory ();
00038 
00039   factory->create (collection_);
00040 }


Member Data Documentation

template<class PROXY>
COLLECTION* TAO_Notify_Event_Map_Entry_T< PROXY >::collection_ [protected]

The Collection.

Definition at line 76 of file Event_Map_Entry_T.h.

Referenced by TAO_Notify_Event_Map_Entry_T< PROXY >::collection(), TAO_Notify_Event_Map_Entry_T< PROXY >::connected(), TAO_Notify_Event_Map_Entry_T< PROXY >::disconnected(), TAO_Notify_Event_Map_Entry_T< PROXY >::init(), and TAO_Notify_Event_Map_Entry_T< PROXY >::~TAO_Notify_Event_Map_Entry_T().

template<class PROXY>
int TAO_Notify_Event_Map_Entry_T< PROXY >::count_ [protected]

Count of PROXY's connected in the collection;.

Definition at line 79 of file Event_Map_Entry_T.h.

Referenced by TAO_Notify_Event_Map_Entry_T< PROXY >::connected(), TAO_Notify_Event_Map_Entry_T< PROXY >::count(), and TAO_Notify_Event_Map_Entry_T< PROXY >::disconnected().

template<class PROXY>
ACE_Atomic_Op<TAO_SYNCH_MUTEX,int> TAO_Notify_Event_Map_Entry_T< PROXY >::usage_count_ [protected]

Count of users accessing this entry.

Definition at line 82 of file Event_Map_Entry_T.h.

Referenced by TAO_Notify_Event_Map_Entry_T< PROXY >::_decr_refcnt(), and TAO_Notify_Event_Map_Entry_T< PROXY >::_incr_refcnt().


The documentation for this class was generated from the following files:
Generated on Tue Feb 2 17:46:19 2010 for TAO_CosNotification by  doxygen 1.4.7