|
| | TSortedMap ()=default |
| |
| | TSortedMap (TSortedMap &&)=default |
| |
| | TSortedMap (const TSortedMap &)=default |
| |
| TSortedMap & | operator= (TSortedMap &&)=default |
| |
| TSortedMap & | operator= (const TSortedMap &)=default |
| |
| template<typename OtherArrayAllocator > |
| | TSortedMap (TSortedMap< KeyType, ValueType, OtherArrayAllocator, SortPredicate > &&Other) |
| |
| template<typename OtherArrayAllocator > |
| | TSortedMap (const TSortedMap< KeyType, ValueType, OtherArrayAllocator, SortPredicate > &Other) |
| |
| | TSortedMap (std::initializer_list< TPairInitializer< const KeyType &, const ValueType & > > InitList) |
| |
| | TSortedMap (FIntrusiveUnsetOptionalState Tag) |
| |
| bool | operator== (FIntrusiveUnsetOptionalState Tag) const |
| |
| template<typename OtherArrayAllocator > |
| TSortedMap & | operator= (TSortedMap< KeyType, ValueType, OtherArrayAllocator, SortPredicate > &&Other) |
| |
| template<typename OtherArrayAllocator > |
| TSortedMap & | operator= (const TSortedMap< KeyType, ValueType, OtherArrayAllocator, SortPredicate > &Other) |
| |
| TSortedMap & | operator= (std::initializer_list< TPairInitializer< const KeyType &, const ValueType & > > InitList) |
| |
| UE_FORCEINLINE_HINT bool | operator== (const TSortedMap &Other) const |
| |
| UE_FORCEINLINE_HINT bool | operator!= (const TSortedMap &Other) const |
| |
| UE_FORCEINLINE_HINT void | Empty (int32 ExpectedNumElements=0) |
| |
| UE_FORCEINLINE_HINT void | Reset () |
| |
| UE_FORCEINLINE_HINT void | Shrink () |
| |
| UE_FORCEINLINE_HINT void | Reserve (int32 Number) |
| |
| bool | IsEmpty () const |
| |
| UE_FORCEINLINE_HINT int32 | Num () const |
| |
| UE_FORCEINLINE_HINT int32 | Max () const |
| |
| UE_FORCEINLINE_HINT SIZE_T | GetAllocatedSize () const |
| |
| UE_FORCEINLINE_HINT void | CountBytes (FArchive &Ar) const |
| |
| UE_FORCEINLINE_HINT ValueType & | Add (const KeyType &InKey, const ValueType &InValue) |
| |
| UE_FORCEINLINE_HINT ValueType & | Add (const KeyType &InKey, ValueType &&InValue) |
| |
| UE_FORCEINLINE_HINT ValueType & | Add (KeyType &&InKey, const ValueType &InValue) |
| |
| UE_FORCEINLINE_HINT ValueType & | Add (KeyType &&InKey, ValueType &&InValue) |
| |
| UE_FORCEINLINE_HINT ValueType & | Add (const KeyType &InKey) |
| |
| UE_FORCEINLINE_HINT ValueType & | Add (KeyType &&InKey) |
| |
| template<typename InitKeyType = KeyType, typename InitValueType = ValueType> |
| ValueType & | Emplace (InitKeyType &&InKey, InitValueType &&InValue) |
| |
| template<typename InitKeyType = KeyType> |
| ValueType & | Emplace (InitKeyType &&InKey) |
| |
| int32 | Remove (KeyConstPointerType InKey) |
| |
| const KeyType * | FindKey (ValueInitType Value) const |
| |
| ValueType * | Find (KeyConstPointerType Key) |
| |
| UE_FORCEINLINE_HINT const ValueType * | Find (KeyConstPointerType Key) const |
| |
| UE_FORCEINLINE_HINT ValueType & | FindOrAdd (const KeyType &Key) |
| |
| UE_FORCEINLINE_HINT ValueType & | FindOrAdd (KeyType &&Key) |
| |
| ValueType & | FindChecked (KeyConstPointerType Key) |
| |
| const ValueType & | FindChecked (KeyConstPointerType Key) const |
| |
| ValueType | FindRef (KeyConstPointerType Key) const |
| |
| ValueType | FindRef (KeyConstPointerType Key, ValueType DefaultValue) const |
| |
| ElementType * | FindArbitraryElement () |
| |
| const ElementType * | FindArbitraryElement () const |
| |
| bool | Contains (KeyConstPointerType Key) const |
| |
| template<typename Allocator > |
| int32 | GetKeys (TArray< KeyType, Allocator > &OutKeys) const |
| |
| template<typename Allocator > |
| void | GenerateKeyArray (TArray< KeyType, Allocator > &OutArray) const |
| |
| template<typename Allocator > |
| void | GenerateValueArray (TArray< ValueType, Allocator > &OutArray) const |
| |
| void | Dump (FOutputDevice &Ar) |
| |
| bool | RemoveAndCopyValue (KeyInitType Key, ValueType &OutRemovedValue) |
| |
| ValueType | FindAndRemoveChecked (KeyConstPointerType Key) |
| |
| template<typename OtherArrayAllocator , typename OtherSortPredicate > |
| void | Append (TSortedMap< KeyType, ValueType, OtherArrayAllocator, OtherSortPredicate > &&OtherMap) |
| |
| template<typename OtherArrayAllocator , typename OtherSortPredicate > |
| void | Append (const TSortedMap< KeyType, ValueType, OtherArrayAllocator, OtherSortPredicate > &OtherMap) |
| |
| UE_FORCEINLINE_HINT ValueType & | operator[] (KeyConstPointerType Key) |
| |
| UE_FORCEINLINE_HINT const ValueType & | operator[] (KeyConstPointerType Key) const |
| |
| | UE_DEPRECATED (5.7 until 5.9, "GetMaxIndex() should be replaced with Num() - 1.") UE_FORCEINLINE_HINT int32 GetMaxIndex() const |
| |
| UE_FORCEINLINE_HINT bool | IsValidId (FSetElementId Id) const |
| |
| UE_FORCEINLINE_HINT ElementType & | Get (FSetElementId Id) |
| |
| UE_FORCEINLINE_HINT const ElementType & | Get (FSetElementId Id) const |
| |
| UE_FORCEINLINE_HINT TIterator | CreateIterator () |
| |
| UE_FORCEINLINE_HINT TConstIterator | CreateConstIterator () const |
| |
| UE_FORCEINLINE_HINT TKeyIterator | CreateKeyIterator (KeyInitType InKey) |
| |
| UE_FORCEINLINE_HINT TConstKeyIterator | CreateConstKeyIterator (KeyInitType InKey) const |
| |
| UE_FORCEINLINE_HINT RangedForIteratorType | begin () |
| |
| UE_FORCEINLINE_HINT RangedForConstIteratorType | begin () const |
| |
| UE_FORCEINLINE_HINT RangedForIteratorType | end () |
| |
| UE_FORCEINLINE_HINT RangedForConstIteratorType | end () const |
| |
A Map of keys to value, implemented as a sorted TArray of TPairs.
It has a mostly identical interface to TMap and is designed as a drop in replacement. Keys must be unique, there is no equivalent sorted version of TMultiMap. It uses half as much memory as TMap, but adding and removing elements is O(n), and finding is O(Log n). In practice it is faster than TMap for low element counts, and slower as n increases, This map is always kept sorted by the key type so cannot be sorted manually.