API Reference > Other Classes > OdBaseObjectPtr Class
OdBaseObjectPtr Class
OdBaseObjectPtrOdBaseObjectPtrOdBaseObjectPtrOdBaseObjectPtr
Syntax
C++
class OdBaseObjectPtr;

BaseObjectPtr.h

 

This class is the base class for typified smart pointers.

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

Each object referenced by a SmartPointer (henceforth 'referenced object') maintains a reference count; i.e., how many SmartPointers are referencing it. When the reference count reaches zero, the referenced object is deleted.

TD_Db 

Overview of Smart Pointer Classes 

 
Name 
Description 
 
get 
Returns the raw pointer to the referenced object. 
 
Returns true if and only if the smart pointer stores a NULL. 
Copyright © 2002–2020. Open Design Alliance. All rights reserved.