Go to the source code of this file.
|
template<class Type > |
void | SafeRelease (Type **pointer) |
| Releases a pointer. More...
|
|
template<typename Type > |
Type * | SafeAcquire (Type *newObject) |
| Acquires an additional reference, if non-null. More...
|
|
template<typename Type > |
void | SafeSet (Type **currentObject, Type *newObject) |
| Sets a new COM object, releasing the old one. More...
|
|
◆ 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. |