gdsl
1.8
|
GDSL types. More...
Typedefs | |
typedef void * | gdsl_element_t |
GDSL element type. | |
typedef gdsl_element_t(* | gdsl_alloc_func_t )(void *USER_DATA) |
GDSL Alloc element function type. | |
typedef void(* | gdsl_free_func_t )(gdsl_element_t E) |
GDSL Free element function type. | |
typedef gdsl_element_t(* | gdsl_copy_func_t )(const gdsl_element_t E) |
GDSL Copy element function type. | |
typedef int(* | gdsl_map_func_t )(const gdsl_element_t E, gdsl_location_t LOCATION, void *USER_DATA) |
GDSL Map element function type. | |
typedef long int(* | gdsl_compare_func_t )(const gdsl_element_t E, void *VALUE) |
GDSL Comparison element function type. | |
typedef void(* | gdsl_write_func_t )(const gdsl_element_t E, FILE *OUTPUT_FILE, gdsl_location_t LOCATION, void *USER_DATA) |
GDSL Write element function type. | |
typedef unsigned long int | ulong |
typedef unsigned short int | ushort |
Enumerations | |
enum | gdsl_constant_t { GDSL_ERR_MEM_ALLOC = -1, GDSL_MAP_STOP = 0, GDSL_MAP_CONT = 1, GDSL_INSERTED, GDSL_FOUND } |
GDSL Constants. More... | |
enum | gdsl_location_t { GDSL_LOCATION_UNDEF = 0, GDSL_LOCATION_HEAD = 1, GDSL_LOCATION_ROOT = 1, GDSL_LOCATION_TOP = 1, GDSL_LOCATION_TAIL = 2, GDSL_LOCATION_LEAF = 2, GDSL_LOCATION_BOTTOM = 2, GDSL_LOCATION_FIRST = 1, GDSL_LOCATION_LAST = 2, GDSL_LOCATION_FIRST_COL = 1, GDSL_LOCATION_LAST_COL = 2, GDSL_LOCATION_FIRST_ROW = 4, GDSL_LOCATION_LAST_ROW = 8 } |
enum | bool { FALSE = 0, TRUE = 1 } |
GDSL types.
Copyright (C) 1998-2018 Nicolas Darnis <ndarnis@free.fr>.
Permission is granted to copy, distribute and/or modify this document under the terms of the GNU Free Documentation License, Version 1.3 or any later version published by the Free Software Foundation; with no Invariant Sections, no Front-Cover Texts, and no Back-Cover Texts.
typedef void* gdsl_element_t |
GDSL element type.
All GDSL internal data structures contains a field of this type. This field is for GDSL users to store their data into GDSL data structures.
Definition at line 131 of file gdsl_types.h.
typedef gdsl_element_t(* gdsl_alloc_func_t)(void *USER_DATA) |
GDSL Alloc element function type.
This function type is for allocating a new gdsl_element_t variable. The USER_DATA argument should be used to fill-in the new element.
USER_DATA | user data used to create the new element. |
Definition at line 145 of file gdsl_types.h.
typedef void(* gdsl_free_func_t)(gdsl_element_t E) |
GDSL Free element function type.
This function type is for freeing a gdsl_element_t variable. The element must have been previously allocated by a function of gdsl_alloc_func_t type. A free function according to gdsl_free_func_t must free the ressources allocated by the corresponding call to the function of type gdsl_alloc_func_t. The GDSL functions doesn't check if E != NULL before calling this function.
E | The element to deallocate. |
Definition at line 163 of file gdsl_types.h.
typedef gdsl_element_t(* gdsl_copy_func_t)(const gdsl_element_t E) |
GDSL Copy element function type.
This function type is for copying gdsl_element_t variables.
E | The gdsl_element_t variable to copy. |
Definition at line 176 of file gdsl_types.h.
typedef int(* gdsl_map_func_t)(const gdsl_element_t E, gdsl_location_t LOCATION, void *USER_DATA) |
GDSL Map element function type.
This function type is for mapping a gdsl_element_t variable from a GDSL data structure. The optional USER_DATA could be used to do special thing if needed.
E | The actually mapped gdsl_element_t variable. |
LOCATION | The location of E in the data structure. |
USER_DATA | User's datas. |
Definition at line 193 of file gdsl_types.h.
typedef long int(* gdsl_compare_func_t)(const gdsl_element_t E, void *VALUE) |
GDSL Comparison element function type.
This function type is used to compare a gdsl_element_t variable with a user value. The E argument is always the one in the GDSL data structure, VALUE is always the one the user wants to compare E with.
E | The gdsl_element_t variable contained into the data structure to compare from. |
VALUE | The user data to compare E with. |
Definition at line 214 of file gdsl_types.h.
typedef void(* gdsl_write_func_t)(const gdsl_element_t E, FILE *OUTPUT_FILE, gdsl_location_t LOCATION, void *USER_DATA) |
GDSL Write element function type.
This function type is for writing a gdsl_element_t E to OUTPUT_FILE. Additional USER_DATA could be passed to it.
E | The gdsl element to write. |
OUTPUT_FILE | The file where to write E. |
LOCATION | The location of E in the data structure. |
USER_DATA | User's datas. |
Definition at line 230 of file gdsl_types.h.
typedef unsigned long int ulong |
Definition at line 243 of file gdsl_types.h.
typedef unsigned short int ushort |
Definition at line 247 of file gdsl_types.h.
enum gdsl_constant_t |
GDSL Constants.
Definition at line 49 of file gdsl_types.h.
enum gdsl_location_t |
Definition at line 70 of file gdsl_types.h.
enum bool |
GDSL boolean type. Defines _NO_LIBGDSL_TYPES_ at compilation time if you don't want them.
Definition at line 268 of file gdsl_types.h.