Toast Engine
Loading...
Searching...
No Matches
toast::FieldAccess< Class, FieldType, Tag > Struct Template Reference

Generated getter/setter pair binding a private member pointer to the FieldInfo interface. More...

#include <reflect.hpp>

Inheritance diagram for toast::FieldAccess< Class, FieldType, Tag >:

Static Public Member Functions

static auto get (void *obj) -> std::any
static void set (void *obj, std::any value)

Detailed Description

template<class Class, typename FieldType, typename Tag>
struct toast::FieldAccess< Class, FieldType, Tag >

Generated getter/setter pair binding a private member pointer to the FieldInfo interface.

Produced by the reflection code generator using the Robber pattern in toast::_detail. Allows the inspector and serialization layer to read and write private fields without modifying the Node class header.

Template Parameters
ClassThe Node subtype that owns the field
FieldTypeThe C++ type of the field
TagTag type that holds the pointer-to-member via Accessor<Tag>::member

The documentation for this struct was generated from the following file: