Share

AcDbObjectPointerBase Constructor

Overload List

Method Description
AcDbObjectPointerBase::AcDbObjectPointerBase () This default constructor initializes the internal object pointer to null and sets the open status to Acad::eNullObjectPointer. According to contract, clients are not supposed to dereference the object after the default constructor is called. They would first need to tell the object to acquire ownership of an already opened object using the acquire() member function.
AcDbObjectPointerBase::AcDbObjectPointerBase (AcDbObjectId, AcDb::OpenMode, bool) This constructor is protected, and intended for derived classes to implement their constructors.Opens the object objId with the specified mode. In effect, this function has the same effect as calling acdbOpenObject. This constructor records the error status from acdbOpenObject(), which should be checked using openStatus() before using object() or operator->(). This constructor should be called by derived classes that want to open the object by ID.
AcDbObjectPointerBase::AcDbObjectPointerBase (AcDbObjectPointerBase &) Copy constructor.
AcDbObjectPointerBase::AcDbObjectPointerBase (AcDbObjectPointerBase&&) Copy constructor.
AcDbObjectPointerBase::AcDbObjectPointerBase (T_OBJECT *) Copy constructor.

Was this information helpful?