Blender  V3.3
Typedefs | Functions
MEM_RefCountedC-Api.h File Reference

Go to the source code of this file.

Typedefs

typedef struct MEM_TOpaqueObject * MEM_TObjectPtr
 
typedef MEM_TObjectPtr MEM_TRefCountedObjectPtr
 

Functions

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

Detailed Description

Interface for C access to functionality relating to shared objects in the foundation library.

Definition in file MEM_RefCountedC-Api.h.

Typedef Documentation

◆ MEM_TObjectPtr

typedef struct MEM_TOpaqueObject* MEM_TObjectPtr

A pointer to a private object.

Definition at line 14 of file MEM_RefCountedC-Api.h.

◆ MEM_TRefCountedObjectPtr

A pointer to a shared object.

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

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.