00001 00002 #ifndef REFCOUNT_H 00003 #define REFCOUNT_H 00004 00005 00010 class RefCountI { 00011 public: 00015 virtual int docall IncRef() = 0; 00016 virtual int docall DecRef() = 0; 00018 00019 // Utility functions, DecRef is a safer vfunc name than Release 00020 inline int AddRef(){ return IncRef(); } 00021 inline int Release(){ return DecRef(); } 00022 }; 00023 00024 00025 #endif // REFCOUNT_H 00026