cdcontainers  0.1.1
Library of data containers and collections for C programming language.
Data Fields
cdc_data_info Struct Reference

The cdc_data_info struct used to initialize contaners. More...

#include <common.h>

Data Fields

cdc_free_fn_t dfree
 dfree - callback free data. More...
 
cdc_binary_pred_fn_t cmp
 cmp - callback less or greater. More...
 
cdc_binary_pred_fn_t eq
 eq - callback equil. More...
 
cdc_hash_fn_t hash
 
cdc_copy_fn_t cp
 
size_t size
 
size_t __cnt
 __cnt More...
 

Detailed Description

The cdc_data_info struct used to initialize contaners.

This gives more data about the data stored in the container.

Field Documentation

◆ dfree

dfree - callback free data.

If this function is not NULL, then it will be automatically applied to free memory for cotainer items.

◆ cmp

cmp - callback less or greater.

Used for containers where check for less or greater is required. For example, for a cdc_map.

◆ eq

eq - callback equil.

Used for containers where equality check is required. For example, for a cdc_hash_table.

◆ hash

◆ cp

◆ size

size_t size

◆ __cnt

size_t __cnt

__cnt

To avoid problems, do not change this field in the code.


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