mirror of
https://github.com/thug1src/thug.git
synced 2024-11-30 12:06:44 +00:00
33 lines
522 B
C++
33 lines
522 B
C++
#ifndef __GEL_REFCOUNTED_H
|
|
#define __GEL_REFCOUNTED_H
|
|
|
|
namespace Obj
|
|
{
|
|
|
|
template<class T> class CSmtPtr;
|
|
|
|
|
|
|
|
|
|
class CRefCounted : public Spt::Class
|
|
{
|
|
public:
|
|
CRefCounted();
|
|
virtual ~CRefCounted();
|
|
|
|
void AddSmartPointer(CSmtPtr<CRefCounted> *pSmtPtr);
|
|
void RemoveSmartPointer(CSmtPtr<CRefCounted> *pSmtPtr);
|
|
|
|
void debug_validate_smart_pointers(CSmtPtr<CRefCounted> *pPtrToCheckForInclusion);
|
|
|
|
protected:
|
|
|
|
CSmtPtr<CRefCounted> * mp_smart_ptr_list;
|
|
};
|
|
|
|
|
|
|
|
|
|
}
|
|
#endif
|