#include <si_std/ptrh.h>
Public Attributes | |
s_uint32 | refc |
void * | pobj |
void * | pown |
const sc_rep_vtable * | vtbl |
This struct must be declared as part of the storage of an object, and enables it to have its lifetime managed by its reference count (or, if you prefer, pointer handles).
void* sc_rep::pobj |
Pointer to the outer object that is referenced.
void* sc_rep::pown |
Pointer to an allocator that 'owns' the object storage.
s_uint32 sc_rep::refc |
Reference count of the pointer-handled object.
const sc_rep_vtable* sc_rep::vtbl |
Pointer to a v-table of functions for lifetime management.