Navigation
API > API/Runtime > API/Runtime/Navmesh
A simple helper class used to delete an array of instances of structs, that require cleaning up by calling destructor on every instance before release. Releasing is taking place when rcScopedStructArrayDelete instance goes out of scope.
if T doesn't require a destructor to be called use rcScopedDelete instead.
| Name | rcScopedStructArrayDelete |
| Type | class |
| Header File | /Engine/Source/Runtime/Navmesh/Public/Recast/RecastAlloc.h |
| Include Path | #include "Recast/RecastAlloc.h" |
Syntax
template<class T>
class rcScopedStructArrayDelete
Constructors
| Name | Remarks | Include Path | Unreal Specifiers |
|---|---|---|---|
rcScopedStructArrayDelete
(
const int n |
Constructs an array of instances of T. | Recast/RecastAlloc.h |
Destructors
| Name | Remarks | Include Path | Unreal Specifiers |
|---|---|---|---|
~rcScopedStructArrayDelete() |
Recast/RecastAlloc.h |
Variables
Protected
| Name | Type | Remarks | Include Path | Unreal Specifiers |
|---|---|---|---|---|
| itemCount | int | Recast/RecastAlloc.h | ||
| ptr | T * | Recast/RecastAlloc.h |
Functions
Public
Operators
| Name | Remarks | Include Path | Unreal Specifiers |
|---|---|---|---|
operator T*() |
The root array pointer. | Recast/RecastAlloc.h | |
T * operator=
(
T* p |
On purpose made private to restrict copying | Recast/RecastAlloc.h |