29 void *data_ =
nullptr;
58 template<
typename T>
T *
get()
const
61 return static_cast<T *
>(
data_);
66 return type_ !=
nullptr && type_->
is<
T>();
82 const void *data_ =
nullptr;
115 template<
typename T>
const T *
get()
const
118 return static_cast<const T *
>(
data_);
123 return type_ !=
nullptr && type_->
is<
T>();
void destruct(void *ptr) const
GMutablePointer(const CPPType *type, void *data=nullptr)
GMutablePointer(const CPPType &type, void *data=nullptr)
GMutablePointer()=default
const CPPType * type() const
GPointer(const CPPType *type, const void *data=nullptr)
GPointer(GMutablePointer ptr)
GPointer(const CPPType &type, const void *data=nullptr)
const CPPType * type() const