Double linked list. 更多...
#include <List.h>
Public 类型 | |
| typedef TDoubleLinkedListIterator< TDoubleLinkedListNode, ElementType > | TIterator |
| Used to iterate over the elements of a linked list. | |
Public 成员函数 | |
| bool | AddHead (const ElementType &InElement) |
| Add the specified value to the beginning of the list, making that value the new head of the list. 更多... | |
| bool | AddTail (const ElementType &InElement) |
| Append the specified value to the end of the list 更多... | |
| void | Empty () |
| Removes all nodes from the list. | |
| TDoubleLinkedListNode * | FindNode (const ElementType &InElement) |
| Finds the node corresponding to the value specified 更多... | |
| TDoubleLinkedListNode * | GetHead () const |
| Returns the node at the head of the list. 更多... | |
| TDoubleLinkedListNode * | GetTail () const |
| Returns the node at the end of the list. 更多... | |
| bool | InsertNode (const ElementType &InElement, TDoubleLinkedListNode *NodeToInsertBefore=nullptr) |
| Insert the specified value into the list at an arbitrary point. 更多... | |
| int32 | Num () const |
| Returns the number of items in the list. 更多... | |
| void | RemoveNode (const ElementType &InElement) |
| Remove the node corresponding to InElement. 更多... | |
| void | RemoveNode (TDoubleLinkedListNode *NodeToRemove, bool bDeleteNode=true) |
| Removes the node specified. 更多... | |
| TDoubleLinkedList () | |
| Constructors. | |
| virtual | ~TDoubleLinkedList () |
| Destructor | |
Protected 成员函数 | |
| virtual void | SetListSize (int32 NewListSize) |
| Updates the size reported by Num(). 更多... | |
Double linked list.
|
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 |
Append the specified value to the end of the list
| InElement | the value to add to the list. |
|
inline |
Finds the node corresponding to the value specified
| InElement | the value to find |
|
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 |
Returns the number of items in the list.
|
inline |
Remove the node corresponding to InElement.
| InElement | The value to remove from the list. |
|
inline |
|
inlineprotectedvirtual |
Updates the size reported by Num().
Child classes can use this function to conveniently hook into list additions/removals.
| NewListSize | the new size for this list |
被 FEditPropertyChain 重载.