sc_rep Struct Reference

A 'rep', or pointer-handled object. More...

#include <si_std/ptrh.h>

List of all members.

Public Attributes

s_uint32 refc
void * pobj
void * pown
const sc_rep_vtablevtbl


Detailed Description

A 'rep', or pointer-handled object.

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).


Member Data Documentation

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.

Pointer to a v-table of functions for lifetime management.


The documentation for this struct was generated from the following file:

doxygen