00001
00002
00003
00004
00005
00006
00007
00008
00009
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
00021
00022
00023 ACE_BEGIN_VERSIONED_NAMESPACE_DECL
00024
00025
00026
00027
00028
00029 class ACE_Export ACE_Refcountable
00030 {
00031 public:
00032
00033 virtual ~ACE_Refcountable (void);
00034
00035
00036 int increment (void);
00037 int decrement (void);
00038
00039
00040 int refcount (void) const;
00041
00042 protected:
00043
00044 ACE_Refcountable (int refcount);
00045
00046
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
00056
00057 #include "ace/post.h"
00058 #endif