|
LibGimbal
1.0.0
Ultimate C17/C++20 Cross-Language Runtime Framework and Meta Type System
|
Go to the documentation of this file. 1 #ifndef GIMBAL_INSTANCE_HPP
2 #define GIMBAL_INSTANCE_HPP
11 template<
typename CRTP>
15 return static_cast<CRTP*
>(
this)->instancePtr_();
19 return static_cast<const CRTP*
>(
this)->instancePtr_();
27 return GblClass_refCount(
class_());
54 template<
typename CRTP>
58 return static_cast<CRTP*
>(
this)->instancePtr_();
62 return static_cast<const CRTP*
>(
this)->instancePtr_();
78 #endif // GIMBAL_INSTANCE_HPP
const GblInstance * instance_(void) const
ClassRef getClass(void) const
const GblClass * class_(void) const
GblClass * instancePtr_(void)
ClassRef(GblClass *pClass)
#define GBL_INSTANCE_TYPE(instance)
const GblClass * instancePtr_(void) const
GblInstance * instance_(void)
RefCount getRefCount(void) const
GBL_EXPORT GblType GblType_fromClass(const GblClass *pClass) GBL_NOEXCEPT
GBL_EXPORT GblRefCount GblClass_unref(SELF) GBL_NOEXCEPT
GBL_INLINE GblClass * GblClass_refFromClass(SELF) GBL_NOEXCEPT