Hubris Engine Dev
A Project to learn and get into Game Engine developement.
 
Loading...
Searching...
No Matches
Hubris::Weak< T > Struct Template Reference

#include <Memory.h>

Public Member Functions

constexpr Weak (const Shared< T > &s) noexcept
 
 ~Weak ()
 
Shared< T > Lock () const noexcept
 
bool Expired () const noexcept
 
void Reset () noexcept
 
uint_fast32_t UseCount () const noexcept
 
 operator bool () const noexcept
 

Public Attributes

friend Shared< T >
 

Detailed Description

template<typename T>
requires IsType<T>
struct Hubris::Weak< T >

Definition at line 410 of file Memory.h.

Constructor & Destructor Documentation

◆ Weak()

template<typename T>
Hubris::Weak< T >::Weak ( const Shared< T > & s)
inlineconstexprnoexcept

Definition at line 414 of file Memory.h.

◆ ~Weak()

template<typename T>
Hubris::Weak< T >::~Weak ( )
inline

Definition at line 423 of file Memory.h.

+ Here is the call graph for this function:

Member Function Documentation

◆ Expired()

template<typename T>
bool Hubris::Weak< T >::Expired ( ) const
inlinenoexcept

Definition at line 432 of file Memory.h.

+ Here is the caller graph for this function:

◆ Lock()

template<typename T>
Shared< T > Hubris::Weak< T >::Lock ( ) const
inlinenoexcept

Definition at line 427 of file Memory.h.

◆ operator bool()

template<typename T>
Hubris::Weak< T >::operator bool ( ) const
inlinenoexcept

Definition at line 454 of file Memory.h.

+ Here is the call graph for this function:

◆ Reset()

template<typename T>
void Hubris::Weak< T >::Reset ( )
inlinenoexcept

Definition at line 436 of file Memory.h.

+ Here is the caller graph for this function:

◆ UseCount()

template<typename T>
uint_fast32_t Hubris::Weak< T >::UseCount ( ) const
inlinenoexcept

Definition at line 450 of file Memory.h.

Member Data Documentation

◆ Shared< T >

template<typename T>
friend Hubris::Weak< T >::Shared< T >

Definition at line 458 of file Memory.h.


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