Richard Boegli's CnC_Generals_Zero_Hour Fork WIP
This is documentation of Richard Boegil's Zero Hour Fork
 
Loading...
Searching...
No Matches
List< T > Class Template Reference

#include <LISTNODE.H>

Inherits GenericList, and ListNode.

Public Member Functions

 List (void)
 
First (void) const
 
First_Valid (void) const
 
Last (void) const
 
Last_Valid (void) const
 
void Delete (void)
 
 List (void)
 
void AddToTail (ListNode *node)
 
void AddToHead (ListNode *node)
 
void Add (ListNode *node)
 
void Merge (List *list)
 
int NumItems (void)
 
void * Item (int list_index)
 
ListNodeFirstNode (void)
 
ListNodeLastNode (void)
 
int IsEmpty (void)
 
void Empty (void)
 
ListNodeFind (void *item)
 
- Public Member Functions inherited from GenericList
 GenericList (void)
 
virtual ~GenericList (void)
 
GenericNodeFirst (void) const
 
GenericNodeFirst_Valid (void) const
 
GenericNodeLast (void) const
 
GenericNodeLast_Valid (void) const
 
bool Is_Empty (void) const
 
void Add_Head (GenericNode *node)
 
void Add_Tail (GenericNode *node)
 
int Get_Valid_Count (void) const
 
- Public Member Functions inherited from ListNode
 ListNode (void)
 
void Append (ListNode *node)
 
void Prepend (ListNode *node)
 
void Link (ListNode *node)
 
void Remove (void)
 
ListNodeNext (void)
 
ListNodePrev (void)
 
ListNodeNextLoop (void)
 
ListNodePrevLoop (void)
 
void * Item (void)
 
void SetItem (void *item)
 
int InList (void)
 
int IsHead (void)
 
int Priority (void)
 
void SetPriority (int new_pri)
 

Additional Inherited Members

- Protected Attributes inherited from GenericList
GenericNode FirstNode
 
GenericNode LastNode
 
- Protected Attributes inherited from ListNode
void * item
 

Detailed Description

template<class T>
class List< T >

Definition at line 59 of file list.h.

Constructor & Destructor Documentation

◆ List() [1/2]

template<class T>
List< T >::List ( void )
inline

Definition at line 204 of file LISTNODE.H.

◆ List() [2/2]

template<class T>
List< T >::List ( void )

Member Function Documentation

◆ Add()

template<class T>
void List< T >::Add ( ListNode * node)

Definition at line 184 of file list.cpp.

◆ AddToHead()

template<class T>
void List< T >::AddToHead ( ListNode * node)

Definition at line 178 of file list.cpp.

◆ AddToTail()

template<class T>
void List< T >::AddToTail ( ListNode * node)

Definition at line 172 of file list.cpp.

◆ Delete()

template<class T>
void List< T >::Delete ( void )
inline

Definition at line 210 of file LISTNODE.H.

◆ Empty()

template<class T>
void List< T >::Empty ( void )

Definition at line 293 of file list.cpp.

◆ Find()

template<class T>
ListNode * List< T >::Find ( void * item)

Definition at line 300 of file list.cpp.

◆ First()

template<class T>
T List< T >::First ( void ) const
inline

Definition at line 206 of file LISTNODE.H.

◆ First_Valid()

template<class T>
T List< T >::First_Valid ( void ) const
inline

Definition at line 207 of file LISTNODE.H.

◆ FirstNode()

template<class T>
ListNode * List< T >::FirstNode ( void )

Definition at line 271 of file list.cpp.

◆ IsEmpty()

template<class T>
int List< T >::IsEmpty ( void )

Definition at line 285 of file list.cpp.

◆ Item()

template<class T>
void * List< T >::Item ( int list_index)

Definition at line 251 of file list.cpp.

◆ Last()

template<class T>
T List< T >::Last ( void ) const
inline

Definition at line 208 of file LISTNODE.H.

◆ Last_Valid()

template<class T>
T List< T >::Last_Valid ( void ) const
inline

Definition at line 209 of file LISTNODE.H.

◆ LastNode()

template<class T>
ListNode * List< T >::LastNode ( void )

Definition at line 278 of file list.cpp.

◆ Merge()

template<class T>
void List< T >::Merge ( List< T > * list)

Definition at line 210 of file list.cpp.

◆ NumItems()

template<class T>
int List< T >::NumItems ( void )

Definition at line 234 of file list.cpp.


The documentation for this class was generated from the following files: