#include <Windows.h>
#include <string>
Go to the source code of this file.
|
| Blam |
| Namespace surrounding all major engine components.
|
|
| Blam::Utils |
| Namespace containing general-purpose utilities.
|
|
◆ BLAM
◆ SafeAcquire()
template<typename Type >
Type* SafeAcquire |
( |
Type * |
newObject | ) |
|
Acquires an additional reference, if non-null.
- Template Parameters
-
Type | - The type of the object. |
- Parameters
-
newObject | - The pointer to set to the new object reference. |
◆ SafeRelease()
template<class Type >
void SafeRelease |
( |
Type ** |
pointer | ) |
|
Releases a pointer.
- Template Parameters
-
Type | - The type of the object. |
- Parameters
-
pointer | - The pointer to the pointer of the object to release. |
◆ SafeSet()
template<typename Type >
void SafeSet |
( |
Type ** |
currentObject, |
|
|
Type * |
newObject |
|
) |
| |
Sets a new COM object, releasing the old one.
- Template Parameters
-
Type | - The type of the object. |
- Parameters
-
currentObject | - The pointer to the pointer of the current object. |
newObject | - The pointer to set to the new object. |