CAD Exchanger SDK
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_Geometry cadex::ModelPrs_OffscreenViewPort cadex::ModelPrs_Scene cadex::ModelPrs_Scene::ChangesObserver cadex::ModelPrs_SceneNode cadex::ModelPrs_SceneNodeFactory cadex::ModelPrs_SceneNodeFactoryParameters cadex::ModelPrs_Selection 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).
 

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 ( )
inline

Constructor.

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
Nullify().

◆ operator bool()

cadex::Base_PublicObject::operator bool ( ) const
inline

Casts the object to the bool type.

Returns IsNull().