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.
DoubleListNode Struct Reference

A ListNode for LinkedLists that also stores an double value. More...

#include <double_linked_list.h>

Inheritance diagram for DoubleListNode:
[legend]
Collaboration diagram for DoubleListNode:
[legend]

Public Member Functions

DoubleListNodeAllocateDoubleListNode (const double64 value)
 Create a new DoubleListNode. More...
 
void FreeDoubleListNode (ListItem *const node_p)
 Free a DoubleListNode. More...
 
LinkedListAllocateDoubleLinkedList (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
ListItemln_prev_p
 A pointer to the previous ListItem. More...
 
ListItemln_next_p
 A pointer to the next ListItem. More...
 

Detailed Description

A ListNode for LinkedLists that also stores an double value.

Member Function Documentation

◆ AllocateDoubleListNode()

DoubleListNode * AllocateDoubleListNode ( const double64  value)

Create a new DoubleListNode.

Parameters
str_pThe string to store in the newly-created DoubleListNode.
mem_flagHow the DoubleListNode should store its string.
Returns
The new DoubleListNode or NULL upon error.

◆ FreeDoubleListNode()

void FreeDoubleListNode ( ListItem *const  node_p)

Free a DoubleListNode.

Parameters
node_pThe ListNode to free.

◆ AllocateDoubleLinkedList()

LinkedList * AllocateDoubleLinkedList ( void  )

Create a LinkedList designed to hold DoubleListNodes.

Returns
The new LinkedList or NULL upon error.

◆ AddDoubleToDoubleLinkedList()

bool AddDoubleToDoubleLinkedList ( LinkedList list_p,
const double64  value 
)

Create and add a new DoubleListNode to the tail of a LinkedList.

Parameters
list_pThe List to add the node to the end of.
valueThe value to store in the newly-created DoubleListNode.
Returns
true upon success, false on error.

Field Documentation

◆ dln_node

ListItem dln_node

The ListNode.

◆ dln_value

double64 dln_value

The double value.


The documentation for this struct was generated from the following file: