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

Constructors for the typified smart pointer. 

 

If pObject is specified, the smart pointer is set to the address of the specified object. If pObject is not specified, the smart pointer is set to a NULL. 

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

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