RefCountedNoGC.RefCountedStore

RefCountedNoGC storage implementation.

struct RefCountedNoGC(T, RefCountedAutoInitialize autoInit = RefCountedAutoInitialize.yes)
struct RefCountedStore {}

Members

Functions

ensureInitialized
void ensureInitialized()

Makes sure the payload was properly initialized. Such a call is typically inserted before using the payload.

Properties

isInitialized
bool isInitialized [@property getter]

Returns true if and only if the underlying store has been allocated and initialized.

refCount
size_t refCount [@property getter]

Returns underlying reference count if it is allocated and initialized (a positive integer), and 0 otherwise.

Meta