![]() |
Ark Server API (ASA) - Wiki
|
#include <List.h>
Collaboration diagram for TDoubleLinkedList< ElementType >:Classes | |
| class | TDoubleLinkedListNode |
Public Types | |
| typedef TDoubleLinkedListIterator< TDoubleLinkedListNode, ElementType > | TIterator |
| typedef TDoubleLinkedListIterator< TDoubleLinkedListNode, const ElementType > | TConstIterator |
Public Member Functions | |
| TDoubleLinkedList () | |
| virtual | ~TDoubleLinkedList () |
| bool | AddHead (const ElementType &InElement) |
| bool | AddHead (TDoubleLinkedListNode *NewNode) |
| bool | AddTail (const ElementType &InElement) |
| bool | AddTail (TDoubleLinkedListNode *NewNode) |
| bool | InsertNode (const ElementType &InElement, TDoubleLinkedListNode *NodeToInsertBefore=nullptr) |
| bool | InsertNode (TDoubleLinkedListNode *NewNode, TDoubleLinkedListNode *NodeToInsertBefore=nullptr) |
| void | RemoveNode (const ElementType &InElement) |
| void | RemoveNode (TDoubleLinkedListNode *NodeToRemove, bool bDeleteNode=true) |
| void | Empty () |
| TDoubleLinkedListNode * | GetHead () const |
| TDoubleLinkedListNode * | GetTail () const |
| TDoubleLinkedListNode * | FindNode (const ElementType &InElement) |
| bool | Contains (const ElementType &InElement) |
| bool | IsEmpty () const |
| int32 | Num () const |
Protected Member Functions | |
| virtual void | SetListSize (int32 NewListSize) |
Private Member Functions | |
| TDoubleLinkedList (const TDoubleLinkedList &) | |
| TDoubleLinkedList & | operator= (const TDoubleLinkedList &) |
Private Attributes | |
| TDoubleLinkedListNode * | HeadNode |
| TDoubleLinkedListNode * | TailNode |
| int32 | ListSize |
Friends | |
| TIterator | begin (TDoubleLinkedList &List) |
| TConstIterator | begin (const TDoubleLinkedList &List) |
| TIterator | end (TDoubleLinkedList &List) |
| TConstIterator | end (const TDoubleLinkedList &List) |
Double linked list.
| typedef TDoubleLinkedListIterator<TDoubleLinkedListNode, const ElementType> TDoubleLinkedList< ElementType >::TConstIterator |
| typedef TDoubleLinkedListIterator<TDoubleLinkedListNode, ElementType> TDoubleLinkedList< ElementType >::TIterator |
|
inline |
|
inlinevirtual |
|
private |
|
inline |
Add the specified value to the beginning of the list, making that value the new head of the list.
| InElement | the value to add to the list. |
|
inline |
|
inline |
Append the specified value to the end of the list
| InElement | the value to add to the list. |
|
inline |
|
inline |
|
inline |
|
inline |
|
inline |
|
inline |
|
inline |
Insert the specified value into the list at an arbitrary point.
| InElement | the value to insert into the list |
| NodeToInsertBefore | the new node will be inserted into the list at the current location of this node if nullptr, the new node will become the new head of the list |
|
inline |
|
inline |
|
inline |
|
private |
|
inline |
Remove the node corresponding to InElement.
| InElement | The value to remove from the list. |
|
inline |
|
inlineprotectedvirtual |
|
friend |
|
friend |
|
friend |
|
friend |
|
private |
|
private |
|
private |