Unravel Engine C++ Reference
Loading...
Searching...
No Matches
unravel::meta_any_proxy::meta_any_proxy_impl Struct Reference

Implementation containing the deferred access functions. More...

#include <inspector.h>

Public Member Functions

auto get (entt::meta_any &result) -> bool
 
auto set (meta_any_proxy &proxy, const entt::meta_any &value, uint64_t execution_count) -> bool
 
void detach ()
 

Public Attributes

std::shared_ptr< meta_any_proxy_implparent
 
std::string type_name
 
std::string name
 
std::function< bool(entt::meta_any &)> resolver
 
std::function< bool(entt::meta_any &)> getter
 
std::function< bool(meta_any_proxy &proxy, const entt::meta_any &, uint64_t execution_count)> setter
 

Detailed Description

Implementation containing the deferred access functions.

These functions are evaluated fresh on each property access, ensuring the property path is validated and navigated safely every time.

Definition at line 223 of file inspector.h.

Member Function Documentation

◆ detach()

void unravel::meta_any_proxy::meta_any_proxy_impl::detach ( )
inline

Definition at line 246 of file inspector.h.

◆ get()

auto unravel::meta_any_proxy::meta_any_proxy_impl::get ( entt::meta_any & result) -> bool
inline

Definition at line 236 of file inspector.h.

◆ set()

auto unravel::meta_any_proxy::meta_any_proxy_impl::set ( meta_any_proxy & proxy,
const entt::meta_any & value,
uint64_t execution_count ) -> bool
inline

Definition at line 241 of file inspector.h.

Member Data Documentation

◆ getter

std::function<bool(entt::meta_any&)> unravel::meta_any_proxy::meta_any_proxy_impl::getter

Function to retrieve the current value by evaluating the property path Returns false if any step in the path is invalid (safe failure)

Definition at line 264 of file inspector.h.

◆ name

std::string unravel::meta_any_proxy::meta_any_proxy_impl::name

Definition at line 233 of file inspector.h.

◆ parent

std::shared_ptr<meta_any_proxy_impl> unravel::meta_any_proxy::meta_any_proxy_impl::parent

Points to the root proxy's impl in a proxy chain. Allows detaching the root from any proxy in the chain (e.g., from the leaf proxy stored in an action).

Definition at line 229 of file inspector.h.

◆ resolver

std::function<bool(entt::meta_any&)> unravel::meta_any_proxy::meta_any_proxy_impl::resolver

Definition at line 260 of file inspector.h.

◆ setter

std::function<bool(meta_any_proxy& proxy, const entt::meta_any&, uint64_t execution_count)> unravel::meta_any_proxy::meta_any_proxy_impl::setter

Function to set a new value by navigating the property path execution_count tracks undo/redo cycles to avoid duplicate recordings

Definition at line 268 of file inspector.h.

◆ type_name

std::string unravel::meta_any_proxy::meta_any_proxy_impl::type_name

Definition at line 231 of file inspector.h.


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