ReferenceCounter.h 389 B

1234567891011121314151617181920
  1. #pragma once
  2. #include "Betriebssystem.h"
  3. namespace Framework
  4. {
  5. class ReferenceCounter
  6. {
  7. private:
  8. int ref;
  9. public:
  10. DLLEXPORT ReferenceCounter();
  11. DLLEXPORT virtual ~ReferenceCounter();
  12. DLLEXPORT int getReferenceCount() const;
  13. DLLEXPORT ReferenceCounter* getThis();
  14. DLLEXPORT void* release();
  15. };
  16. } // namespace Framework