C/C++ API Reference
Loading...
Searching...
No Matches
Core interfaces

Oveview

Generic allocator interfaces that can be injected into routines that need dynamic memory.

These include Allocator, as well as the Layout type that is passed to it and the managed smart pointer types, such as UniquePtr, that can be returned from it.

Classes

class  pw::Allocator
 
class  pw::allocator::Layout
 
class  pw::allocator::Pool
 
class  pw::WeakPtr< T >
 
class  pw::BasicMultiBuf< kProperties >
 
class  pw::SharedPtr< T >
 
class  pw::UniquePtr< T >
 

Functions

bool pw::allocator::operator== (const Layout &lhs, const Layout &rhs)
 
bool pw::allocator::operator!= (const Layout &lhs, const Layout &rhs)
 
template<typename U >
WeakPtr< T > & pw::WeakPtr< T >::operator= (const WeakPtr< U > &other) noexcept
 
template<typename U >
WeakPtr< T > & pw::WeakPtr< T >::operator= (const SharedPtr< U > &other) noexcept
 
template<typename U >
WeakPtr< T > & pw::WeakPtr< T >::operator= (WeakPtr< U > &&other) noexcept
 
void pw::WeakPtr< T >::reset () noexcept
 
SharedPtr< T > pw::WeakPtr< T >::Lock () const noexcept
 

Function Documentation

◆ Lock()

template<typename T >
SharedPtr< T > pw::WeakPtr< T >::Lock
noexcept

Creates a new SharedPtr to the associated object, or an empty SharedPtr if this object is empty.

◆ reset()

template<typename T >
void pw::WeakPtr< T >::reset
noexcept

Resets this object to an empty state.

If this is the last shared or weak pointer associated with the control block, it is deallocated.