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
00024
00025
00026
00027
00028
00029
00030 class ACE_Export ACE_Refcountable
00031 {
00032 public:
00033
00034 virtual ~ACE_Refcountable (void);
00035
00036
00037 int increment (void);
00038 int decrement (void);
00039
00040
00041 int refcount (void) const;
00042
00043 protected:
00044
00045 ACE_Refcountable (int refcount);
00046
00047
00048 int refcount_;
00049 };
00050
00051
00052 #if defined (__ACE_INLINE__)
00053 #include "ace/Refcountable.inl"
00054 #endif
00055
00056 #include "ace/post.h"
00057 #endif