StormByte 3.0.0
C++26 foundation of the StormByte suite
Loading...
Searching...
No Matches
pointers.hxx File Reference
#include <StormByte/safe/hash.hxx>
#include <StormByte/safe/heap.hxx>
#include <StormByte/type_traits.hxx>
#include <StormByte/visibility.h>
#include <atomic>
#include <compare>
#include <cstddef>
#include <cstdint>
#include <memory>
#include <new>
#include <type_traits>
#include <utility>
#include <StormByte/safe/pointers.txx>
Include dependency graph for pointers.hxx:
This graph shows which files directly or indirectly include this file:

Go to the source code of this file.

Classes

struct  StormByte::Safe::Heap::ObjectDeleter
 Destroy the concrete object and return its block to Free. More...
struct  StormByte::Safe::Detail::Control
 Base-owned reference counts and the real destructor. More...
class  StormByte::Safe::Shared< T >
 Forward declaration of shared ownership. More...
class  StormByte::Safe::Unique< T >
 Forward declaration of unique ownership. More...
class  StormByte::Safe::Weak< T >
 Forward declaration of weak ownership. More...
class  StormByte::Safe::EnableSharedFromThis< T >
 Base that can recover a Shared from an object owned by one. More...
class  StormByte::Safe::AtomicShared< T >
 Atomic publication of a Shared. More...
struct  StormByte::Safe::Hash< StormByte::Safe::Shared< T > >
struct  StormByte::Safe::Hash< StormByte::Safe::Unique< T > >
struct  StormByte::Safe::Hash< StormByte::Safe::Weak< T > >
struct  std::hash< StormByte::Safe::Shared< T > >
struct  std::hash< StormByte::Safe::Unique< T > >
struct  std::hash< StormByte::Safe::Weak< T > >

Namespaces

namespace  StormByte
 Root namespace of the StormByte suite.
namespace  StormByte::Safe
 Owned values that cross a DLL without the caller's CRT.
namespace  StormByte::Safe::Heap
 Allocate and free raw blocks on Base's heap.
namespace  StormByte::Safe::Detail
 Private helpers.

Functions

template<class T, class... Args>
Shared< T > StormByte::Safe::MakeShared (Args &&... args)
 Construct T on Base's heap and share it.
template<class T, class... Args>
Unique< T > StormByte::Safe::MakeUnique (Args &&... args)
 Construct T on Base's heap and own it.
template<class T, class U>
Shared< T > StormByte::Safe::StaticPointerCast (const Shared< U > &from) noexcept
 static_cast of the stored pointer.
template<class T, class U>
Shared< T > StormByte::Safe::DynamicPointerCast (const Shared< U > &from) noexcept
 dynamic_cast of the stored pointer.
template<class T, class U>
Shared< T > StormByte::Safe::ConstPointerCast (const Shared< U > &from) noexcept
 const_cast of the stored pointer.
template<class T, class U>
Shared< T > StormByte::Safe::ReinterpretPointerCast (const Shared< U > &from) noexcept
 reinterpret_cast of the stored pointer.
template<class T, class U>
STORMBYTE_FORCE_INLINE bool StormByte::Safe::operator== (const Shared< T > &left, const Shared< U > &right) noexcept
 Same stored pointer.
template<class T, class U>
STORMBYTE_FORCE_INLINE std::strong_ordering StormByte::Safe::operator<=> (const Shared< T > &left, const Shared< U > &right) noexcept
 Order of the stored pointers.
template<class T>
STORMBYTE_FORCE_INLINE bool StormByte::Safe::operator== (const Shared< T > &left, std::nullptr_t null) noexcept
 Compare an owner with null.
template<class T>
STORMBYTE_FORCE_INLINE std::strong_ordering StormByte::Safe::operator<=> (const Shared< T > &left, std::nullptr_t null) noexcept
 Order an owner against null.
template<class T, class U>
STORMBYTE_FORCE_INLINE bool StormByte::Safe::operator== (const Unique< T > &left, const Unique< U > &right) noexcept
 Same stored pointer.
template<class T, class U>
STORMBYTE_FORCE_INLINE std::strong_ordering StormByte::Safe::operator<=> (const Unique< T > &left, const Unique< U > &right) noexcept
 Order of the stored pointers.
template<class T>
STORMBYTE_FORCE_INLINE bool StormByte::Safe::operator== (const Unique< T > &left, std::nullptr_t null) noexcept
 Compare an owner with null.
template<class T>
STORMBYTE_FORCE_INLINE std::strong_ordering StormByte::Safe::operator<=> (const Unique< T > &left, std::nullptr_t null) noexcept
 Order an owner against null.
template<class T>
void StormByte::Safe::swap (Shared< T > &left, Shared< T > &right) noexcept
 Exchange two owners.
template<class T>
void StormByte::Safe::swap (Unique< T > &left, Unique< T > &right) noexcept
 Exchange two owners.
template<class T>
void StormByte::Safe::swap (Weak< T > &left, Weak< T > &right) noexcept
 Exchange two observers.