API Reference > Other Classes > OdClsIdSmartPtr Template > OdClsIdSmartPtr Constructor > OdClsIdSmartPtr::OdClsIdSmartPtr Constructor ()
OdClsIdSmartPtr::OdClsIdSmartPtr Constructor ()
Syntax
C++
inline OdClsIdSmartPtr(); inline OdClsIdSmartPtr(const T* pObject, OdRxObjMod); inline OdClsIdSmartPtr(const T* pObject); inline OdClsIdSmartPtr(const OdRxObject* pObject); inline OdClsIdSmartPtr(OdRxObject* pObject, OdRxObjMod); inline OdClsIdSmartPtr(const OdClsIdSmartPtr& pObject); inline OdClsIdSmartPtr(const OdRxObjectPtr& pObject); inline OdClsIdSmartPtr(const OdBaseObjectPtr& pObject);
Parameters 
Description 
const T* pObject 
[in] Pointer to the object to be assigned to the new SmartPointer object. 

If pObject is specified, the specified object is assigned to this SmartPointer object. 

If OdRxObjMod or const OdBaseObjectPtr& are specified, the reference count of the referenced object is not incremented.

Copyright © 2002–2020. Open Design Alliance. All rights reserved.