Metadata of an object that is being reflected. This is used for serialization and deserialization.
More...
#include <ReflectedObject.hpp>
|
| std::string | Name |
| | Visible name of the object.
|
| std::string | Category |
| | Object category, used for grouping objects in the editor.
|
| std::string | Description |
| | Object description.
|
| UUID | ObjectUUID |
| | Object UUID.
|
| std::function< void *()> | CreateBlankObject |
| | Creates a blank object of the reflected type in heap memory.
|
Metadata of an object that is being reflected. This is used for serialization and deserialization.
◆ ReflectedObject() [1/4]
template<ReflectableObject O>
| Engine3DRadSpace.Reflection::ReflectedObject::ReflectedObject |
( |
ObjectTag< O > | tag, |
|
|
const std::string & | name, |
|
|
const std::string & | category, |
|
|
const std::string & | desc, |
|
|
std::initializer_list< IReflectedField * > | obj_fields ) |
|
inline |
Constructs metadata of an object that is being reflected.
- Template Parameters
-
- Parameters
-
| tag | {} |
| name | visible object name |
| category | object category |
| desc | object description |
| obj_fields | list of fields, attributes, functions, et cetera |
◆ ReflectedObject() [2/4]
| ReflectedObject::ReflectedObject |
( |
const std::string & | name, |
|
|
const std::string & | category, |
|
|
const std::string & | desc, |
|
|
const std::span< IReflectedField * > | obj_fields, |
|
|
const UUID & | uuid ) |
Constructs metadata of an object that is being reflected.
- Template Parameters
-
- Parameters
-
| uuid | UUID of the object |
| name | visible object name |
| category | object category |
| desc | object description |
| obj_fields | list of fields, attributes, functions, et cetera |
◆ ReflectedObject() [3/4]
| Engine3DRadSpace.Reflection::ReflectedObject::ReflectedObject |
( |
const ReflectedObject & | other | ) |
|
|
default |
◆ ReflectedObject() [4/4]
| Engine3DRadSpace.Reflection::ReflectedObject::ReflectedObject |
( |
ReflectedObject && | other | ) |
|
|
defaultnoexcept |
◆ ~ReflectedObject()
| ReflectedObject::~ReflectedObject |
( |
| ) |
|
◆ begin()
◆ Clone()
Performs a deep clone of the metadata.
- Returns
◆ end()
◆ NumFields()
| size_t ReflectedObject::NumFields |
( |
| ) |
const |
|
noexcept |
Returns the number of fields (including functions and attributes).
- Returns
◆ operator=() [1/2]
◆ operator=() [2/2]
◆ operator[]() [1/2]
| const IReflectedField * ReflectedObject::operator[] |
( |
const std::string & | name | ) |
|
Returns the field with the given name (including functions and attributes).
- Parameters
-
| name | name of the field/attribute/function |
- Returns
- reflected field
◆ operator[]() [2/2]
Returns the i-th field (including functions and attributes).
- Parameters
-
- Returns
- field metadata
◆ Category
| std::string Engine3DRadSpace.Reflection::ReflectedObject::Category |
Object category, used for grouping objects in the editor.
◆ CreateBlankObject
| std::function<void*()> Engine3DRadSpace.Reflection::ReflectedObject::CreateBlankObject |
Creates a blank object of the reflected type in heap memory.
◆ Description
| std::string Engine3DRadSpace.Reflection::ReflectedObject::Description |
◆ Name
| std::string Engine3DRadSpace.Reflection::ReflectedObject::Name |
Visible name of the object.
◆ ObjectUUID
| UUID Engine3DRadSpace.Reflection::ReflectedObject::ObjectUUID |
The documentation for this class was generated from the following files: