libdict 1.0.7
Data Structure C Library
Loading...
Searching...
No Matches
dict_vtable Struct Reference

The operations of one container type. More...

#include <dict.h>

Collaboration diagram for dict_vtable:

Data Fields

const bool sorted
 
dict_inew_func inew
 
dict_dfree_func dfree
 
dict_insert_func insert
 
dict_search_func search
 
dict_search_func search_le
 
dict_search_func search_lt
 
dict_search_func search_ge
 
dict_search_func search_gt
 
dict_remove_func remove
 
dict_clear_func clear
 
dict_traverse_func traverse
 
dict_select_func select
 
dict_count_func count
 
dict_verify_func verify
 

Detailed Description

The operations of one container type.

Every dict of that type shares one static vtable. Use it only through the dict_* macros: its slots point at internal wrapper functions, not at the public functions of the container, so comparing a slot with, say, hashtable_insert is always false. To tell container types apart, compare the _vtable pointer itself with that of a dict known to be of the type.

Definition at line 110 of file dict.h.

Field Documentation

◆ clear

Definition at line 121 of file dict.h.

◆ count

Definition at line 124 of file dict.h.

◆ dfree

Definition at line 113 of file dict.h.

◆ inew

Definition at line 112 of file dict.h.

◆ insert

Definition at line 114 of file dict.h.

◆ remove

Definition at line 120 of file dict.h.

◆ search

Definition at line 115 of file dict.h.

◆ search_ge

dict_search_func search_ge

Definition at line 118 of file dict.h.

◆ search_gt

dict_search_func search_gt

Definition at line 119 of file dict.h.

◆ search_le

dict_search_func search_le

Definition at line 116 of file dict.h.

◆ search_lt

dict_search_func search_lt

Definition at line 117 of file dict.h.

◆ select

Definition at line 123 of file dict.h.

◆ sorted

const bool sorted

Definition at line 111 of file dict.h.

◆ traverse

Definition at line 122 of file dict.h.

◆ verify

Definition at line 125 of file dict.h.


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