Share

AcAxObjectRefPtr

Class Hierarchy

AcAxObjectRefPtr

C++

template <class T_OBJECT>
class AcAxObjectRefPtr : public AcDbObjectPointer<T_OBJECT>;

File

axobjref.h

Description

The AcAxObjectRefPtr template class extends the AcDbObjectPointer template class, providing smart-pointer support for database-resident and non-database-resident objects. Database-resident objects are maintained in an open state for the lifetime of the AcAxObjectRefPtr instance, unless the pointer is released from the instance.

The AcAxObjectRefPtr class uses the AcAxObjectRef class to abstract the actual object reference. Internally, the AcAxObjectRefPtr class determines whether the object represented by an AcAxObjectRef instance is database-resident or non-database-resident and makes calls to open or close the object as necessary.

AcAxObjectRef instances are detached from the underlying object for the lifetime of the AcAxObjectRefPtr instance and re-attached by the AcAxObjectRefPtr destructor. Callers should reference objects only by their AcAxObjectRefPtr instances from the time they are constructed until they are destroyed.

Links

AcAxObjectRefPtr Constructor

Was this information helpful?