#include <list.h>
|  | 
| void * | _data | 
|  | Pointer to list item data. 
 | 
|  | 
Implements a list item for use in a List_c 
◆ ListItem() [1/2]
Creates a ListItem given data. This method will allocate storage for the data passed in. 
- Parameters
- 
  
    | data | A pointer to data to copy |  | len | Length of data to copy |  
 
 
 
◆ ListItem() [2/2]
Creates a ListItem without allocating internal storage. 
 
 
 
◆ ~ListItem()
Destroys a ListItem, deallocating any storage the item has allocated 
 
 
◆ AllocateItemData()
      
        
          | void AllocateItemData | ( | int | size | ) |  | 
      
 
Allocates the specified amount of data for the item. Does not deallocate the old data! 
- Parameters
- 
  
    | size | Size of the data to allocate |  
 
 
 
◆ Data() [1/2]
- Returns
- The data member of this ListItem. 
 
 
 
◆ Data() [2/2]
Set the data associated with this item. This merely changes the value of the Data pointer, it does not allocate or copy data 
- Parameters
- 
  
    | item | The new data for this item |  
 
 
 
◆ DataPtr()
- Returns
- What the data member of this ListItem is pointing to (a double indirection) 
 
 
 
◆ Next() [1/2]
- Returns
- The ListItem after this in the list, or NULL if there is no next ListItem 
 
 
◆ Next() [2/2]
Set the Next ListItem in the List 
- Parameters
- 
  
    | pNext | Pointer to the item that will become this item's next item |  
 
 
 
◆ Prev() [1/2]
- Returns
- The ListItem before this in the list, or NULL if there is no previous ListItem 
 
 
◆ Prev() [2/2]
Set the Previous ListItem in the List 
- Parameters
- 
  
    | pPrev | Pointer to the item that will become this item's previous item |  
 
 
 
◆ Priority() [1/2]
◆ Priority() [2/2]
      
        
          | void Priority | ( | int | priority | ) |  | 
      
 
Change the priority of this list item. NOTE: Changing an item's priority does not resort the list. 
- Parameters
- 
  
    | priority | The new priority of the list item |  
 
 
 
The documentation for this class was generated from the following file: