Close

Relief for ODA Team in Ukraine

Learn more
ODA Kernel SDK
OdSharedPtr<class T> Template
Syntax
C++
template <class T> class OdSharedPtr;

This template class implements SharedPointers for instances not derived from OdRxObject.

SharedPointers relieve the programmer of having to determine when objects are no longer needed, or having to delete them them at that time. 

Each object referenced by a SharedPointer (henceforth 'referenced object') has associated with it a reference count; i.e., how many SharedPointers are referencing it. When the reference count reaches zero, the referenced object is deleted. 

Corresponding C++ library: TD_Root

OdSharedPtr@classT

File: SharedPtr.h 

Module: API Reference 

Copyright © 2002-2022. Open Design Alliance All rights reserved.