Navigation
API > API/Plugins > API/Plugins/Learning
References
| Module | Learning |
| Header | /Engine/Plugins/Experimental/LearningAgents/Source/Learning/Public/LearningArrayMap.h |
| Include | #include "LearningArrayMap.h" |
Syntax
struct FArrayMap
Remarks
A map of differently sized and typed multi-dimensional arrays
Constructors
| Type | Name | Description | |
|---|---|---|---|
FArrayMap () |
Destructors
| Type | Name | Description | |
|---|---|---|---|
~FArrayMap () |
Functions
| Type | Name | Description | |
|---|---|---|---|
| TArrayMapHandle< DimNum, ElementType > | Add
(
const FArrayMapKey Key, |
Add a new array to the map | |
| TArrayMapHandle< DimNum, ElementType > | AddView
(
const FArrayMapKey Key, |
Add a view to an existing array to the map. Does not allocate any new storage. | |
| TLearningArrayView< DimNum, const ElementType > | ConstView
(
const TArrayMapHandle< DimNum, ElementType > Handle |
Get a read-only view of an array. | |
| TLearningArrayView< DimNum, const ElementType > | ConstView
(
const FArrayMapHandle Handle |
Get a read-only view of an array. | |
| TLearningArrayView< DimNum, const ElementType > | ConstView
(
const FArrayMapKey Key |
Get a read-only view of an array. | |
| bool | Contains
(
const FArrayMapKey Key |
Check if an array with the given name has already been added. | |
| uint8 | DimNum
(
const FArrayMapKey Key |
Get the number of dimensions of an array in the map. | |
| uint8 | DimNum
(
const FArrayMapHandle Handle |
Get the number of dimensions of an array in the map. | |
| void | Empty () |
Clear all array data. | |
| const FArrayMapHandle * | Find
(
const FArrayMapKey Key |
Find the array handle associated with a key. Returns `nullptr_ if Key is not in Map. | |
| const FArrayMapKey * | FindKey
(
FArrayMapHandle Handle |
Get the key associated with a particular handle | |
| void | GetKeys
(
TArray< FArrayMapKey, Allocator >& OutKeys |
Get all keys in the map. | |
| bool | HasLink
(
const FArrayMapHandle Dst |
Check if the given array has a link. | |
| bool | HasLink
(
const FArrayMapKey Dst |
Check if the given array has a link. | |
| bool | IsLinkedTo
(
const FArrayMapHandle Src |
Check if the given array is linked to. | |
| bool | IsLinkedTo
(
const FArrayMapKey Src |
Check if the given array is linked to. | |
| void | Link
(
const TArrayMapHandle< DimNum, ElementType > Src, |
Link one array to another such that they share the same data. | |
| void | LinkFlat
(
const TArrayMapHandle< SrcDimNum, ElementType > Src, |
Link one array to another as if they were flattened. | |
| void | LinkHandles
(
const FArrayMapHandle Src, |
Link one array to another such that they share the same data. | |
| void | LinkHandlesFlat
(
const FArrayMapHandle Src, |
Link one array to another as if they were flattened. | |
| void | LinkKeys
(
const FArrayMapKey Src, |
Link one array to another such that they share the same data. | |
| FArrayMapHandle | Lookup
(
const FArrayMapKey Key |
Lookup the array handle associated with a key. | |
| int16 | TypeId
(
const FArrayMapKey Key |
Get the type id of an array in the map. | |
| int16 | TypeId
(
const FArrayMapHandle Handle |
Get the type id of an array in the map. | |
| const TCHAR * | TypeName
(
const FArrayMapKey Key |
Get the type name of an array in the map. | |
| const TCHAR * | TypeName
(
const FArrayMapHandle Handle |
Get the type name of an array in the map. | |
| TLearningArrayView< DimNum, ElementType > | View
(
const FArrayMapKey Key |
Get a view of an array. | |
| TLearningArrayView< DimNum, ElementType > | View
(
const FArrayMapHandle Handle |
Get a view of an array. | |
| TLearningArrayView< DimNum, ElementType > | View
(
const TArrayMapHandle< DimNum, ElementType > Handle |
Get a view of an array. |
Constants
| Name | Description |
|---|---|
| FlagAllocated | Array is allocated by this map, so must be deallocated. |
| FlagConstructed | Array is constructed by this map, so must be destructed. |
| FlagLinked | Array is a link to another array. |
| FlagNone | |
| InlineArrayNum | |
| InlineScalarBytesNum | |
| MaxDimNum | |
| MaxScalarAlignment |