Grassroots Infrastructure
The Grassroots Infrastructure is a suite of computing tools to help users and developers use scientific data infrastructure that can easily be interconnected.
|
A ListNode for LinkedLists that also stores an integer value. More...
#include <int_linked_list.h>
Public Member Functions | |
IntListNode * | AllocateIntListNode (const int32 value) |
Create a new IntListNode. More... | |
void | FreeIntListNode (ListItem *const node_p) |
Free a IntListNode. More... | |
LinkedList * | AllocateIntLinkedList (void) |
Create a LinkedList designed to hold IntListNodes. More... | |
bool | AddIntegerToIntLinkedList (LinkedList *list_p, const int32 value) |
Create and add a new IntListNode to the tail of a LinkedList. More... | |
Data Fields | |
ListItem | iln_node |
The ListNode. More... | |
int32 | iln_value |
The integer value. More... | |
Data Fields inherited from ListItem | |
ListItem * | ln_prev_p |
A pointer to the previous ListItem. More... | |
ListItem * | ln_next_p |
A pointer to the next ListItem. More... | |
A ListNode for LinkedLists that also stores an integer value.
IntListNode * AllocateIntListNode | ( | const int32 | value | ) |
Create a new IntListNode.
str_p | The string to store in the newly-created IntListNode. |
mem_flag | How the IntListNode should store its string. |
NULL
upon error. void FreeIntListNode | ( | ListItem *const | node_p | ) |
Free a IntListNode.
node_p | The ListNode to free. |
LinkedList * AllocateIntLinkedList | ( | void | ) |
Create a LinkedList designed to hold IntListNodes.
NULL
upon error. bool AddIntegerToIntLinkedList | ( | LinkedList * | list_p, |
const int32 | value | ||
) |
Create and add a new IntListNode to the tail of a LinkedList.
list_p | The List to add the node to the end of. |
value | The value to store in the newly-created IntListNode. |
true
upon success, false
on error. ListItem iln_node |
The ListNode.
int32 iln_value |
The integer value.