Class Reference::Able::Handle

class Handle

Manages a pointer to a Reference::Able object.

Reference::To smart pointers share a single Handle that points to a Reference::Able object.

Public Functions

Handle()

Default constructor.

~Handle()

Destructor.

void decrement(bool active, bool auto_delete)

Thread-safe decrement and delete.

Public Members

Able *pointer = nullptr

Pointer to Able instance.

unsigned handle_count = 0

Count of all references to this handle.

Public Static Functions

static void copy(Handle *&to, Handle *const &from, bool active)

Thread-safe copy and increment.