COMBINATORIAL_BLAS  1.6
tommy_node_struct Struct Reference

#include <tommytypes.h>

Public Attributes

struct tommy_node_structnext
 
struct tommy_node_structprev
 
void * data
 
tommy_key_t key
 

Detailed Description

Data structure node. This node type is shared between all the data structures and used to store some info directly into the objects you want to store.

A typical declaration is:

struct object {
tommy_node node;
// other fields
};

Definition at line 183 of file tommytypes.h.

Member Data Documentation

◆ data

void* tommy_node_struct::data

Pointer at the object containing the node. This field is initialized when inserting nodes into a data structure.

Definition at line 200 of file tommytypes.h.

◆ key

tommy_key_t tommy_node_struct::key

Key used to store the node. With hashtables this field is used to store the hash value. With lists this field is not used.

Definition at line 207 of file tommytypes.h.

◆ next

struct tommy_node_struct* tommy_node_struct::next

Next node. The tail node has it at 0, like a 0 terminated list.

Definition at line 188 of file tommytypes.h.

◆ prev

struct tommy_node_struct* tommy_node_struct::prev

Previous node. The head node points to the tail node, like a circular list.

Definition at line 194 of file tommytypes.h.


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