tracker.h 949 B

12345678910111213141516171819202122232425262728293031323334
  1. /////////////////////////////////////////////////////////////////////////////
  2. // Name: tracker.h
  3. // Purpose: interface of wxTrackable
  4. // Author: wxWidgets team
  5. // Licence: wxWindows licence
  6. /////////////////////////////////////////////////////////////////////////////
  7. /**
  8. @class wxTrackable
  9. Add-on base class for a trackable object. This class maintains an internal
  10. linked list of classes of type wxTrackerNode and calls OnObjectDestroy() on
  11. them if this object is destroyed. The most common usage is by using the
  12. wxWeakRef<T> class template which automates this. This class has no public
  13. API. Its only use is by deriving another class from it to make it trackable.
  14. @code
  15. class MyClass: public Foo, public wxTrackable
  16. {
  17. // whatever
  18. }
  19. typedef wxWeakRef<MyClass> MyClassRef;
  20. @endcode
  21. @library{wxbase}
  22. @category{smartpointers}
  23. */
  24. class wxTrackable
  25. {
  26. public:
  27. };