|
"L. Spiro Engine"
|
A template providing linked-list functionality. More...
#include <LSTLSingleLinkedList.h>
A template providing linked-list functionality.
Class CSingleLinkedList Description: A template providing linked-list functionality. The list is one-way.
| typedef struct lstl::CSingleLinkedList::LSTL_LINKED_LIST_NODE * lstl::CSingleLinkedList< _tType >::LPLSTL_LINKED_LIST_NODE |
Each item in the linked list is of this type.
| LSVOID LSE_CALL lstl::CSingleLinkedList< _tType >::Construct | ( | LSTL_LINKED_LIST_NODE & | _llnNode | ) | [inline, protected] |
Secret way of constructing items.
| _llnNode | The item to be constructed. |
| LSVOID LSE_CALL lstl::CSingleLinkedList< _tType >::Destroy | ( | const LSTL_LINKED_LIST_NODE & | _llnNode | ) | [inline, protected] |
Secret way of destroying items. No error checking.
| _llnNode | The item to be destroyed. |
| LPLSTL_LINKED_LIST_NODE LSE_CALL lstl::CSingleLinkedList< _tType >::Find | ( | const _tType & | _tValue | ) | [inline] |
Finds the linked-list entry containing the given value.
| _tValue | The value to find. |
| CAllocator* LSE_CALL lstl::CSingleLinkedList< _tType >::GetAllocator | ( | ) | [inline] |
Gets our allocator.
| LPLSTL_LINKED_LIST_NODE LSE_CALL lstl::CSingleLinkedList< _tType >::Head | ( | ) | [inline] |
Gets the head of this list.
| const LPLSTL_LINKED_LIST_NODE LSE_CALL lstl::CSingleLinkedList< _tType >::Head | ( | ) | const [inline] |
Gets the head of this list.
| LPLSTL_LINKED_LIST_NODE LSE_CALL lstl::CSingleLinkedList< _tType >::InsertAfter | ( | const _tType & | _tNew, |
| LPLSTL_LINKED_LIST_NODE | _lpllnNode | ||
| ) | [inline] |
Insert an item after another item. If the previous item is NULL, the new item is inserted at the beginning of the list.
| _tNew | The item to insert. |
| _lpllnNode | The node after which the item is to be inserted or NULL. |
| LSUINT32 LSE_CALL lstl::CSingleLinkedList< _tType >::Length | ( | ) | [inline] |
Gets the total number of items in the list.
| LPLSTL_LINKED_LIST_NODE LSE_CALL lstl::CSingleLinkedList< _tType >::NewNode | ( | ) | [inline, protected] |
Create a new node.
| LPLSTL_LINKED_LIST_NODE LSE_CALL lstl::CSingleLinkedList< _tType >::PushFront | ( | const _tType & | _tNew | ) | [inline] |
Insert at the front of the list.
| _tNew | The item to add to the list. |
| LSVOID LSE_CALL lstl::CSingleLinkedList< _tType >::RemoveItem | ( | LPLSTL_LINKED_LIST_NODE | _lpllnNode | ) | [inline] |
Remove an item from the linked list. The item is deleted upon being removed and the item pointer may no longer be used.
| _lpllnNode | The node to remove from this linked list. |
| LSVOID LSE_CALL lstl::CSingleLinkedList< _tType >::Reset | ( | ) | [inline] |
Reset everything. Clears all resources created by this instance.
| LSVOID LSE_CALL lstl::CSingleLinkedList< _tType >::SetAllocator | ( | CAllocator * | _paAllocator | ) | [inline] |
Set the allocator to be used by this instance. Causes the object to be fully reset. Cannot be used on lists that have contents already.
| _paAllocator | Pointer to the allocator to use. |
LPLSTL_LINKED_LIST_NODE lstl::CSingleLinkedList< _tType >::m_lpllnHead [protected] |
The head of the list.
CAllocator* lstl::CSingleLinkedList< _tType >::m_paOurAllocator [protected] |
The allocator we should use.
1.7.3