35 #ifndef QORE_REFERENCE_HOLDER_H_ 36 #define QORE_REFERENCE_HOLDER_H_ 51 template<
typename T =
class AbstractQoreNode>
56 DLLLOCAL
void*
operator new(size_t);
84 DLLLOCAL
void operator=(T *nv) {
98 DLLLOCAL
operator bool()
const {
return p != 0; }
122 DLLLOCAL
void*
operator new(size_t);
139 DLLLOCAL T* operator->() {
return p; }
140 DLLLOCAL T* operator*() {
return p; }
141 DLLLOCAL
const T* operator->()
const {
return p; }
142 DLLLOCAL
const T* operator*()
const {
return p; }
143 DLLLOCAL
void operator=(T *nv) {
148 DLLLOCAL T *release() {
153 DLLLOCAL
operator bool()
const {
return p != 0; }
DLLLOCAL T ** getPtrPtr()
returns a pointer to the pointer being managed
Definition: ReferenceHolder.h:101
DLLLOCAL T * release()
releases the pointer to the caller
Definition: ReferenceHolder.h:91
DLLLOCAL T * operator*()
returns the pointer being managed
Definition: ReferenceHolder.h:75
DLLLOCAL ~ReferenceHolder()
calls deref(ExceptionSink *) on the pointer being managed if not 0
Definition: ReferenceHolder.h:69
DLLLOCAL T *& getRef()
returns a reference to the ptr being managed
Definition: ReferenceHolder.h:104
container for holding Qore-language exception information and also for registering a "thread_exit" ca...
Definition: ExceptionSink.h:46
manages a reference count of a pointer to a class that takes a simple "deref()" call with no argument...
Definition: ReferenceHolder.h:118
DLLLOCAL T * operator->()
returns the pointer being managed
Definition: ReferenceHolder.h:72
a templated class to manage a reference count of an object that can throw a Qore-language exception w...
Definition: ReferenceHolder.h:52