/// /// Copyright © 2003-2008 JetBrains s.r.o. /// You may distribute under the terms of the GNU General Public License, as published by the Free Software Foundation, version 2 (see License.txt in the repository root folder). /// #ifndef _OMNIAMEA_RCOBJECT_H #define _OMNIAMEA_RCOBJECT_H #include "RCPtr.h" class RCObject : public MyHeapObject { public: RCObject(); RCObject( const RCObject& rhs ); RCObject& operator=( const RCObject& rhs ); virtual ~RCObject(); void addRef(); int removeRef(); int GetRefCount() const; private: int refCount; }; #endif