[VisAPI Index] [VisAPI Hierarchy]
Base class for all objects in the VisApi. More...
#include <VisApi/platform.h>
Specifies the basic functionality of objects in the VisApi: A reference counter to be able to provide cleaner interfaces in cases where instances of objects are returned. Allocation/Deallocation specification - an extension to the simple construction, destruction scheme where objects can be instanciated without being initialized (allocated).
virtual bool instanceOf(visClassId id) { if (id == Id) return true; return ::instanceOf(id); }
Constructor sets reference count to one and allocated to false.
Destructor.
Allocate object. Parameters may be added in sub classes.
Deallocate object and free resources. Is internally called by the destructor and reallocations.
Returns true if object is allocated with the allocate() method.
Overloading of the operator delete. On some systems this might make trouble when using with const pointers so you should prefer the decRef() method.
Return number of references to this object. Initial value at construction time is one. If this values becomes zero then this object deletes itself.
Increment number of refences by one.
Decrement number of refences by one. If this values becomes zero then this object deletes itself.
Call this method to sign a substancial change in this object. If you do so then properly document this behavour in all methods and conditions that cause this change. Also think of adding new methods to handle changes. E.g. if members of an array change then you could add methods like isModified() in the public declaration or a change of a window size could result in a new method like isChangedWindowSize() etc.
Number of references.
True if allocated.
| Kdoc |