25template<
typename ElemType>
57 Other.Elements.Reset();
65 Other.Elements.Reset();
100 if (result !=
nullptr)
175 template<
typename Func>
189 template<
typename Func>
197 if (
Found !=
nullptr)
214 ElemType*
NewElem =
new ElemType();
UE_FORCEINLINE_HINT TSharedRef< CastToType, Mode > StaticCastSharedRef(TSharedRef< CastFromType, Mode > const &InSharedRef)
Definition SharedPointer.h:127
USkinnedMeshComponent float
Definition SkinnedMeshComponent.h:60
UE_INTRINSIC_CAST UE_REWRITE constexpr std::remove_reference_t< T > && MoveTemp(T &&Obj) noexcept
Definition UnrealTemplate.h:520
Definition UnrealString.h.inl:34
Definition SparseGrid2.h:27
ElemType * Allocate(const FVector2i &index)
Definition SparseGrid2.h:212
TSparseGrid2(TSparseGrid2 &&Other) noexcept
Definition SparseGrid2.h:55
bool Free(const FVector2i &Index)
Definition SparseGrid2.h:116
TSparseGrid2()
Definition SparseGrid2.h:39
TSparseGrid2 & operator=(const TSparseGrid2 &Other)=delete
TSparseGrid2 & operator=(TSparseGrid2 &&Other) noexcept
Definition SparseGrid2.h:59
~TSparseGrid2()
Definition SparseGrid2.h:47
void RangeIteration(FVector2i MinIndex, FVector2i MaxIndex, Func ElementFunc) const
Definition SparseGrid2.h:190
float GetDensity() const
Definition SparseGrid2.h:150
TMap< FVector2i, ElemType * > Elements
Definition SparseGrid2.h:30
bool Has(const FVector2i &Index) const
Definition SparseGrid2.h:74
SIZE_T GetAllocatedSize() const
Definition SparseGrid2.h:205
ElemType * Get(const FVector2i &Index, bool bAllocateIfMissing)
Definition SparseGrid2.h:97
void AllocatedIteration(Func ElementFunc) const
Definition SparseGrid2.h:176
FAxisAlignedBox2i GetBoundsInclusive() const
Definition SparseGrid2.h:158
TSparseGrid2(const TSparseGrid2 &Other)=delete
void FreeAll()
Definition SparseGrid2.h:130
const ElemType * Get(const FVector2i &Index) const
Definition SparseGrid2.h:85
FAxisAlignedBox2i Bounds
Definition SparseGrid2.h:32
FVector2i GetDimensions() const
Definition SparseGrid2.h:166
int GetCount() const
Definition SparseGrid2.h:142
Definition AdvancedWidgetsModule.cpp:13
U16 Index
Definition radfft.cpp:71
Definition IntBoxTypes.h:75
static FAxisAlignedBox2i Empty()
Definition IntBoxTypes.h:98
FVector2i Diagonal() const
Definition IntBoxTypes.h:147
void Contain(const FVector2i &V)
Definition IntBoxTypes.h:157
int32 Area() const
Definition IntBoxTypes.h:140
Definition IntVectorTypes.h:20
int32 X
Definition IntVectorTypes.h:25
int32 Y
Definition IntVectorTypes.h:25
static constexpr FVector2i One()
Definition IntVectorTypes.h:103