Encapsulates a link in a single linked list with constant access time. 更多...
#include <List.h>
类 TLinkedList< ElementType > 继承关系图:Public 成员函数 | |
| TLinkedList () | |
| Default constructor (empty list). | |
| TLinkedList (const ElementType &InElement) | |
| Creates a new linked list with a single element. 更多... | |
Public 成员函数 继承自 TLinkedListBase< TLinkedList< ElementType >, ElementType, TLinkedListIterator > | |
| FORCEINLINE bool | IsLinked () |
| Returns whether element is currently linked. 更多... | |
| FORCEINLINE void | LinkAfter (TLinkedList< ElementType > *After) |
| Adds this element to the linked list, after the specified element 更多... | |
| FORCEINLINE void | LinkBefore (TLinkedList< ElementType > *Before) |
| Adds this element to a list, before the given element. 更多... | |
| FORCEINLINE void | LinkHead (TLinkedList< ElementType > *&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. 更多... | |
| FORCEINLINE void | LinkReplace (TLinkedList< ElementType > *Replace) |
| Adds this element to the linked list, replacing the specified element. 更多... | |
| TLinkedListBase () | |
| Default constructor (empty list) | |
| FORCEINLINE void | Unlink () |
| Removes this element from the list in constant time. 更多... | |
额外继承的成员函数 | |
Public 类型 继承自 TLinkedListBase< TLinkedList< ElementType >, ElementType, TLinkedListIterator > | |
| typedef TLinkedListIterator< TLinkedList< ElementType >, ElementType > | TIterator |
| Used to iterate over the elements of a linked list. | |
Encapsulates a link in a single linked list with constant access time.
This linked list is non-intrusive, i.e. it stores a copy of the element passed to it (typically a pointer)
|
inlineexplicit |
Creates a new linked list with a single element.
| InElement | The element to add to the list. |