Hide menu
cadex::Base_PublicObject Class Reference

Base class for all public classes. More...

Inheritance diagram for cadex::Base_PublicObject:
cadex::ModelData_PMIGraphicalElementComponent cadex::ModelData_PMIOutline cadex::ModelPrs_BackgroundStyle cadex::ModelPrs_Exploder cadex::ModelPrs_Geometry cadex::ModelPrs_Manipulator cadex::ModelPrs_Measurement cadex::ModelPrs_MeasurementFactory cadex::ModelPrs_OffscreenViewPort cadex::ModelPrs_Scene cadex::ModelPrs_SceneNode cadex::ModelPrs_SceneNodeFactory cadex::ModelPrs_SceneNodeFactoryParameters cadex::ModelPrs_Selection cadex::ModelPrs_SelectionManager cadex::ModelPrs_ViewCubeStyle

Public Member Functions

 Base_PublicObject ()
 Constructor. More...
void Nullify ()
 Resets reference to implementation object.
bool IsNull () const
 Returns true if the object is nullified. More...
 operator bool () const
 Casts the object to the bool type. More...
internal::Base_HandledObject * Impl () const
 Return a handle to backend (reserved for internal use).
const internal::Base_Handle & HImpl () const
template<typename T >
T * Impl () const
 Reserved for internal use.
bool operator== (const Base_PublicObject &theObject) const
bool operator!= (const Base_PublicObject &theObject) const

Protected Member Functions

 Base_PublicObject (const internal::Base_HandledObject *theObject)
 Constructor (reserved for internal use).
template<typename T >
T * GetOrCreateImpl ()
 Reserved for internal use.

Detailed Description

Base class for all public classes.

Base_PublicObject is a base class which contains data implementation of public objects. Any copy of the object is shallow copy: pointer to implementation will be copied. Therefore any modification of the copied object will propagate to original object.

Constructor & Destructor Documentation

◆ Base_PublicObject()

cadex::Base_PublicObject::Base_PublicObject ( )


Creates a null object (see IsNull()).

Member Function Documentation

◆ IsNull()

bool cadex::Base_PublicObject::IsNull ( ) const

Returns true if the object is nullified.

See also
visualization/qtquick_qml/manipulator/main.cxx, and visualization/qtquick_qml/measurements/main.cxx.

◆ operator bool()

cadex::Base_PublicObject::operator bool ( ) const

Casts the object to the bool type.

Returns IsNull().