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

Refcountable.h

Go to the documentation of this file.
00001 // -*- C++ -*-
00002 
00003 //=============================================================================
00004 /**
00005  *  @file   Refcountable.h
00006  *
00007  *  $Id: Refcountable.h,v 1.1.1.1 2003/02/21 18:36:32 chad Exp $
00008  *
00009  *  @author Doug Schmidt
00010  */
00011 //=============================================================================
00012 #ifndef ACE_REFCOUNTABLE_H
00013 #define ACE_REFCOUNTABLE_H
00014 #include "ace/pre.h"
00015 
00016 #include "ace/ACE_export.h"
00017 
00018 #if !defined (ACE_LACKS_PRAGMA_ONCE)
00019 # pragma once
00020 #endif /* ACE_LACKS_PRAGMA_ONCE */
00021 
00022 
00023 /**
00024  * @class ACE_Refcountable
00025  *
00026  * @brief
00027  *
00028  *
00029  */
00030 class ACE_Export ACE_Refcountable
00031 {
00032 public:
00033   /// Destructor.
00034   virtual ~ACE_Refcountable (void);
00035 
00036   // = Increment/Decrement refcount
00037   int increment (void);
00038   int decrement (void);
00039 
00040   /// Returns the current refcount.
00041   int refcount (void) const;
00042 
00043 protected:
00044   /// Protected constructor.
00045   ACE_Refcountable (int refcount);
00046 
00047   /// Current refcount.
00048   int refcount_;
00049 };
00050 
00051 
00052 #if defined (__ACE_INLINE__)
00053 #include "ace/Refcountable.inl"
00054 #endif /* __ACE_INLINE __ */
00055 
00056 #include "ace/post.h"
00057 #endif /*ACE_REFCOUNTABLE_H*/

Generated on Mon Jun 16 11:21:02 2003 for ACE by doxygen1.2.14 written by Dimitri van Heesch, © 1997-2002