cubos::core::reflection::WrapperTrait class

Describes the single field of a reflected type.

Constructors, destructors, conversion operators

WrapperTrait(WrapperTrait&& other) noexcept
Constructs.
template<typename F, typename O>
WrapperTrait(F O::* pointer)
Constructs.

Public functions

auto type() const -> const Type&
Gets the type of the single field.
auto value(const void* instance) const -> void*
Gets a pointer to the field on a given instance of the reflected type.

Function documentation

const Type& cubos::core::reflection::WrapperTrait::type() const

Gets the type of the single field.

Returns Type.

void* cubos::core::reflection::WrapperTrait::value(const void* instance) const

Gets a pointer to the field on a given instance of the reflected type.

Parameters
instance Pointer to the instance.
Returns Pointer to the field on the given instance.