Artec 3D Scanning SDK  2.0
Classes | Namespaces | Macros
RefBase.h File Reference

Go to the source code of this file.

Classes

class  artec::sdk::base::details::RefCounter
 Basic reference implementation of IRef interface. More...
 
class  artec::sdk::base::RefBase< Interface >
 Implementation of IRef interface. To create your own class, inherit it from RefBase. More...
 

Namespaces

 artec
 
 artec::sdk
 
 artec::sdk::base
 
 artec::sdk::base::details
 

Macros

#define IMPLEMENT_IREF
 

Macro Definition Documentation

#define IMPLEMENT_IREF
Value:
virtual int addRef() const \
{ \
return ref_.addRef(); \
} \
virtual int release() const \
{ \
long refCount = ref_.release(); \
if (refCount == 0) \
delete this; \
\
return refCount; \
} \
private: \
artec::sdk::base::details::RefCounter ref_; \
public:

Definition at line 18 of file RefBase.h.