StormByte 3.0.0
C++26 foundation of the StormByte suite
Loading...
Searching...
No Matches
StormByte::Safe::Detail::Control Struct Reference

Base-owned reference counts and the real destructor. More...

#include <StormByte/safe/pointers.hxx>

Collaboration diagram for StormByte::Safe::Detail::Control:

Public Attributes

std::atomic< long > Strong
 Owners. Zero destroys the object.
std::atomic< long > Weak
 Owners plus observers. Zero frees the block.
void(* Destroy )(Control *) noexcept
 Destructor of the concrete object.
void * Object
 Address of the concrete object inside this block.

Detailed Description

Base-owned reference counts and the real destructor.

The object lives in the same Heap::Allocate block, after this header. Destroy is the destructor of the concrete type, stored when the object is created.

Member Data Documentation

◆ Destroy

void(* StormByte::Safe::Detail::Control::Destroy) (Control *) noexcept
noexcept

Destructor of the concrete object.

◆ Object

void* StormByte::Safe::Detail::Control::Object

Address of the concrete object inside this block.

◆ Strong

std::atomic<long> StormByte::Safe::Detail::Control::Strong

Owners. Zero destroys the object.

◆ Weak

std::atomic<long> StormByte::Safe::Detail::Control::Weak

Owners plus observers. Zero frees the block.


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