Base classe for linked references list. More...
Base classe for linked references list.
T | List items type. |
Public Member Methods | |
void | AddFirst (T &item) |
Adds at first. More... | |
T * | TryRemoveFirst () |
Try remove first item. More... | |
T & | RemoveFirst () |
Removes the first item. More... | |
void | AddLast (T &item) |
Adds a last item. More... | |
bool | IsFull () const |
Query if the list is full. More... | |
bool | IsEmpty () const |
Query if the list is empty. More... | |
LinkedReferenceListCell< T > * | GetLast () |
Gets the last item. More... | |
void | Remove (LinkedReferenceListCell< T > &item) |
Remove items. More... | |
void | Clear () |
Clears items. More... | |
Int32 | GetCount () const |
Gets the number of items. More... | |
T & | operator[] (Int32 index) const |
Array indexer operator. More... | |
Public Attributes | |
LinkedReferenceListCell< T > * | First |
The first item of list More... | |
Int32 | __internalCount |
Number of item (Internal : Do not use directly, but through macro LINKED_REFERENCE_LIST_COUNT for fast access) More... | |
void AddFirst | ( | T & | item | ) |
Adds at first.
item | The item. |
void AddLast | ( | T & | item | ) |
Adds a last item.
item | The item. |
void Clear | ( | ) |
Clears items.
Int32 GetCount | ( | ) | const |
Gets the number of items.
LinkedReferenceListCell< T > * GetLast | ( | ) |
Gets the last item.
bool IsEmpty | ( | ) | const |
Query if the list is empty.
bool IsFull | ( | ) | const |
Query if the list is full.
T & operator[] | ( | Int32 | index | ) | const |
Array indexer operator.
index | Zero-based index of the item. |
This method is not the most efficient way to iterate on the items. Use macros instead.
void Remove | ( | LinkedReferenceListCell< T > & | item | ) |
T & RemoveFirst | ( | ) |
Removes the first item.
T * TryRemoveFirst | ( | ) |
Try remove first item.
Int32 __internalCount |
Number of item (Internal : Do not use directly, but through macro LINKED_REFERENCE_LIST_COUNT for fast access)
LinkedReferenceListCell<T>* First |
The first item of list