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 double value. More...
#include <double_linked_list.h>
Public Member Functions | |
DoubleListNode * | AllocateDoubleListNode (const double64 value) |
Create a new DoubleListNode. More... | |
void | FreeDoubleListNode (ListItem *const node_p) |
Free a DoubleListNode. More... | |
LinkedList * | AllocateDoubleLinkedList (void) |
Create a LinkedList designed to hold DoubleListNodes. More... | |
bool | AddDoubleToDoubleLinkedList (LinkedList *list_p, const double64 value) |
Create and add a new DoubleListNode to the tail of a LinkedList. More... | |
Data Fields | |
ListItem | dln_node |
The ListNode. More... | |
double64 | dln_value |
The double 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 double value.
DoubleListNode * AllocateDoubleListNode | ( | const double64 | value | ) |
Create a new DoubleListNode.
str_p | The string to store in the newly-created DoubleListNode. |
mem_flag | How the DoubleListNode should store its string. |
NULL
upon error. void FreeDoubleListNode | ( | ListItem *const | node_p | ) |
Free a DoubleListNode.
node_p | The ListNode to free. |
LinkedList * AllocateDoubleLinkedList | ( | void | ) |
Create a LinkedList designed to hold DoubleListNodes.
NULL
upon error. bool AddDoubleToDoubleLinkedList | ( | LinkedList * | list_p, |
const double64 | value | ||
) |
Create and add a new DoubleListNode 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 DoubleListNode. |
true
upon success, false
on error. ListItem dln_node |
The ListNode.
double64 dln_value |
The double value.