14template <
typename ElementType>
37 Array.Container.Insert( It.GetIndex(), ElementType() );
38 Ar <<
Array.Container[ It.GetIndex() ];
44 const int32 MaxIndex =
Array.Container.GetMaxIndex();
65 for(
auto It =
Array.Container.CreateIterator(); It; ++It )
92template <
typename ElementType,
typename ElementIDType>
227 return Lhs.Iterator == Rhs.Iterator;
232 return Lhs.Iterator != Rhs.Iterator;
267template <
typename ElementType>
292template <
typename ElementType>
#define checkSlow(expr)
Definition AssertionMacros.h:332
#define check(expr)
Definition AssertionMacros.h:314
@ INDEX_NONE
Definition CoreMiscDefines.h:150
UE_FORCEINLINE_HINT TSharedRef< CastToType, Mode > StaticCastSharedRef(TSharedRef< CastFromType, Mode > const &InSharedRef)
Definition SharedPointer.h:127
UE_INTRINSIC_CAST UE_REWRITE constexpr std::remove_reference_t< T > && MoveTemp(T &&Obj) noexcept
Definition UnrealTemplate.h:520
Definition Archive.h:1208
UE_FORCEINLINE_HINT bool IsLoading() const
Definition Archive.h:236
virtual void CountBytes(SIZE_T InNum, SIZE_T InMax)
Definition Archive.h:125
Definition BitArray.h:1944
Definition MeshElementArray.h:16
friend FArchive & operator<<(FArchive &Ar, TMeshElementArrayBase &Array)
Definition MeshElementArray.h:24
void Remap(const TSparseArray< int32 > &IndexRemap)
Definition MeshElementArray.h:293
TSparseArray< ElementType > Container
Definition MeshElementArray.h:84
void Compact(TSparseArray< int32 > &OutIndexRemap)
Definition MeshElementArray.h:268
Definition MeshElementArray.h:207
friend bool operator==(const TConstIterator &Lhs, const TConstIterator &Rhs)
Definition MeshElementArray.h:225
TConstIterator(typename TSparseArray< ElementType >::TConstIterator &&It)
Definition MeshElementArray.h:210
friend bool operator!=(const TConstIterator &Lhs, const TConstIterator &Rhs)
Definition MeshElementArray.h:230
ElementIDType operator*() const
Definition MeshElementArray.h:220
TConstIterator & operator++()
Definition MeshElementArray.h:214
Definition MeshElementArray.h:199
TElementIDs(const TSparseArray< ElementType > &InArray)
Definition MeshElementArray.h:202
TConstIterator end() const
Definition MeshElementArray.h:252
TConstIterator begin() const
Definition MeshElementArray.h:247
TConstIterator CreateConstIterator() const
Definition MeshElementArray.h:240
Definition MeshElementArray.h:94
ElementType & operator[](const ElementIDType ID)
Definition MeshElementArray.h:149
void Reset(const int32 Elements=0)
Definition MeshElementArray.h:102
ElementType & Insert(const ElementIDType ID)
Definition MeshElementArray.h:121
ElementType & Insert(const ElementIDType ID, ElementType &&Element)
Definition MeshElementArray.h:135
void Reserve(const int32 Elements)
Definition MeshElementArray.h:109
ElementType & Insert(const ElementIDType ID, typename TTypeTraits< ElementType >::ConstInitType Element)
Definition MeshElementArray.h:128
int32 GetArraySize() const
Definition MeshElementArray.h:165
TElementIDs GetElementIDs() const
Definition MeshElementArray.h:263
bool IsValid(const ElementIDType ID) const
Definition MeshElementArray.h:176
ElementIDType Add(typename TTypeTraits< ElementType >::ConstInitType Element)
Definition MeshElementArray.h:115
ElementIDType GetFirstValidID() const
Definition MeshElementArray.h:168
int32 Num() const
Definition MeshElementArray.h:162
ElementIDType Add(ElementType &&Element)
Definition MeshElementArray.h:118
friend FArchive & operator<<(FArchive &Ar, TMeshElementArray &Array)
Definition MeshElementArray.h:182
const ElementType & operator[](const ElementIDType ID) const
Definition MeshElementArray.h:155
void Remove(const ElementIDType ID)
Definition MeshElementArray.h:142
ElementIDType Add()
Definition MeshElementArray.h:112
int32 Num() const
Definition SparseArray.h:470
bool IsAllocated(int32 Index) const
Definition SparseArray.h:486
void Reserve(int32 ExpectedNumElements)
Definition SparseArray.h:219
int32 GetMaxIndex() const
Definition SparseArray.h:460
Definition SparseArray.h:1137
Definition SparseArray.h:1116
Definition SparseArray.h:524
void RemoveAt(int32 Index, int32 Count=1)
Definition SparseArray.h:650
int32 Add(const ElementType &Element)
Definition SparseArray.h:564
UE_FORCEINLINE_HINT TRangedForIterator begin()
Definition SparseArray.h:1218
void Reset()
Definition SparseArray.h:682
void Insert(int32 Index, typename TTypeTraits< ElementType >::ConstInitType Element)
Definition SparseArray.h:644
UE_FORCEINLINE_HINT TRangedForIterator end()
Definition SparseArray.h:1220
U16 Index
Definition radfft.cpp:71
Definition UnrealTypeTraits.h:40
TCallTraits< T >::ParamType ConstInitType
Definition UnrealTypeTraits.h:336