Navigation
API > API/Plugins > API/Plugins/UAF
Encapsulates a mapping of FName to value type Value types must be a UStruct
| Name | TUnboundValueMap |
| Type | class |
| Header File | /Engine/Plugins/Experimental/UAF/UAF/Source/UAF/Public/UAF/ValueRuntime/UnboundValueMap.h |
| Include Path | #include "UAF/ValueRuntime/UnboundValueMap.h" |
Syntax
template<class InValueType>
class TUnboundValueMap : public UE::UAF::FUnboundValueMap
Inheritance Hierarchy
- FUnboundValueMap → TUnboundValueMap
Constructors
| Name | Remarks | Include Path | Unreal Specifiers |
|---|---|---|---|
TUnboundValueMap
(
UScriptStruct* ValueType, |
Constructs a map. | UAF/ValueRuntime/UnboundValueMap.h |
Destructors
| Name | Remarks | Include Path | Unreal Specifiers |
|---|---|---|---|
virtual ~TUnboundValueMap() |
Destroys the map and frees its memory. | UAF/ValueRuntime/UnboundValueMap.h |
Typedefs
| Name | Type | Remarks | Include Path |
|---|---|---|---|
| FConstIterator | TUnboundValueMapIterator< const TUnboundValueMap< InValueType > > | UAF/ValueRuntime/UnboundValueMap.h | |
| FIterator | TUnboundValueMapIterator< TUnboundValueMap< InValueType > > | Iterators. | UAF/ValueRuntime/UnboundValueMap.h |
| ValueType | InValueType | The type of values held in this map. | UAF/ValueRuntime/UnboundValueMap.h |
Constants
| Name | Type | Remarks | Include Path |
|---|---|---|---|
| ValueTypeAlignment | const int32 | UAF/ValueRuntime/UnboundValueMap.h |
Functions
Public
| Name | Remarks | Include Path | Unreal Specifiers |
|---|---|---|---|
bool Add
(
FName Name, |
Adds a new mapping, O(logN) Returns whether or not we inserted (we can fail if a value with that name already exists) | UAF/ValueRuntime/UnboundValueMap.h | |
bool Append
(
FName Name, |
Adds a new mapping at the end of the map, must be sorted, O(1) Returns whether or not we inserted (we can fail if the value isn't sorted to land at the end of the map) | UAF/ValueRuntime/UnboundValueMap.h | |
FConstIterator CreateConstIterator() |
UAF/ValueRuntime/UnboundValueMap.h | ||
FIterator CreateIterator() |
Returns an iterator over all name/value pairs contained within, sorted by their name. | UAF/ValueRuntime/UnboundValueMap.h | |
| UAF/ValueRuntime/UnboundValueMap.h | |||
| Finds a mapping and returns a pointer to it or nullptr if not found, O(logN) | UAF/ValueRuntime/UnboundValueMap.h | ||
const InValueType & GetValue
(
int32 Index |
UAF/ValueRuntime/UnboundValueMap.h | ||
InValueType & GetValue
(
int32 Index |
Retrieves a mapping value by index, O(1) | UAF/ValueRuntime/UnboundValueMap.h | |
bool Remove
(
FName Name |
Removes a mapping, O(logN) Returns whether or not we removed the value (we can fail if the name isn't found) | UAF/ValueRuntime/UnboundValueMap.h | |
void RemoveAt
(
int32 Index |
Removes a mapping, O(1) | UAF/ValueRuntime/UnboundValueMap.h | |
void SetSorted
(
int32 NumValues, |
Initializes the mapping using sorted inputs, O(N) | UAF/ValueRuntime/UnboundValueMap.h | |
void SetUnsorted
(
int32 NumValues, |
Initializes the mapping using unsorted inputs, O(NlogN) | UAF/ValueRuntime/UnboundValueMap.h |
Public Virtual
| Name | Remarks | Include Path | Unreal Specifiers |
|---|---|---|---|
virtual bool AddWithSetter
(
FName Name, |
Adds a new mapping, sets the value using the provided setter, O(logN) Returns whether or not we inserted (we can fail if a value with that name already exists) The value setter (and/or caller) is responsible for validating the value type | UAF/ValueRuntime/UnboundValueMap.h | |
virtual void GetValueWithGetter
(
int32 Index, |
Gets a value at the specified index using a value getter function, O(1) The value getter (and/or caller) is responsible for validating the value type | UAF/ValueRuntime/UnboundValueMap.h |
Overridden from FUnboundValueMap
| Name | Remarks | Include Path | Unreal Specifiers |
|---|---|---|---|
virtual void CopyTo
(
FUnboundValueMap& Other |
Copies the content of this map into another Both must have matching value types | UAF/ValueRuntime/UnboundValueMap.h | |
virtual FUnboundValueMap * Duplicate
(
FReallocFun InReallocFun |
Returns a copy of this map using the specified allocator. | UAF/ValueRuntime/UnboundValueMap.h |
Protected
| Name | Remarks | Include Path | Unreal Specifiers |
|---|---|---|---|
const InValueType * GetValues () |
UAF/ValueRuntime/UnboundValueMap.h | ||
InValueType * GetValues () |
Returns a pointer to the start of the values. | UAF/ValueRuntime/UnboundValueMap.h | |
void Grow() |
UAF/ValueRuntime/UnboundValueMap.h |