From: Václav Slavík Date: Fri, 21 Mar 2008 14:36:04 +0000 (+0000) Subject: fixes to wxSharedPtr docs X-Git-Url: https://git.saurik.com/wxWidgets.git/commitdiff_plain/9fa8c9bf96fcdb9547dd48ebf0375d2b9396e65e fixes to wxSharedPtr docs git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@52646 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775 --- diff --git a/interface/ptr_shrd.h b/interface/ptr_shrd.h index 3554d09fff..e6fc1dbf03 100644 --- a/interface/ptr_shrd.h +++ b/interface/ptr_shrd.h @@ -7,29 +7,31 @@ ///////////////////////////////////////////////////////////////////////////// /** - @class wxSharedPtrT @wxheader{ptr_shrd.h} - A smart pointer with non-intrusive reference counting. It is modeled - after @b boost::shared_ptr and can be used with STL containers - and wxVector() - unlike @b std::auto_ptr - and wxScopedPtr(). + A smart pointer with non-intrusive reference counting. It is modeled after + @c boost::shared_ptr and can be used with STL containers and wxVector - + unlike @c std::auto_ptr and wxScopedPtr. @library{wxbase} - @category{FIXME} + @category{smartpointers} - @see wxScopedPtr, wxWeakRef, wxObjectDataPtr + @see wxScopedPtr, wxWeakRef, wxObjectDataPtr */ +template class wxSharedPtr { public: - //@{ /** - Constructors. + Constructor. + + Creates shared pointer from the raw pointer @a ptr and takes ownership + of it. */ - wxSharedPtrT(T* ptr = NULL); - wxSharedPtrT(const wxSharedPtr& tocopy); - //@} + wxSharedPtr(T* ptr = NULL); + + /// Copy constructor. + wxSharedPtr(const wxSharedPtr& tocopy); /** Destructor. @@ -50,8 +52,8 @@ public: operator unspecified_bool_type() const; /** - Returns a reference to the object. If the internal pointer is @NULL this - method will cause an assert in debug mode. + Returns a reference to the object. If the internal pointer is @NULL + this method will cause an assert in debug mode. */ T operator*() const;