Blender V4.3
MEM_RefCountedC-Api.cpp File Reference

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 22 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 12 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 17 of file MEM_RefCountedC-Api.cpp.