|
FBX C++ API Reference
|
#include <fbxalloc.h>
FbxAutoPtr mimics the auto_ptr class template implementation available in the C++ Standard Library.
The auto_ptr template class describes an object that stores a pointer to a single allocated object of type Type* that ensures that the object to which it points gets destroyed automatically when control leaves a scope.
Definition at line 190 of file fbxalloc.h.
Public Member Functions | |
| FbxAutoPtr (Type *pPtr=0) | |
| Construct from a pointer. More... | |
| ~FbxAutoPtr () | |
| Destructor. More... | |
| Type * | Get () const |
| Retrieve the pointer it holds. More... | |
| Type * | operator-> () const |
| Member access operator. More... | |
| operator Type * () const | |
| Convert to a Type pointer. More... | |
| Type & | operator* () const |
| Dereference operator. More... | |
| bool | operator! () const |
| Logical not operator. More... | |
| operator bool () const | |
| Convert to boolean value. More... | |
| void | Reset (Type *pPtr=0) |
| Reset the scoped pointer by swapping with another pointer. More... | |
| void | Swap (FbxAutoPtr &pOther) |
| Swap with another pointer. More... | |
| Type * | Release () |
| Release the pointer, so that it won't perform deletion in its destruction. More... | |
|
inlineexplicit |
|
inline |
|
inline |
|
inline |
|
inline |
|
inline |
|
inline |
|
inline |
|
inline |
Reset the scoped pointer by swapping with another pointer.
Definition at line 218 of file fbxalloc.h.
|
inline |
Swap with another pointer.
Definition at line 225 of file fbxalloc.h.
|
inline |
Release the pointer, so that it won't perform deletion in its destruction.
Definition at line 233 of file fbxalloc.h.