Navigation
API > API/Plugins > API/Plugins/UAF
Encapsulates a mapping of a value type to a specific attribute set (of any attribute type) Our keys are held by the attribute set we point to (keys are shared) while we hold the mapped values internally. Bound value maps and their values are allocated together in a contiguous buffer. Value types must be a UStruct
| Name | TBoundValueMap |
| Type | class |
| Header File | /Engine/Plugins/Experimental/UAF/UAF/Source/UAF/Public/UAF/ValueRuntime/BoundValueMap.h |
| Include Path | #include "UAF/ValueRuntime/BoundValueMap.h" |
Syntax
template<class InValueType>
class TBoundValueMap : public UE::UAF::FBoundValueMap
Inheritance Hierarchy
- FBoundValueMap → TBoundValueMap
Constructors
| Name | Remarks | Include Path | Unreal Specifiers |
|---|---|---|---|
TBoundValueMap
(
const FConstructArgs& Args, |
Constructs a map. | UAF/ValueRuntime/BoundValueMap.h |
Destructors
| Name | Remarks | Include Path | Unreal Specifiers |
|---|---|---|---|
virtual ~TBoundValueMap() |
Destroys the map and frees its memory. | UAF/ValueRuntime/BoundValueMap.h |
Typedefs
| Name | Type | Remarks | Include Path |
|---|---|---|---|
| ValueType | InValueType | The type of values held in this map. | UAF/ValueRuntime/BoundValueMap.h |
Functions
Public
| Name | Remarks | Include Path | Unreal Specifiers |
|---|---|---|---|
void FillWithValue
(
InValueType Value |
Initializes every value to the specified one. | UAF/ValueRuntime/BoundValueMap.h | |
const InValueType * GetData () |
Returns a pointer to the contiguous values held within. | UAF/ValueRuntime/BoundValueMap.h | |
InValueType * GetData () |
Returns a pointer to the contiguous values held within. | UAF/ValueRuntime/BoundValueMap.h | |
InValueType GetValue
(
FAttributeSetIndex Index |
Typed equivalent for FBoundValueMap::GetValue. | UAF/ValueRuntime/BoundValueMap.h | |
void SetValue
(
FAttributeSetIndex Index, |
Typed equivalent for FBoundValueMap::SetValue. | UAF/ValueRuntime/BoundValueMap.h |
Public Virtual
Overridden from FBoundValueMap
| Name | Remarks | Include Path | Unreal Specifiers |
|---|---|---|---|
virtual void CopyTo
(
FBoundValueMap& Other |
Copies the content of this map into another Both must have matching typed sets and value types | UAF/ValueRuntime/BoundValueMap.h | |
virtual FBoundValueMap * Duplicate
(
FReallocFun InReallocFun |
Returns a copy of this map using the specified allocator. | UAF/ValueRuntime/BoundValueMap.h | |
virtual void FillWithIdentity
(
bool bIsAdditive |
Initializes every value to its identity, optionally additive. | UAF/ValueRuntime/BoundValueMap.h |
Protected
Protected Virtual
| Name | Remarks | Include Path | Unreal Specifiers |
|---|---|---|---|
virtual void GetValueWithGetter
(
FAttributeSetIndex Index, |
UAF/ValueRuntime/BoundValueMap.h | ||
virtual void SetValueWithSetter
(
FAttributeSetIndex Index, |
UAF/ValueRuntime/BoundValueMap.h |
Overridden from FBoundValueMap
| Name | Remarks | Include Path | Unreal Specifiers |
|---|---|---|---|
virtual void GetValueImpl
(
FAttributeSetIndex Index, |
Gets a value from the specified index. | UAF/ValueRuntime/BoundValueMap.h | |
virtual void SetValueImpl
(
FAttributeSetIndex Index, |
Sets a value at the specified index. | UAF/ValueRuntime/BoundValueMap.h |
Static
| Name | Remarks | Include Path | Unreal Specifiers |
|---|---|---|---|
static int32 CalculateAllocationSize
(
int32 NumAttributes |
Returns the total size required for an instance of a map of this type. | UAF/ValueRuntime/BoundValueMap.h |
Operators
| Name | Remarks | Include Path | Unreal Specifiers |
|---|---|---|---|
InValueType & operator[]
(
FAttributeSetIndex Index |
Value accessors by index. | UAF/ValueRuntime/BoundValueMap.h | |
const InValueType & operator[]
(
FAttributeSetIndex Index |
Value accessors by index. | UAF/ValueRuntime/BoundValueMap.h |