TDoubleLinkedList

Double linked list.

Windows
MacOS
Linux

Inheritance Hierarchy

TDoubleLinkedList

FEditPropertyChain

Syntax

template<class ElementType>
class TDoubleLinkedList

Remarks

Double linked list.

Constructors

Name Description

Public function

TDoubleLinkedList()

Constructors.

Destructors

Name Description

Public function Virtual

~TDoubleLinkedList()

Destructor

Functions

Name Description

Public function

bool

 

AddHead

(
    TDoubleLinkedListNode* NewNode
)

Public function

bool

 

AddHead

(
    const ElementType& InElement
)

Add the specified value to the beginning of the list, making that value the new head of the list.

Public function

bool

 

AddTail

(
    const ElementType& InElement
)

Append the specified value to the end of the list

Public function

bool

 

AddTail

(
    TDoubleLinkedListNode* NewNode
)

Public function

bool

 

Contains

(
    const ElementType& InElement
)

Public function

void

 

Empty()

Removes all nodes from the list.

Public function

TDoubleLinke...

 

FindNode

(
    const ElementType& InElement
)

Finds the node corresponding to the value specified

Public function Const

TDoubleLinke...

 

GetHead()

Returns the node at the head of the list.

Public function Const

TDoubleLinke...

 

GetTail()

Returns the node at the end of the list.

Public function

bool

 

InsertNode

(
    const ElementType& InElement,
    TDoubleLinkedListNode* NodeToI...
)

Insert the specified value into the list at an arbitrary point.

Public function

bool

 

InsertNode

(
    TDoubleLinkedListNode* NewNode,
    TDoubleLinkedListNode* NodeToI...
)

Public function Const

int32

 

Num()

Returns the number of items in the list.

Public function

void

 

RemoveNode

(
    TDoubleLinkedListNode* NodeToR...,
    bool bDeleteNode
)

Removes the node specified.

Public function

void

 

RemoveNode

(
    const ElementType& InElement
)

Remove the node corresponding to InElement.

Protected function Virtual

void

 

SetListSize

(
    int32 NewListSize
)

Updates the size reported by Num().

Classes

Name

Description

Public class

TDoubleLinkedListNode

Typedefs

Name

Description

TConstIterator

TIterator

Used to iterate over the elements of a linked list.

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