2008-03-08 08:52:38 -05:00
|
|
|
/////////////////////////////////////////////////////////////////////////////
|
|
|
|
// Name: tracker.h
|
2008-03-10 11:24:38 -04:00
|
|
|
// Purpose: interface of wxTrackable
|
2008-03-08 08:52:38 -05:00
|
|
|
// Author: wxWidgets team
|
|
|
|
// RCS-ID: $Id$
|
|
|
|
// Licence: wxWindows license
|
|
|
|
/////////////////////////////////////////////////////////////////////////////
|
|
|
|
|
|
|
|
/**
|
|
|
|
@class wxTrackable
|
|
|
|
@wxheader{tracker.h}
|
2008-03-08 09:43:31 -05:00
|
|
|
|
2008-03-08 08:52:38 -05:00
|
|
|
Add-on base class for a trackable object. This class maintains
|
|
|
|
an internal linked list of classes of type wxTrackerNode and
|
|
|
|
calls OnObjectDestroy() on them if this object is destroyed.
|
2008-03-10 11:24:38 -04:00
|
|
|
The most common usage is by using the wxWeakRefT()
|
2008-03-08 08:52:38 -05:00
|
|
|
class template which automates this. This class has no public
|
|
|
|
API. Its only use is by deriving another class from it to
|
|
|
|
make it trackable.
|
2008-03-08 09:43:31 -05:00
|
|
|
|
2008-03-08 08:52:38 -05:00
|
|
|
@code
|
|
|
|
class MyClass: public Foo, public wxTrackable
|
|
|
|
{
|
|
|
|
// whatever
|
|
|
|
}
|
2008-03-08 09:43:31 -05:00
|
|
|
|
2008-03-08 08:52:38 -05:00
|
|
|
typedef wxWeakRefMyClass MyClassRef;
|
|
|
|
@endcode
|
2008-03-08 09:43:31 -05:00
|
|
|
|
2008-03-08 08:52:38 -05:00
|
|
|
@library{wxbase}
|
|
|
|
@category{FIXME}
|
|
|
|
*/
|
2008-03-08 09:43:31 -05:00
|
|
|
class wxTrackable
|
2008-03-08 08:52:38 -05:00
|
|
|
{
|
|
|
|
public:
|
2008-03-08 09:43:31 -05:00
|
|
|
|
2008-03-08 08:52:38 -05:00
|
|
|
};
|
2008-03-10 11:24:38 -04:00
|
|
|
|