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

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

#include <int_linked_list.h>

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

Public Member Functions

IntListNodeAllocateIntListNode (const int32 value)
 Create a new IntListNode. More...
 
void FreeIntListNode (ListItem *const node_p)
 Free a IntListNode. More...
 
LinkedListAllocateIntLinkedList (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
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 integer value.

Member Function Documentation

◆ AllocateIntListNode()

IntListNode * AllocateIntListNode ( const int32  value)

Create a new IntListNode.

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

◆ FreeIntListNode()

void FreeIntListNode ( ListItem *const  node_p)

Free a IntListNode.

Parameters
node_pThe ListNode to free.

◆ AllocateIntLinkedList()

LinkedList * AllocateIntLinkedList ( void  )

Create a LinkedList designed to hold IntListNodes.

Returns
The new LinkedList or NULL upon error.

◆ AddIntegerToIntLinkedList()

bool AddIntegerToIntLinkedList ( LinkedList list_p,
const int32  value 
)

Create and add a new IntListNode 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 IntListNode.
Returns
true upon success, false on error.

Field Documentation

◆ iln_node

ListItem iln_node

The ListNode.

◆ iln_value

int32 iln_value

The integer value.


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