Skip to content

EntropyCanvas::AssetOpState< void >

Void specialization for operations with no result data. More…

#include <AssetOperationHandle.h>

Inherits from EntropyEngine::Core::EntropyObject, EntropyEngine::Core::EntropyObject

Name
[~AssetOpState](/api/EntropyCanvas/AssetOpState< void >/#function-~assetopstate)() override =default
void[fail](/api/EntropyCanvas/AssetOpState< void >/#function-fail)(AssetOpError code, std::string msg)
void[complete](/api/EntropyCanvas/AssetOpState< void >/#function-complete)(AssetOpStatus final)
virtual const char *[className](/api/EntropyCanvas/AssetOpState< void >/#function-classname)() const override
Runtime class name for diagnostics and reflection.
[AssetOpState](/api/EntropyCanvas/AssetOpState< void >/#function-assetopstate)() =default
Name
std::atomic< uint64_t >[totalBytes](/api/EntropyCanvas/AssetOpState< void >/#variable-totalbytes)
std::atomic< AssetOpStatus >[status](/api/EntropyCanvas/AssetOpState< void >/#variable-status)
std::optional< void >[result](/api/EntropyCanvas/AssetOpState< void >/#variable-result)
uint64_t[requestId](/api/EntropyCanvas/AssetOpState< void >/#variable-requestid)
std::atomic< bool >[isComplete](/api/EntropyCanvas/AssetOpState< void >/#variable-iscomplete)
AssetOpErrorInfo[error](/api/EntropyCanvas/AssetOpState< void >/#variable-error)
std::mutex[completionMutex](/api/EntropyCanvas/AssetOpState< void >/#variable-completionmutex)
std::condition_variable[completionCV](/api/EntropyCanvas/AssetOpState< void >/#variable-completioncv)
std::atomic< uint64_t >[bytesTransferred](/api/EntropyCanvas/AssetOpState< void >/#variable-bytestransferred)

Protected Classes inherited from EntropyEngine::Core::EntropyObject

Name
structHandleCore
Optional handle identity stamped by an owner/registry.

Public Functions inherited from EntropyEngine::Core::EntropyObject

Name
virtual~EntropyObject() =default
virtual const TypeSystem::TypeInfo *typeInfo() const
Optional richer type information; may be null.
booltryRetain() const
Attempts to retain only if the object is still alive.
virtual std::stringtoString() const
Human-readable short string (class@ptr by default).
voidretain() const
Increments the reference count.
voidrelease() const
Decrements the reference count and deletes when it reaches zero.
uint32_trefCount() const
Current reference count (approximate under contention).
EntropyObject &operator=(const EntropyObject & ) =delete
EntropyObject &operator=(EntropyObject && ) =delete
boolhasHandle() const
template <class OwnerT >
OwnerT *
handleOwnerAs() const
Returns the stamped owner pointer cast to the requested type.
const void *handleOwner() const
uint32_thandleIndex() const
uint64_thandleId() const
uint32_thandleGeneration() const
WeakControlBlock *getWeakControlBlock() const
Lazily retrieves or creates the weak control block.
virtual std::stringdescription() const
Long-form description; defaults to toString().
virtual std::stringdebugString() const
Debug-oriented string including refcount and handle when present.
virtual uint64_tclassHash() const
Stable type hash for cross-language identification.
EntropyObject() =default
EntropyObject(EntropyObject && ) =delete
EntropyObject(const EntropyObject & ) =delete

Protected Functions inherited from EntropyEngine::Core::EntropyObject

Name
void_setHandleIdentity(void * owner, uint32_t index, uint32_t generation)
void_clearHandleIdentity()

Protected Attributes inherited from EntropyEngine::Core::EntropyObject

Name
std::atomic< WeakControlBlock * >_weakBlock
Lazily allocated control block for weak refs.
std::atomic< uint32_t >_refCount
Thread-safe retain/release counter.
struct EntropyEngine::Core::EntropyObject::HandleCore_handle

Friends inherited from EntropyEngine::Core::EntropyObject

Name
structHandleAccess

Protected Classes inherited from EntropyEngine::Core::EntropyObject

Name
structHandleCore
Optional handle identity stamped by an owner/registry.

Public Functions inherited from EntropyEngine::Core::EntropyObject

Name
virtual~EntropyObject() =default
virtual const TypeSystem::TypeInfo *typeInfo() const
Optional richer type information; may be null.
booltryRetain() const
Attempts to retain only if the object is still alive.
virtual std::stringtoString() const
Human-readable short string (class@ptr by default).
voidretain() const
Increments the reference count.
voidrelease() const
Decrements the reference count and deletes when it reaches zero.
uint32_trefCount() const
Current reference count (approximate under contention).
EntropyObject &operator=(const EntropyObject & ) =delete
EntropyObject &operator=(EntropyObject && ) =delete
boolhasHandle() const
template <class OwnerT >
OwnerT *
handleOwnerAs() const
Returns the stamped owner pointer cast to the requested type.
const void *handleOwner() const
uint32_thandleIndex() const
uint64_thandleId() const
uint32_thandleGeneration() const
WeakControlBlock *getWeakControlBlock() const
Lazily retrieves or creates the weak control block.
virtual std::stringdescription() const
Long-form description; defaults to toString().
virtual std::stringdebugString() const
Debug-oriented string including refcount and handle when present.
virtual uint64_tclassHash() const
Stable type hash for cross-language identification.
EntropyObject() =default
EntropyObject(EntropyObject && ) =delete
EntropyObject(const EntropyObject & ) =delete

Protected Functions inherited from EntropyEngine::Core::EntropyObject

Name
void_setHandleIdentity(void * owner, uint32_t index, uint32_t generation)
void_clearHandleIdentity()

Protected Attributes inherited from EntropyEngine::Core::EntropyObject

Name
std::atomic< WeakControlBlock * >_weakBlock
Lazily allocated control block for weak refs.
std::atomic< uint32_t >_refCount
Thread-safe retain/release counter.
struct EntropyEngine::Core::EntropyObject::HandleCore_handle

Friends inherited from EntropyEngine::Core::EntropyObject

Name
structHandleAccess
class EntropyCanvas::AssetOpState< void >;

Void specialization for operations with no result data.

Used for advertise, withdraw, and provideKey operations.

~AssetOpState() override =default
inline void fail(
AssetOpError code,
std::string msg
)
inline void complete(
AssetOpStatus final
)
inline virtual const char * className() const override

Runtime class name for diagnostics and reflection.

Reimplements: EntropyEngine::Core::EntropyObject::className

AssetOpState() =default
std::atomic< uint64_t > totalBytes;
std::atomic< AssetOpStatus > status {AssetOpStatus::Pending};
std::optional< void > result;
uint64_t requestId = 0;
std::atomic< bool > isComplete {false};
AssetOpErrorInfo error;
std::mutex completionMutex;
std::condition_variable completionCV;
std::atomic< uint64_t > bytesTransferred;

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