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

ACE_Refcountable Class Reference

#include <Refcountable.h>

Inheritance diagram for ACE_Refcountable:

Inheritance graph
[legend]
List of all members.

Public Methods

virtual ~ACE_Refcountable (void)
 Destructor. More...

int increment (void)
int decrement (void)
int refcount (void) const
 Returns the current refcount. More...


Protected Methods

 ACE_Refcountable (int refcount)
 Protected constructor. More...


Protected Attributes

int refcount_
 Current refcount. More...


Detailed Description

Definition at line 30 of file Refcountable.h.


Constructor & Destructor Documentation

ACE_INLINE ACE_Refcountable::~ACE_Refcountable void    [virtual]
 

Destructor.

Definition at line 10 of file Refcountable.inl.

00011 {
00012 }

ACE_INLINE ACE_Refcountable::ACE_Refcountable int    refcount [protected]
 

Protected constructor.

Definition at line 4 of file Refcountable.inl.

00005   : refcount_ (refcount)
00006 {
00007 }


Member Function Documentation

ACE_INLINE int ACE_Refcountable::decrement void   
 

Definition at line 21 of file Refcountable.inl.

References refcount_.

Referenced by ACE_Cached_Connect_Strategy< SVC_HANDLER, ACE_PEER_CONNECTOR_2, MUTEX >::check_hint_i, and ACE_Cached_Connect_Strategy< SVC_HANDLER, ACE_PEER_CONNECTOR_2, MUTEX >::cleanup_hint_i.

00022 {
00023   return --this->refcount_;
00024 }

ACE_INLINE int ACE_Refcountable::increment void   
 

Definition at line 15 of file Refcountable.inl.

References refcount_.

Referenced by ACE_Cached_Connect_Strategy< SVC_HANDLER, ACE_PEER_CONNECTOR_2, MUTEX >::connect_svc_handler_i.

00016 {
00017   return ++this->refcount_;
00018 }

ACE_INLINE int ACE_Refcountable::refcount void    const
 

Returns the current refcount.

Definition at line 27 of file Refcountable.inl.

References refcount_.

00028 {
00029   return this->refcount_;
00030 }


Member Data Documentation

int ACE_Refcountable::refcount_ [protected]
 

Current refcount.

Definition at line 48 of file Refcountable.h.

Referenced by decrement, increment, and refcount.


The documentation for this class was generated from the following files:
Generated on Mon Jun 16 12:55:00 2003 for ACE by doxygen1.2.14 written by Dimitri van Heesch, © 1997-2002