A round of new universal capabilities (all generic — templated/reflection based, no app coupling), verified by the test suite (1103 passing): Data reflection: - Reflect.hpp now (de)serializes chrono::duration, chrono::time_point, std::variant (tagged), std::array, and non-string-keyed std::map; Meta.hpp gains is_time_point_v et al. Async: - EventBus gains Mode::Async (worker-thread dispatch + flush()). - ThreadPool gains a bounded queue, try_submit(), and rejection stats. New modules / containers: - Resilience: TokenBucket, KeyedRateLimiter<Key>, CircuitBreaker, ResourceMonitor. - Containers: BufferPool<T> (size-class buffer reuse) and Cache<K,V> (per-entry TTL, LRU/LFU/FIFO eviction, hit/miss stats). - System: process/CPU/memory metrics (Metrics.hpp) and a streaming Process API. Plus FSM v2 (typed Success/Failure, sub-machines, parallel regions, history states, deferred events), Configuration/Logging reflection helpers, and the accompanying test suites. Co-Authored-By: Claude Opus 4.8 <noreply@anthropic.com>
17 lines
889 B
C++
17 lines
889 B
C++
#pragma once
|
|
|
|
// Umbrella header for the FSM module. The implementation is split for
|
|
// maintainability:
|
|
// - Machine.hpp — the Machine<Derived> template, the nested State
|
|
// base, lifecycle, events, nesting, persistence.
|
|
// - Detail/StateList.hpp — reflection over the nested `struct States { … }`
|
|
// (auto-registration, initial-state, membership).
|
|
// - Detail/Roles.hpp — signature-inferred state roles (entry,
|
|
// startup-entry, continuation handlers).
|
|
// - Detail/Awaiter.hpp — the unified event awaiter.
|
|
// - Detail/Introspect.hpp — StateInfo + to_mermaid (node-level diagram).
|
|
// - Detail/Engine.{hpp,cpp} — the non-template execution context.
|
|
// Include <Void/Fsm/Fsm.hpp> to get the whole machine API as before.
|
|
|
|
#include <Void/Fsm/Machine.hpp>
|