Base class for all public classes. More...
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. | |
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.
|
inline |
Constructor.
Creates a null object (see IsNull()).
bool cadex::Base_PublicObject::IsNull | ( | ) | const |
Returns true if the object is nullified.
|
inline |
Casts the object to the bool type.
Returns IsNull().