Skip to content

EntropyEngine::Core

Name
EntropyEngine::Core::TypeSystem
EntropyEngine::Core::Logging
EntropyEngine::Core::IO
EntropyEngine::Core::Graph
EntropyEngine::Core::Debug
EntropyEngine::Core::Concurrency
Name
structEntropyEngine::Core::retain_t
structEntropyEngine::Core::adopt_t
classEntropyEngine::Core::WeakRef
Non-owning weak reference to an EntropyObject with generation validation.
structEntropyEngine::Core::WeakControlBlock
Control block for handling safe weak references to EntropyObjects.
classEntropyEngine::Core::TimerService
Service for managing timers with WorkGraph backing.
classEntropyEngine::Core::Timer
A scheduled task that executes after a delay, optionally repeating.
classEntropyEngine::Core::SlotPool
Slot-based pool with generation-based handle validation.
structEntropyEngine::Core::SlotGeneration
Generation counter component for slot-based pools.
structEntropyEngine::Core::RefPtrHash
structEntropyEngine::Core::RefPtrEq
classEntropyEngine::Core::RefObject
structEntropyEngine::Core::HandleSlotOps
Operations for stamping, validating, and releasing handles in slot-based pools.
structEntropyEngine::Core::HandleAccess
Helper allowing owners to stamp/clear identity without friending each derived type.
classEntropyEngine::Core::EventBus
Type-safe publish-subscribe event system for decoupled communication.
classEntropyEngine::Core::EntropyServiceRegistry
Registry and lifecycle orchestrator for EntropyService instances.
classEntropyEngine::Core::EntropyService
Base interface for pluggable services within Entropy.
structEntropyEngine::Core::EntropyObjectMemoryHooks
Memory profiling callbacks for EntropyObject lifecycle tracking.
classEntropyEngine::Core::EntropyObject
Ref-counted base with optional handle stamping and basic introspection.
structEntropyEngine::Core::EntropyDeleter
structEntropyEngine::Core::EntropyApplicationConfig
classEntropyEngine::Core::EntropyApplication
classEntropyEngine::Core::EntropyAppDelegate
Name
enum classServiceState { Unloaded, Stopped, Started, Registered, Loaded}
Lifecycle states for an EntropyService instance.
Name
template <typename T >
std::shared_ptr< T >
wrapInSharedPtr(T * ptr)
template <typename T >
std::shared_ptr< T >
toSharedPtr(const RefObject< T > & ref)
std::optional< std::string >safeGetEnv(const char * name)
template <class To ,class From >
RefObject< To >
ref_static_cast(const RefObject< From > & r)
template <class To ,class From >
RefObject< To >
ref_dynamic_cast(const RefObject< From > & r)
template <typename T ,typename… Args>
RefObject< T >
makeRef(Args &&… args)
template <typename T >
RefObject< T >
fromSharedPtr(const std::shared_ptr< T > & sp)
Converts a shared_ptr to a RefObject.
Name
retain_tretain
adopt_tadopt
uint32_tINVALID_SLOT_INDEX
Sentinel value for invalid slot indices.
EnumeratorValueDescription
Unloaded
Stopped
Started
Registered
Loaded

Lifecycle states for an EntropyService instance.

template <typename T >
std::shared_ptr< T > wrapInSharedPtr(
T * ptr
)
template <typename T >
std::shared_ptr< T > toSharedPtr(
const RefObject< T > & ref
)
inline std::optional< std::string > safeGetEnv(
const char * name
)
template <class To ,
class From >
RefObject< To > ref_static_cast(
const RefObject< From > & r
)
template <class To ,
class From >
RefObject< To > ref_dynamic_cast(
const RefObject< From > & r
)
template <typename T ,
typename... Args>
RefObject< T > makeRef(
Args &&... args
)
template <typename T >
RefObject< T > fromSharedPtr(
const std::shared_ptr< T > & sp
)

Converts a shared_ptr to a RefObject.

Parameters:

  • sp Shared pointer to convert

Return: RefObject wrapping the same pointer with an additional retain

Creates a RefObject from a shared_ptr, retaining the object. Useful for bridging code that uses shared_ptr to the RefObject model.

retain_t retain {};
adopt_t adopt {};
uint32_t INVALID_SLOT_INDEX = ~0u;

Sentinel value for invalid slot indices.

Use this constant across all pools for consistency.


Updated on 2026-01-26 at 17:14:35 -0500