Blender V2.61 - r43446
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)

Detailed Description

Definition in file MEM_RefCountedC-Api.cpp.


Function Documentation

int MEM_RefCountedDecRef ( MEM_TRefCountedObjectPtr  shared)

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

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

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

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 38 of file MEM_RefCountedC-Api.cpp.

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 44 of file MEM_RefCountedC-Api.cpp.