Blender  V3.3
Functions
MEM_RefCountedC-Api.cpp File Reference
#include "MEM_RefCountedC-Api.h"
#include "MEM_RefCounted.h"

Go to the source code of this file.

Functions

int MEM_RefCountedGetRef (MEM_TRefCountedObjectPtr shared)
 
int MEM_RefCountedIncRef (MEM_TRefCountedObjectPtr shared)
 
int MEM_RefCountedDecRef (MEM_TRefCountedObjectPtr shared)
 

Function Documentation

◆ MEM_RefCountedDecRef()

int MEM_RefCountedDecRef ( MEM_TRefCountedObjectPtr  shared)

Decreases the reference count of this object. If the reference count reaches zero, the object self-destructs.

Parameters
sharedThe object to query.
Returns
The new reference count.

Definition at line 21 of file MEM_RefCountedC-Api.cpp.

◆ MEM_RefCountedGetRef()

int MEM_RefCountedGetRef ( MEM_TRefCountedObjectPtr  shared)

Returns the reference count of this object.

Parameters
sharedThe object to query.
Returns
The current reference count.

Definition at line 11 of file MEM_RefCountedC-Api.cpp.

◆ MEM_RefCountedIncRef()

int MEM_RefCountedIncRef ( MEM_TRefCountedObjectPtr  shared)

Increases the reference count of this object.

Parameters
sharedThe object to query.
Returns
The new reference count.

Definition at line 16 of file MEM_RefCountedC-Api.cpp.