solidc
Robust collection of general-purpose cross-platform C libraries and data structures designed for rapid and safe development in C
Loading...
Searching...
No Matches
Public Attributes | List of all members
list_node Struct Reference

#include <list.h>

Collaboration diagram for list_node:
[legend]

Public Attributes

voiddata
 
struct list_nodenext
 
struct list_nodeprev
 

Detailed Description

A node in a doubly-linked list. Each node contains a pointer to element data and bidirectional links.

Definition at line 20 of file list.h.

Member Data Documentation

◆ data

void* list_node::data

Pointer to element data stored inline after the node structure.

Definition at line 22 of file list.h.

Referenced by list_get(), and list_index_of().

◆ next

struct list_node* list_node::next

Pointer to the next node in the list. NULL if this is the tail.

Definition at line 24 of file list.h.

Referenced by list_clear(), list_get(), list_index_of(), list_insert(), list_pop_back(), list_pop_front(), list_push_back(), list_push_front(), and list_remove().

◆ prev

struct list_node* list_node::prev

Pointer to the previous node in the list. NULL if this is the head.

Definition at line 26 of file list.h.

Referenced by list_insert(), list_pop_back(), list_pop_front(), list_push_back(), list_push_front(), and list_remove().


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