/////////////////////////////////////////////////////////////////////////////
// Name: weakref.h
-// Purpose: documentation for wxWeakRefDynamic<T> class
+// Purpose: interface of wxWeakRefDynamic<T>
// Author: wxWidgets team
// RCS-ID: $Id$
// Licence: wxWindows license
};
+
/**
@class wxWeakRefT
@wxheader{weakref.h}
@library{wxbase}
@category{FIXME}
- @seealso
- wxSharedPtr, wxScopedPtr
+ @see wxSharedPtr, wxScopedPtr
*/
class wxWeakRef<T>
{
/**
Constructor. The weak reference is initialized to @e pobj.
*/
- wxWeakRefT(T* pobj = @NULL);
+ wxWeakRefT(T* pobj = NULL);
/**
Destructor.
/**
Returns pointer to the tracked object or @NULL.
*/
- T * get();
+ T* get() const;
/**
Release currently tracked object and start tracking the same object as
Implicit conversion to T*. Returns pointer to the tracked
object or @NULL.
*/
- T* operator*();
+ T* operator*() const;
/**
Returns a reference to the tracked object. If the internal pointer is @NULL
this method will cause an assert in debug mode.
*/
- T operator*();
+ T operator*() const;
/**
Smart pointer member access. Returns a pointer to the
*/
T* operator=(T* pobj);
};
+