21 void *data_ =
nullptr;
29 BLI_assert(data_ ==
nullptr || type_ !=
nullptr);
36 requires(!std::is_void_v<T>)
53 return data_ !=
nullptr;
56 template<
typename T>
T *
get()
const
59 return static_cast<T *
>(data_);
64 return type_ !=
nullptr && type_->is<
T>();
71 type_->relocate_assign(data_, &value);
80 type_->destruct(data_);
90 const void *data_ =
nullptr;
100 BLI_assert(data_ ==
nullptr || type_ !=
nullptr);
107 requires(!std::is_void_v<T>)
112 operator bool()
const
114 return data_ !=
nullptr;
127 template<
typename T>
const T *
get()
const
130 return static_cast<const T *
>(data_);
135 return type_ !=
nullptr && type_->is<
T>();
GMutablePointer(const CPPType *type, void *data=nullptr)
GMutablePointer()=default
const CPPType * type() const
GMutablePointer(const CPPType &type, void *data=nullptr)
GPointer(GMutablePointer ptr)
const CPPType * type() const
GPointer(const CPPType &type, const void *data=nullptr)
GPointer(const CPPType *type, const void *data=nullptr)
BLI_assert(slot->slot_subtype.map==BMO_OP_SLOT_SUBTYPE_MAP_FLT)
BMesh const char void * data