Artec 3D Scanning SDK  2.0
Public Member Functions | List of all members
artec::sdk::base::IRef Class Referenceabstract

Interface that implements reference counting and life-time management. More...

#include <artec/sdk/base/IRef.h>

+ Inheritance diagram for artec::sdk::base::IRef:

Public Member Functions

virtual int addRef () const =0
 Increase object reference counter. More...
 
virtual int release () const =0
 Decrease object reference counter. More...
 

Detailed Description

Interface that implements reference counting and life-time management.

It allows to release each object once it is not being used anymore.

Definition at line 22 of file IRef.h.

Member Function Documentation

virtual int artec::sdk::base::IRef::addRef ( ) const
pure virtual

Increase object reference counter.

Returns
Counter value
virtual int artec::sdk::base::IRef::release ( ) const
pure virtual

Decrease object reference counter.

Destroy object and free allocated memory when counter = 0.

Returns
Counter value

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