Navigation
API > API/Runtime > API/Runtime/Core
Encapsulates a link in a single linked list with constant access time. Structs/classes must inherit this, to use it, e.g: struct FMyStruct : public TIntrusiveLinkedList
This linked list is intrusive, i.e. the element is a subclass of this link, so that each link IS the element.
Never reference TIntrusiveLinkedList outside of the above class/struct inheritance, only ever refer to the struct, e.g: FMyStruct* MyLinkedList = NULL;
FMyStruct* StructLink = new FMyStruct(); StructLink->LinkHead(MyLinkedList);
for (FMyStruct::TIterator It(MyLinkedList); It; It.Next()) { ... }
| Name | TIntrusiveLinkedList |
| Type | class |
| Header File | /Engine/Source/Runtime/Core/Public/Containers/List.h |
| Include Path | #include "Containers/List.h" |
Syntax
template<class ElementType>
class TIntrusiveLinkedList : public TLinkedListBase< ElementType, ElementType, TIntrusiveLinkedListIterator >
Inheritance Hierarchy
- TLinkedListBase → TIntrusiveLinkedList
Derived Classes
Constructors
| Name | Remarks | Include Path | Unreal Specifiers |
|---|---|---|---|
TIntrusiveLinkedList() |
Default constructor (empty list). | Containers/List.h |
Typedefs
| Name | Type | Remarks | Include Path |
|---|---|---|---|
| Super | TLinkedListBase< ElementType, ElementType, TIntrusiveLinkedListIterator > | Containers/List.h |