14#include "Refureku/TypeInfo/Variables/FieldBase.h"
27 Entity const* outerEntity =
nullptr)
noexcept;
34 Entity const* outerEntity =
nullptr)
noexcept;
53 template <
typename ValueType>
54 RFK_NODISCARD ValueType
get()
const;
68 template <
typename ValueType>
69 void set(ValueType&& value)
const;
80 REFUREKU_API
void set(
void const* valuePtr,
81 std::size_t valueSize)
const;
89 RFK_NODISCARD REFUREKU_API
void*
getPtr()
const;
96 RFK_NODISCARD REFUREKU_API
void const*
getConstPtr() const noexcept;
100 class StaticFieldImpl;
102 RFK_GEN_GET_PIMPL(StaticFieldImpl,
Entity::getPimpl())
108 #include "Refureku/TypeInfo/Variables/StaticField.inl"
Definition: Allocator.h:19
Definition: FieldBase.h:20
Definition: StaticField.h:19
RFK_NODISCARD REFUREKU_API void * getPtr() const
Get a non-const pointer to this static field. Performing non-const operations on the pointer if the s...
REFUREKU_API void set(void const *valuePtr, std::size_t valueSize) const
Copy dataSize bytes starting from data into the static field. This method is not safe if you provide ...
void set(ValueType &&value) const
Set the data corresponding to this static field. This method is not safe if you provide a wrong Value...
RFK_NODISCARD REFUREKU_API void const * getConstPtr() const noexcept
Get a const pointer to this static field.
RFK_NODISCARD ValueType get() const
Get the data corresponding to this static field. This method in not safe if you provide a wrong Value...
Definition: Allocator.h:16
EFieldFlags
Definition: EFieldFlags.h:16