TIntrusiveLinkedList

Encapsulates a link in a single linked list with constant access time.

Windows
MacOS
Linux

Inheritance Hierarchy

TLinkedListBase

TIntrusiveLinkedList

FAtlasedTextureSlot

Syntax

template<class ElementType>
class TIntrusiveLinkedList : public TLinkedListBase< ElementType, ElementType, TIntrusiveLinkedListIterator >

Remarks

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<FMyStruct>

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()) { ... }

Constructors

Name Description

Public function

TIntrusiveLinkedList()

Default constructor (empty list).

Typedefs

Name

Description

Super

References

Module

Core

Header

Runtime/Core/Public/Containers/List.h

Welcome to the new Unreal Engine 4 Documentation site!

We're working on lots of new features including a feedback system so you can tell us how we are doing. It's not quite ready for use in the wild yet, so head over to the Documentation Feedback forum to tell us about this page or call out any issues you are encountering in the meantime.

We'll be sure to let you know when the new system is up and running.

Post Feedback