Go to the documentation of this file.
50 void *(*copy)(
const void *);
52 int (*
cmp)(
const void *,
const void *);
53 size_t (*
hash)(
const void *, size_t);
char * name
The name of a datatype as a string.
const t_type * g_type_float
A representation of the float data type.
int(* cmp)(const void *, const void *)
(optional) A function ponter used to compare members of this data type
float * float2ptr(float a)
Converts float to float*
const t_type * g_type_str
A representation of the char* data type.
char * char2ptr(char a)
Converts char to char*
const t_type * g_type_char
A representation of the char data type.
size_t(* hash)(const void *, size_t)
(optional) A function pointer used to get a hash value of this data type
A full representation of a data type, used to achieve polymorphism in the implementation of data stru...
const t_type * g_type_int
A representation of the int data type.
int ptr2int(const void *ptr)
Converts int* to int
void(* del)(void *)
A function pointer used to free the memory taken by the data type.
float ptr2float(const void *ptr)
Converts float* to float
char ptr2char(const void *ptr)
Converts char* to char
int * int2ptr(int a)
Converts int to int*
const t_type * g_type_array
A representation of the t_array data type.