Navigation
API > API/Plugins > API/Plugins/GameplayCameras > API/Plugins/GameplayCameras/Core
Inheritance Hierarchy
- TCameraObjectStorage
- FCameraNodeEvaluatorStorage
References
| Module | GameplayCameras |
| Header | /Engine/Plugins/Cameras/GameplayCameras/Source/GameplayCameras/Public/Core/CameraObjectStorage.h |
| Include | #include "Core/CameraObjectStorage.h" |
Syntax
template<typename BaseObjectType>
class TCameraObjectStorage
Remarks
A utility class that allocates and stores objects of, or derived from, a common base class. The storage is a paged buffer composed of one or more pages. If the needed storage size and alignment are known ahead of time, you can pre-allocate the first page appropriately and avoid any further paging.
Constructors
| Type | Name | Description | |
|---|---|---|---|
TCameraObjectStorage
(
TCameraObjectStorage&& Other |
|||
TCameraObjectStorage
(
const TCameraObjectStorage& |
Destructors
| Type | Name | Description | |
|---|---|---|---|
Functions
| Type | Name | Description | |
|---|---|---|---|
| void | AllocatePage
(
uint32 InCapacity, |
Allocates a new page buffer. | |
| TEnableIf< TPointerIsConvertibleFromTo< ObjectType, BaseObjectType >::Value, ObjectType * >::Typ... | BuildObject
(
ArgTypes&&... InArgs |
Creates an object of the given type. Will allocate a new page buffer if needed. | |
| void * | BuildObjectUninitialized
(
uint32 Sizeof, |
Allocates memory for an object of the given size and alignment, but doesn't initialize anything in that memory block. | |
| void | DestroyObjects
(
bool bFreeAllocations |
Destroys all objects in the storage. | |
| void | GetAllocationInfo
(
uint32& OutTotalUsed, |
Computes information about the overall allocated memory. | |
| void | RegisterInitializedObject
(
BaseObjectType* BaseObjectPtr |
Called to register an object after it has been constructed. |
Operators
| Type | Name | Description | |
|---|---|---|---|
| TCameraObjectStorage & | operator=
(
TCameraObjectStorage&& Other |
||
| TCameraObjectStorage & | operator=
(
const TCameraObjectStorage& |