VCF::Object Class Reference
Base class for the entire Visual Component Framework. More...
#include <vcf/FoundationKit/Object.h>
Inheritance diagram for VCF::Object:

Public Member Functions | |
| Object () | |
| Object (const Object &obj) | |
| virtual | ~Object () |
| virtual long | addRef (Object *owner=NULL) |
| increments the reference count of the object | |
| virtual long | release (Object *owner=NULL) |
| decrements the reference count of the object | |
| long | getRefCount () const |
| returns the number of outstanding references for this object | |
| virtual String | toString () const |
| returns a string representation of the object | |
| virtual void | setFromString (const String &val) |
| provides a simple to initialize the object from a string. | |
| String | getClassName () const |
| returns the class name of the object. | |
| virtual bool | isEqual (Object *object) const |
| This determines if object is equal to this the equivalent of operator ==(). | |
| virtual void | copy (Object *source) |
| Copies the data from source to this object. | |
| virtual Object * | clone (bool deep=false) const |
| Makes a complete clone of this object. | |
| Object & | operator= (const Object &rhs) |
| Class * | getClass () const |
| returns the RTTI Class instance associated object of this type | |
| virtual uintptr | hash () const |
| returns a hash value that represents the object instance | |
| virtual uint64 | sizeOf () const |
| Returns the size of this instance. | |
| uint32 | totalAllocatedObjectMemory () |
Static Public Member Functions | |
| static void | trackDebugMemory (const bool &trackMemory) |
| indicates whether or not debug memory should be tracked. | |
| static bool | isDebugMemoryTracked () |
| returns whether or not debug memory tracking is on | |
| static uint32 | objectAllocationCount () |
| returns the total number of objects currently allocated. | |
Protected Attributes | |
| AtomicCount | refCount_ |
Detailed Description
Base class for the entire Visual Component Framework.
Constructor & Destructor Documentation
|
|
|
|
|
|
|
|
|
Member Function Documentation
|
|
increments the reference count of the object
|
|
|
Makes a complete clone of this object. A typical implementation might be: In which the implementer simply creates a new instance on the heap and calls the copy constructor. Objects which support cloning should also have a copy constructor defined as well.
Reimplemented in VCF::ComponentEvent, VCF::Dictionary, VCF::Event, VCF::OutputReadyEvent, VCF::PropertyChangeEvent, VCF::ThreadEvent, VCF::DefaultMenuItem, VCF::XmlNode, and VCF::XmlDocument. |
|
|
Copies the data from source to this object. This is the equivalent of operator=() Reimplemented in VCF::Color, VCF::Font, and VCF::Matrix2D. |
|
|
returns the RTTI Class instance associated object of this type
|
|
|
returns the class name of the object.
|
|
|
returns the number of outstanding references for this object
|
|
|
returns a hash value that represents the object instance
|
|
|
returns whether or not debug memory tracking is on
|
|
|
This determines if object is equal to this the equivalent of operator ==().
Reimplemented in VCF::Matrix2D. |
|
|
returns the total number of objects currently allocated. Only meaningful for _DEBUG builds with memory tracking turned on.
|
|
|
|
|
|
decrements the reference count of the object
|
|
|
provides a simple to initialize the object from a string.
Reimplemented in VCF::Enum, and VCF::Color. |
|
|
Returns the size of this instance. This may be signifigantly bigger than, say, sizeof(Object). For example, if your class derives from Object, and has list of other objects, (such as a Component), and various other bits, then these may not all show up in the value returned by sizeof(). Take a vector, a vector of ints or a vector of Object uses up 16 bytes, as reported by sizeof(). But the actual memory used will be quite different, partially dependent on how many items are in the vector. Hence the existence of this function, which allows people to implement something that does a better job of reporting how much memory the object in quest is actually using. The default implementation simply returns sizeof(Object). Reimplemented in VCF::DefaultTreeModel, VCF::TreeControl, and VCF::TreeItem. |
|
|
returns a string representation of the object
Reimplemented in VCF::DateTime, VCF::PropertyListing, VCF::XMLAttr, VCF::XMLNode, VCF::Color, VCF::Point, VCF::Rect, VCF::Size, VCFCOM::DataRendering, VCF::XmlNode, and VCF::XmlDocument. |
|
|
|
|
|
indicates whether or not debug memory should be tracked. Note that debug memory is tracked only in debug builds (meaning the VCF has been compiled with the _DEBUG symbol defined). Memory tracking is turned off for release builds.
|
Member Data Documentation
|
|
|
The documentation for this class was generated from the following file:
- vcf/FoundationKit/Object.h
