.\" This is a wxWidgets manpage page generated from the XML docs .TH wxObject 3wx 2005-02-15 "wxWidgets" "wxWidgets class documentation" .SH NAME wxObject \- Root class for classes with run-time information .SH DESCRIPTION This is the root class of all wxWidgets classes. It declares a virtual destructor which ensures that destructors get called for all derived class objects where necessary. wxObject is the hub of a dynamic object creation scheme, enabling a program to create instances of a class only knowing its string class name, and to query the class hierarchy. The class contains optional debugging versions of new and delete , which can help trace memory allocation and deallocation problems. wxObject can be used to implement reference counted objects, such as wxPen, wxBitmap and others. .SH "PARENTS" .SH "INCLUDE FILES" .SH MEMBERS .SS wxObject () .SS wxObject (const wxObject& other) Default and copy constructors. .SS wxObject () Destructor. Performs dereferencing, for those objects that use reference counting. .SS void Dump (ostream& stream) A virtual function that may be redefined by derived classes to allow dumping of memory states. This function is only defined in debug build and doesn't exist at all if __WXDEBUG__ is not defined. .SS wxClassInfo * GetClassInfo () This virtual function is redefined for every class that requires run-time type information, when using DECLARE_CLASS macros. .SS wxObjectRefData* GetRefData () .SS bool IsKindOf (wxClassInfo *info) Determines whether this class is a subclass of (or the same class as) the given class. .SS void Ref (const wxObject& clone) .SS void SetRefData (wxObjectRefData* data) .SS void UnRef () .SS void * new (size_t sizeconst wxString& filename = NULLint lineNum = 0) The new operator is defined for debugging versions of the library only, when the identifier __WXDEBUG__ is defined. It takes over memory allocation, allowing wxDebugContext operations. .SS void delete (void buf) The delete operator is defined for debugging versions of the library only, when the identifier __WXDEBUG__ is defined. It takes over memory deallocation, allowing wxDebugContext operations. .SH "SEE ALSO" wxClassInfo Debugging overview , wxObjectRefData .SH "AUTHORS" Documentation content by Julian Smart, Robert Roebling, Vadim Zeitlin, Robin Dunn, et al Conversion to manpage format by Arnout Engelen (http://bzzt.net), bugreports welcome.