GATE
Loading...
Searching...
No Matches
gate_linkedlist_class Struct Reference

A double-linked-list of item of the same type, where each entry has a pointer-link to the previous and the following item. More...

#include <arrays.h>

Data Fields

gate_linkedentry_tlast
 
gate_size_t item_size
 
gate_mem_copyctor_t construct_item
 
gate_mem_dtor_t destruct_item
 

Detailed Description

A double-linked-list of item of the same type, where each entry has a pointer-link to the previous and the following item.

Each inserted item is allocated in a separate memory space and links of neighbor items are updated accordingly. Insertion and deletion of items is performed fast at the cost of memory overhead and fragmentation.

Field Documentation

◆ last

pointer to first element in list

◆ item_size

gate_size_t item_size

pointer to last element in

◆ construct_item

gate_mem_copyctor_t construct_item

size of one item in bytes

◆ destruct_item

gate_mem_dtor_t destruct_item

copy-constructor function of a single item


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