CFx SDK Documentation
2020SP3
|
Go to the documentation of this file.
24 #ifndef _ODASMARTPOINTER_INCLUDED_
25 #define _ODASMARTPOINTER_INCLUDED_
82 if (m_pObject != pObject)
85 m_pObject =
const_cast<T*
>(pObject);
131 operator bool()
const {
ODA_FAIL();
return false; }
218 m_pObject =
const_cast<T*
>(pObject);
268 m_pObject->release();
285 T* pRes =
static_cast<T*
>(m_pObject);
328 return static_cast<const T*
>(m_pObject);
343 return static_cast<T*
>(m_pObject);
354 return static_cast<T*
>(m_pObject);
364 return static_cast<const T*
>(m_pObject);
377 return const_cast<T*
>(
static_cast<const T*
>(m_pObject));
391 return static_cast<T*
>(m_pObject);
394 operator const T*()
const
396 return static_cast<const T*
>(m_pObject);
403 return (m_pObject==pObject);
413 return (m_pObject!=pObject);
424 #endif // _ODASMARTPOINTER_INCLUDED_
OdSmartPtr & operator=(const OdSmartPtr &pObject)
void assign(const T *pObject)
bool operator==(const OdSmartPtr &pObject) const
void internalQueryX(const OdRxObject *pObject)
bool operator==(const void *pObject) const
OdSmartPtr(const OdRxObject *pObject)
void assign(const OdRxObject *pObject)
OdSmartPtr(const OdSmartPtr &pObject)
bool operator!=(const void *pObject) const
OdSmartPtr(const OdRxObjectPtr &pObject)
virtual OdRxClass * isA() const
OdSmartPtr(const T *pObject, OdRxObjMod)
virtual OdRxObject * queryX(const OdRxClass *pClass) const
OdSmartPtr(const T *pObject)
void attach(OdRxObject *pObject)
OdSmartPtr(OdRxObject *pObject, OdRxObjMod)
bool operator!=(const OdSmartPtr &pObject) const
OdSmartPtr(const OdBaseObjectPtr &pObject)
void attach(const T *pObject)