RefBase.h File Reference

Go to the source code of this file.

Classes

class  artec::sdk::base::details::RefCounter
 
class  artec::sdk::base::RefBase< Interface >
 

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.