MrSID Decode SDK for LiDAR Reference Manual
1.1.4.4709
|
Object is the base class for implementing reference counting. More...
#include <Object.h>
Public Member Functions | |
int | retain (void) const |
Increment the reference count by one. More... | |
int | release (void) const |
Decrement the reference count by one. More... | |
Protected Member Functions | |
Object (void) | |
virtual | ~Object (void) |
The Object class is a base for implementing reference counting. When an object is created, it has a reference count of 1. When an object is retained, the reference count is incremented. When it is released the reference count is decremented, and when the reference count goes to zero the object gets deleted.
Derived classes should supply a static create() function to allocate new objects.
Constructors and destructors should be protected so users must go through the create/retain/release functions.
|
protected |
|
protectedvirtual |
int Object::release | ( | void | ) | const |
When the reference count goes to zero the object gets deleted.
int Object::retain | ( | void | ) | const |
LizardTech |