#include <List.h>
Linked list abstraction.
Definition at line 116 of file List.h.
◆ SortMode
Enumeration of list sorting methods.
| Enumerator |
|---|
| ASCENDING | Lower priority numbers to front of list.
|
| DESCENDING | Higher priority numbers to front of list.
|
Definition at line 121 of file List.h.
◆ LList()
◆ add()
Adds new node to list sorted by priority.
Definition at line 115 of file List.cpp.
◆ addItem()
| void LList::addItem |
( |
Int | pri, |
|
|
void * | item ) |
Adds new item to list sorted by priority.
Definition at line 156 of file List.cpp.
◆ addItemToHead()
| void LList::addItemToHead |
( |
void * | item | ) |
|
Adds new item to the front of the list.
Definition at line 173 of file List.cpp.
◆ addItemToTail()
| void LList::addItemToTail |
( |
void * | item | ) |
|
Adds new item to the end of the list.
Definition at line 189 of file List.cpp.
◆ addToEndOfGroup()
| void LList::addToEndOfGroup |
( |
Bool | yes = TRUE | ) |
|
Add node to end or start of group with same priority.
Definition at line 448 of file List.cpp.
◆ addToHead()
| void LList::addToHead |
( |
LListNode * | new_node | ) |
|
|
inline |
Adds new node to the front of the list.
Definition at line 173 of file List.h.
◆ addToTail()
| void LList::addToTail |
( |
LListNode * | new_node | ) |
|
|
inline |
Adds new node to the end of the list.
Definition at line 174 of file List.h.
◆ clear()
| void LList::clear |
( |
void | | ) |
|
Deletes all items in the list. Use with care!!
Definition at line 205 of file List.cpp.
◆ destroy()
| void LList::destroy |
( |
void | | ) |
|
|
inline |
Free up the list items.
Definition at line 179 of file List.h.
◆ findItem()
◆ firstNode()
Returns first node in list.
Definition at line 175 of file List.h.
◆ getNode()
Returns node in list addressed by the zero-based index passed.
Definition at line 240 of file List.cpp.
◆ hasItem()
| Bool LList::hasItem |
( |
void * | item | ) |
|
Tests if list has the specified item.
Definition at line 283 of file List.cpp.
◆ isEmpty()
| Bool LList::isEmpty |
( |
void | | ) |
|
|
inline |
Returns whether or not the the list is empty.
Definition at line 178 of file List.h.
◆ lastNode()
Returns last node in list.
Definition at line 176 of file List.h.
◆ merge()
| void LList::merge |
( |
LList * | list | ) |
|
Move the contents of the specified list in to this list.
Definition at line 262 of file List.cpp.
◆ nodeCount()
| Int LList::nodeCount |
( |
void | | ) |
|
Returns number of nodes currently in list.
Definition at line 220 of file List.cpp.
◆ setSortMode()
| void LList::setSortMode |
( |
SortMode | new_mode | ) |
|
|
inline |
Sets the sorting mode for the Add() operation.
Definition at line 177 of file List.h.
◆ m_addToEndOfGroup
| Bool LList::m_addToEndOfGroup |
|
protected |
Add nodes to end of group of nodes with same priority.
Definition at line 131 of file List.h.
◆ m_head
◆ m_sortMode
What sorting method to use for this list's Add() operation.
Definition at line 130 of file List.h.
The documentation for this class was generated from the following files:
- Code/GameEngine/Include/Common/List.h
- Code/GameEngine/Source/Common/System/List.cpp