struct_linked_list_t Struct Reference

A basic implementation of a linked list. More...

#include <lib/utils/include/linked_list.h>


Data Fields

struct struct_linked_list_node_thead
struct struct_linked_list_node_ttail
int(* cmp_func )(const void *const data_a, const void *const data_b)
uint32_t length


Detailed Description

A basic implementation of a linked list.

This structure defines a simple linked list. It can store any type of elements, provided that there is a suitable comparison function for the type of the data used.

Definition at line 70 of file linked_list.h.


Field Documentation

Pointer to the head of the linked list.

Definition at line 74 of file linked_list.h.

Pointer to the tail of the linked list.

Definition at line 78 of file linked_list.h.

int(* struct_linked_list_t::cmp_func)(const void *const data_a, const void *const data_b)

Pointer to the comparison function used to compare the node data. This function, which take two pointers to the data to compare, should return:

  • 0 if the datas pointed by data_a and data_b are the same.
  • A positive number if the data pointed by data_a is greater than the data pointed by data_b.
  • A negative number if the data pointed by data_a is less than the data pointed by data_b.

Number of nodes composing the linked list.

Definition at line 93 of file linked_list.h.


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

Generated on Fri Jun 17 11:10:12 2011 for TIFA by Doxygen 1.5.5