Crater Container Library 0.2.0
|
|
Base function table for all Crater containers. More...
#include <container.h>
Data Fields | |
void * | data |
Custom "class" data which is passed to the callbacks in this table. More... | |
uint64_t | size |
how large each element is, in bytes | |
Base function table for all Crater containers.
This structure is always present at the beginning of the function table for all Crater containers, and callbacks in function tables take a pointer to this structure as their first argument.
Definition at line 22 of file container.h.
void* cr8r_base_ft::data |
Custom "class" data which is passed to the callbacks in this table.
This is intended so that a single callback can work in multiple ways, instead of writing many similar functions. For example, if the elements are triples of uint64_t's (with some additional value data), this data field could simply be a number 0, 1, or 2, specifying which coordinate to compare by, rather than writing three separate comparison functions.
Definition at line 26 of file container.h.