object.h File Reference


Classes

class  wxObjectRefData
 This class is used to store reference-counted data. More...
class  wxObject
 This is the root class of many of the wxWidgets classes. More...
class  wxClassInfo
 This class stores meta-information about classes. More...
class  wxObjectDataPtr< T >
 This is an helper template class primarily written to avoid memory leaks because of missing calls to wxObjectRefData::DecRef(). More...

Defines

#define CLASSINFO(className)
 Returns a pointer to the wxClassInfo object associated with this class.
#define DECLARE_CLASS(className)
 Used inside a class declaration to declare that the class should be made known to the class hierarchy, but objects of this class cannot be created dynamically.
#define DECLARE_ABSTRACT_CLASS(className)
 Used inside a class declaration to declare that the class should be made known to the class hierarchy, but objects of this class cannot be created dynamically.
#define DECLARE_DYNAMIC_CLASS(className)
 Used inside a class declaration to make the class known to wxWidgets RTTI system and also declare that the objects of this class should be dynamically creatable from run-time type information.
#define IMPLEMENT_CLASS(className, baseClassName)
 Used in a C++ implementation file to complete the declaration of a class that has run-time type information.
#define IMPLEMENT_CLASS2(className, baseClassName1, baseClassName2)
 Used in a C++ implementation file to complete the declaration of a class that has run-time type information and two base classes.
#define IMPLEMENT_ABSTRACT_CLASS(className, baseClassName)
 Used in a C++ implementation file to complete the declaration of a class that has run-time type information.
#define IMPLEMENT_ABSTRACT_CLASS2(className, baseClassName1, baseClassName2)
 Used in a C++ implementation file to complete the declaration of a class that has run-time type information and two base classes.
#define IMPLEMENT_DYNAMIC_CLASS(className, baseClassName)
 Used in a C++ implementation file to complete the declaration of a class that has run-time type information, and whose instances can be created dynamically.
#define IMPLEMENT_DYNAMIC_CLASS2(className, baseClassName1, baseClassName2)
 Used in a C++ implementation file to complete the declaration of a class that has run-time type information, and whose instances can be created dynamically.
#define wx_const_cast(T, x)
 Same as const_cast<T>(x) if the compiler supports const cast or (T)x for old compilers.
#define wx_reinterpret_cast(T, x)
 Same as reinterpret_cast<T>(x) if the compiler supports reinterpret cast or (T)x for old compilers.
#define wx_static_cast(T, x)
 Same as static_cast<T>(x) if the compiler supports static cast or (T)x for old compilers.
#define wx_truncate_cast(T, x)
 This case doesn’t correspond to any standard cast but exists solely to make casts which possibly result in a truncation of an integer value more readable.
#define wxConstCast(ptr, classname)
 This macro expands into const_cast<classname *>(ptr) if the compiler supports const_cast or into an old, C-style cast, otherwise.
#define wxDynamicCast(ptr, classname)
 This macro returns the pointer ptr cast to the type classname * if the pointer is of this type (the check is done during the run-time) or NULL otherwise.
#define wxDynamicCastThis(classname)
 This macro is equivalent to wxDynamicCast(this, classname) but the latter provokes spurious compilation warnings from some compilers (because it tests whether this pointer is non-NULL which is always true), so this macro should be used to avoid them.
#define wxStaticCast(ptr, classname)
 This macro checks that the cast is valid in debug mode (an assert failure will result if wxDynamicCast(ptr, classname) == NULL) and then returns the result of executing an equivalent of static_cast<classname *>(ptr).
#define WXDEBUG_NEW(arg)
 This is defined in debug mode to be call the redefined new operator with filename and line number arguments.

Functions

wxObjectwxCreateDynamicObject (const wxString &className)
 Creates and returns an object of the given class, if the class has been registered with the dynamic class system using DECLARE.



wxWidgets logo

[ top ]