MayaFlux 1.0.0
Digital-First Multimedia Processing Framework
Loading...
Searching...
No Matches

◆ MF_LIVE_EXPOSE_AUTO

#define MF_LIVE_EXPOSE_AUTO (   ptr)
Value:
do { \
using _MfT = typename std::remove_cvref_t<decltype(ptr)>::element_type; \
::MayaFlux::expose_live_indexed( \
::MayaFlux::internal::live_type_name<_MfT>(), (ptr)); \
} \
} while (0)
const uint8_t * ptr
bool live_exposure_enabled() noexcept
Reports whether live exposure has been enabled.
Definition LiveArena.cpp:14

Auto-expose variant that deduces the key prefix from the shared_ptr element type.

Generates keys of the form "TypeName_N" where N is the first index not yet taken for that type, so each type keeps one sequence across every call site: Sine_0, Sine_1, Phasor_0, Phasor_1, etc.

Use when no explicit name is available at the call site (e.g. read_* methods).

Parameters
ptrshared_ptr whose element_type drives the key prefix.

Definition at line 281 of file LiveArena.hpp.

282 { \
284 using _MfT = typename std::remove_cvref_t<decltype(ptr)>::element_type; \
285 ::MayaFlux::expose_live_indexed( \
286 ::MayaFlux::internal::live_type_name<_MfT>(), (ptr)); \
287 } \
288 } while (0)