10 /* read doc/iObject about the ePtrHelper */
16 inline ePtrHelper(T1 *obj): m_obj(obj)
24 inline T1* operator->() { return m_obj; }
29 T &operator*() { return *ptr; }
54 ePtr &operator=(ePtr<T> &c)
69 T* &ptrref() { assert(!ptr); return ptr; }
70 ePtrHelper<T> operator->() { assert(ptr); return ePtrHelper<T>(ptr); }
72 /* for const objects, we don't need the helper, as they can't */
73 /* be changed outside the program flow. at least this is */
74 /* what the compiler assumes, so in case you're using const */
75 /* ePtrs note that they have to be const. */
76 const T* operator->() const { assert(ptr); return ptr; }
77 operator T*() const { return this->ptr; }