Navigation
API > API/Runtime > API/Runtime/Core
Base linked list class, used to implement methods shared by intrusive/non-intrusive linked lists
| Name | TLinkedListBase |
| Type | class |
| Header File | /Engine/Source/Runtime/Core/Public/Containers/List.h |
| Include Path | #include "Containers/List.h" |
Syntax
template<class ContainerType, class ElementType, template< class, class > class IteratorType>
class TLinkedListBase
Derived Classes
Constructors
| Name | Remarks | Include Path | Unreal Specifiers |
|---|---|---|---|
TLinkedListBase() |
Default constructor (empty list) | Containers/List.h |
Typedefs
| Name | Type | Remarks | Include Path |
|---|---|---|---|
| TConstIterator | IteratorType< ContainerType, const ElementType > | Containers/List.h | |
| TIterator | IteratorType< ContainerType, ElementType > | Used to iterate over the elements of a linked list. | Containers/List.h |
Variables
Protected
| Name | Type | Remarks | Include Path | Unreal Specifiers |
|---|---|---|---|---|
| NextLink | ContainerType * | The next link in the linked list | Containers/List.h | |
| PrevLink | ContainerType ** | Pointer to 'NextLink', within the previous link in the linked list | Containers/List.h |
Functions
Public
| Name | Remarks | Include Path | Unreal Specifiers |
|---|---|---|---|
ContainerType * GetNextLink() |
Containers/List.h | ||
ContainerType ** GetPrevLink() |
Containers/List.h | ||
bool IsLinked() |
Returns whether element is currently linked. | Containers/List.h | |
void LinkAfter
(
ContainerType* After |
Adds this element to the linked list, after the specified element | Containers/List.h | |
void LinkBefore
(
ContainerType* Before |
Adds this element to a list, before the given element. | Containers/List.h | |
void LinkHead
(
ContainerType*& Head |
Adds this element as the head of the linked list, linking the input Head pointer to this element, so that when the element is linked/unlinked, the Head linked list pointer will be correctly updated. | Containers/List.h | |
void LinkReplace
(
ContainerType* Replace |
Adds this element to the linked list, replacing the specified element. | Containers/List.h | |
ContainerType * Next() |
Containers/List.h | ||
void Unlink () |
Removes this element from the list in constant time. | Containers/List.h |