Go to the documentation of this file.
39 #ifndef __GyotoSmartPointer_H_
40 #define __GyotoSmartPointer_H_
50 class FactoryMessenger;
51 template <
class T>
class SmartPointer;
147 if (
obj &&
obj->decRefCount() == 0) {
148 # if GYOTO_DEBUG_ENABLED
213 obj =
dynamic_cast<T*
>(
const_cast<U*
>(orig()));
286 right.
obj->incRefCount ();
308 if (
obj)
obj->incRefCount();
317 operator T*()
const {
return obj; }
320 operator const T*() {
return obj; }
326 operator bool ()
const {
return obj != NULL; }
332 bool operator! ()
const {
return obj == NULL; }
335 ~SmartPointer< T > () {
decRef(); }