|
MrSID Decode SDK for LiDAR Reference Manual
1.1.4.4709
|
Scoped is a wrapper class around Object that gives it block scoping. More...
#include <Object.h>
Public Member Functions | |
| ~Scoped (void) | |
| Releases the object when Scoped<> goes out of scope. More... | |
| Scoped (void) | |
| Create an object on the heap. More... | |
| Scoped (TYPE *object) | |
| Manage an existing object. More... | |
| Scoped & | operator= (TYPE *object) |
| Assignment operator. More... | |
| Scoped & | operator= (const TYPE *object) |
| Scoped (const Scoped &object) | |
| Copy constructor. More... | |
| Scoped & | operator= (const Scoped &object) |
| Assignment operator. More... | |
| TYPE * | operator-> (void) |
| Make Scoped behave like a pointer to TYPE. More... | |
| const TYPE * | operator-> (void) const |
| TYPE & | operator* (void) |
| Make Scoped behave like a pointer to TYPE. More... | |
| const TYPE & | operator* (void) const |
| operator TYPE *& (void) | |
| Make Scoped behave like a pointer to TYPE. More... | |
| operator const TYPE *& (void) const | |
Scoped is convenience class that give block scoping to reference counted Objects. Scoped<TYPE> tries to act like a TYPE *.
As a convenience class you don't have to use it. Some people find it easier to manage the reference counting themselves.
Example: Without Scoped:
With Scoped:
|
inline |
|
inline |
|
inline |
|
inline |
|
inline |
|
inline |
| LizardTech |