Luanti 5.10.0-dev
 
Loading...
Searching...
No Matches
IntrusiveReferenceCounted Class Reference

#include <pointer.h>

+ Inheritance diagram for IntrusiveReferenceCounted:

Public Member Functions

 IntrusiveReferenceCounted ()=default
 
virtual ~IntrusiveReferenceCounted ()=default
 
void grab () noexcept
 
void drop () noexcept
 

Private Attributes

u32 m_refcount = 1
 

Constructor & Destructor Documentation

◆ IntrusiveReferenceCounted()

IntrusiveReferenceCounted::IntrusiveReferenceCounted ( )
default

◆ ~IntrusiveReferenceCounted()

virtual IntrusiveReferenceCounted::~IntrusiveReferenceCounted ( )
virtualdefault

Member Function Documentation

◆ drop()

void IntrusiveReferenceCounted::drop ( )
inlinenoexcept

References m_refcount.

Referenced by ItemStackMetaRef::~ItemStackMetaRef(), and LuaItemStack::gc_object().

+ Here is the caller graph for this function:

◆ grab()

void IntrusiveReferenceCounted::grab ( )
inlinenoexcept

References m_refcount.

Referenced by ItemStackMetaRef::ItemStackMetaRef().

+ Here is the caller graph for this function:

Member Data Documentation

◆ m_refcount

u32 IntrusiveReferenceCounted::m_refcount = 1
private

Referenced by drop(), and grab().


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