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)
70 T* grabRef() { if (!ptr) return 0; ptr->AddRef(); return ptr; }
71 T* &ptrref() { assert(!ptr); return ptr; }
72 ePtrHelper<T> operator->() { assert(ptr); return ePtrHelper<T>(ptr); }
74 /* for const objects, we don't need the helper, as they can't */
75 /* be changed outside the program flow. at least this is */
76 /* what the compiler assumes, so in case you're using const */
77 /* ePtrs note that they have to be const. */
78 const T* operator->() const { assert(ptr); return ptr; }
79 operator T*() const { return this->ptr; }