Go to the documentation of this file.
33 #ifndef __XPLC_PTR_H__
34 #define __XPLC_PTR_H__
36 #if defined(__GNUC__) && __GNUC__ > 3
37 # pragma GCC system_header
48 #error "xplc_ptr is experimental!"
60 class ProtectedPtr:
public T {
62 virtual unsigned int addRef() = 0;
63 virtual unsigned int release() = 0;
64 #ifndef __XPLC_DELETE_H__
65 void operator delete(
void*);
105 return static_cast<ProtectedPtr*
>(ptr);
112 operator ProtectedPtr*()
const {
113 return static_cast<ProtectedPtr*
>(ptr);