Refcountable.h

Go to the documentation of this file.
00001 // -*- C++ -*-
00002 
00003 //=============================================================================
00004 /**
00005  *  @file   Refcountable.h
00006  *
00007  *  Refcountable.h,v 4.6 2005/10/28 16:14:55 ossama 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 ACE_BEGIN_VERSIONED_NAMESPACE_DECL
00024 
00025 /**
00026  * @class ACE_Refcountable
00027  *
00028  */
00029 class ACE_Export ACE_Refcountable
00030 {
00031 public:
00032   /// Destructor.
00033   virtual ~ACE_Refcountable (void);
00034 
00035   // = Increment/Decrement refcount
00036   int increment (void);
00037   int decrement (void);
00038 
00039   /// Returns the current refcount.
00040   int refcount (void) const;
00041 
00042 protected:
00043   /// Protected constructor.
00044   ACE_Refcountable (int refcount);
00045 
00046   /// Current refcount.
00047   int refcount_;
00048 };
00049 
00050 ACE_END_VERSIONED_NAMESPACE_DECL
00051 
00052 
00053 #if defined (__ACE_INLINE__)
00054 #include "ace/Refcountable.inl"
00055 #endif /* __ACE_INLINE __ */
00056 
00057 #include /**/ "ace/post.h"
00058 #endif /*ACE_REFCOUNTABLE_H*/

Generated on Thu Nov 9 09:42:01 2006 for ACE by doxygen 1.3.6