Hide menu
Loading...
Searching...
No Matches
cadex::Base_PublicObject Class Reference

Base class for all public classes. More...

#include <cadex/Base_PublicObject.hxx>

Inheritance diagram for cadex::Base_PublicObject:
cadex::ModelData_BIMBaseObject cadex::ModelData_BIMMaterial cadex::ModelData_BIMPropertyLibrary cadex::ModelData_PMIGraphicalElementComponent cadex::ModelData_PMIOutline cadex::ModelData_BIMElement cadex::ModelData_BIMHost cadex::ModelData_PMIOutlinedComponent cadex::ModelData_PMITextComponent cadex::ModelData_PMITriangulatedComponent cadex::ModelData_PMICompositeOutline cadex::ModelData_PMICurve2dOutline cadex::ModelData_PMICurveOutline cadex::ModelData_PMIPoly2dOutline cadex::ModelData_PMIPolyOutline

Public Member Functions

void Nullify ()
 Resets reference to implementation object.
 
bool IsNull () const
 Returns true if the object is nullified.
 
 operator bool () const
 Casts the object to the bool type.
 
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.

Examples
visualization/wpf/selectionhandling/App.xaml.cs.

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