MrSID Decode SDK for LiDAR Reference Manual  1.1.4.4709
Object Class Reference

Object is the base class for implementing reference counting. More...

#include <Object.h>

Inheritance diagram for Object:
IO PointIterator PointSource PointWriter FileIO PointReader SimplePointWriter MG4PointReader TXTPointReader TXTPointWriter

List of all members.

Public Member Functions

int retain (void) const
 Increment the reference count by one.
int release (void) const
 Decrement the reference count by one.

Protected Member Functions

 Object (void)
virtual ~Object (void)

Detailed Description

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.

Definition at line 34 of file Object.h.


Constructor & Destructor Documentation

Object::Object ( void  ) [protected]
virtual Object::~Object ( void  ) [protected, virtual]

Member Function Documentation

int Object::release ( void  ) const

When the reference count goes to zero the object gets deleted.

int Object::retain ( void  ) const

The documentation for this class was generated from the following file: