|
ScL Feature 0.0.1
C++20 composable proxy wrapper with pluggable executor strategy
|
Compile-time method reflection macros for wrapper types. More...
Go to the source code of this file.
Macros | |
| #define | SCL_REFLECT_METHOD(name) |
Generates proxy methods that reflect method from the wrapped object through the executor, for all 8 cv-ref qualifier combinations. | |
Compile-time method reflection macros for wrapper types.
Provides macros to automatically generate proxy methods that forward calls from a wrapper class to the held object through an executor, preserving cv-ref qualifiers exactly.
Every generated overload dispatches through Executor::execute so that executor strategies (e.g. locking executors) can intercept every call.
The executor is located at runtime via scl::feature::executor_trait, which must be specialized for each wrapper type.
SCL_REFLECT_TYPE(Type,Member) (after the executor member declaration).scl::feature::executor_trait for the wrapper type.access(exec) method that returns a reference to the wrapped object; andexecute(exec, callable, args...) method that invokes callable(args...) in the executor's context and returns its result.