Go to the source code of this file.
|
| static size_t | do_search_check (struct interp_method *method, struct yac_interp_grid *interp_grid, size_t *tgt_points, size_t count, struct yac_interp_weights *weights, int *interpolation_complete) |
| |
| static void | delete_check (struct interp_method *method) |
| |
| struct interp_method * | yac_interp_method_check_new (func_constructor constructor_callback, void *constructor_user_data, func_do_search do_search_callback, void *do_search_user_data) |
| |
| static void | interp_method_check_add_callback (callback_union callback, enum callback_type type, void *user_data, char const *key) |
| | Register a callback function and user data for the check interpolation method.
|
| |
| static void | interp_method_get_callback (char const *key, callback_union *callback, enum callback_type type, void **user_data) |
| | Retrieve a registered callback and its user data by key and type.
|
| |
| void | yac_interp_method_check_add_constructor_callback (func_constructor constructor_callback, void *user_data, char const *key) |
| |
| void | yac_interp_method_check_get_constructor_callback (char const *key, func_constructor *constructor_callback, void **user_data) |
| |
| void | yac_interp_method_check_add_do_search_callback (func_do_search do_search_callback, void *user_data, char const *key) |
| |
| void | yac_interp_method_check_get_do_search_callback (char const *key, func_do_search *do_search_callback, void **user_data) |
| |
| void | yac_interp_method_check_buf_free () |
| |
| static void | config_check_delete (struct yac_interp_method_config *config) |
| |
| static struct yac_interp_method_config * | config_check_copy (const struct yac_interp_method_config *config) |
| |
| static int | config_check_compare (void const *a_, void const *b_) |
| |
| static enum yac_interpolation_list | config_check_get_type () |
| |
| static struct interp_method * | config_check_generate (struct yac_interp_method_config const *config) |
| |
| static struct yac_param * | config_check_get_param (struct yac_interp_method_config const *config) |
| |
| struct yac_interp_method_config * | yac_interp_method_config_default_check_new (void) |
| | Creates a check interpolation method configuration with default parameters.
|
| |
◆ callback_type
Type of callback function for the check interpolation method.
Used to distinguish between constructor and do_search callbacks in the lookup table.
| Enumerator |
|---|
| CONSTRUCTOR | Constructor callback type
|
| DO_SEARCH | Do-search callback type
|
Definition at line 110 of file interp_method_check.c.
◆ config_check_compare()
| static int config_check_compare |
( |
void const * | a_, |
|
|
void const * | b_ ) |
|
static |
◆ config_check_copy()
◆ config_check_delete()
◆ config_check_generate()
◆ config_check_get_param()
◆ config_check_get_type()
◆ delete_check()
◆ do_search_check()
◆ interp_method_check_add_callback()
Register a callback function and user data for the check interpolation method.
Adds a new entry to the callback lookup table, associating the callback and user data with a unique key and callback type. Ensures that no duplicate (key, type) pair exists.
- Parameters
-
| callback | Callback function pointer (union) |
| type | Callback type (CONSTRUCTOR or DO_SEARCH) |
| user_data | Pointer to user data to associate with the callback |
| key | Unique string identifier for the callback |
Definition at line 161 of file interp_method_check.c.
◆ interp_method_get_callback()
Retrieve a registered callback and its user data by key and type.
Searches the callback lookup table for an entry matching the given key and callback type. If found, sets the callback and user_data pointers to the registered values.
- Parameters
-
| key | Unique string identifier for the callback |
| callback | Output: union to receive the callback function pointer |
| type | Type of callback (CONSTRUCTOR or DO_SEARCH) |
| user_data | Output: pointer to receive the associated user data |
Definition at line 198 of file interp_method_check.c.
◆ yac_interp_method_check_add_constructor_callback()
| void yac_interp_method_check_add_constructor_callback |
( |
func_constructor | constructor_callback, |
|
|
void * | user_data, |
|
|
char const * | key ) |
◆ yac_interp_method_check_add_do_search_callback()
| void yac_interp_method_check_add_do_search_callback |
( |
func_do_search | do_search_callback, |
|
|
void * | user_data, |
|
|
char const * | key ) |
◆ yac_interp_method_check_buf_free()
| void yac_interp_method_check_buf_free |
( |
| ) |
|
◆ yac_interp_method_check_get_constructor_callback()
| void yac_interp_method_check_get_constructor_callback |
( |
char const * | key, |
|
|
func_constructor * | constructor_callback, |
|
|
void ** | user_data ) |
◆ yac_interp_method_check_get_do_search_callback()
| void yac_interp_method_check_get_do_search_callback |
( |
char const * | key, |
|
|
func_do_search * | do_search_callback, |
|
|
void ** | user_data ) |
◆ yac_interp_method_check_new()
constructor for an interpolation method of type interp_method_check
- Parameters
-
| [in] | constructor_callback | pointer to routine that is called in yac_interp_method_check_new |
| [in] | constructor_user_data | pointer passed to constructor_callback when it is called |
| [in] | do_search_callback | pointer to routine that is to be called when the do_search routine of this interp_method is called |
| [in] | do_search_user_data | pointer passed to do_search_callback when it is called |
- Returns
- returns a pointer to an interpolation method
Definition at line 78 of file interp_method_check.c.
◆ yac_interp_method_config_default_check_new()
◆ callback
◆ [struct]
| struct { ... } * callback_lookup_table |
Callback pointer lookup table.
Associates a callback function and user data with a unique key and callback type.
◆ callback_lookup_table_array_size
| size_t callback_lookup_table_array_size = 0 |
|
static |
◆ callback_lookup_table_size
| size_t callback_lookup_table_size = 0 |
|
static |
◆ interp_method_check_vtable
Initial value:= {
static void delete_check(struct interp_method *method)
static size_t do_search_check(struct interp_method *method, struct yac_interp_grid *interp_grid, size_t *tgt_points, size_t count, struct yac_interp_weights *weights, int *interpolation_complete)
Definition at line 31 of file interp_method_check.c.
◆ key
◆ type
◆ user_data
◆ [struct]
◆ yac_interp_method_config_vtable_check
Initial value:= {
}
static struct interp_method * config_check_generate(struct yac_interp_method_config const *config)
static int config_check_compare(void const *a_, void const *b_)
static struct yac_interp_method_config * config_check_copy(const struct yac_interp_method_config *config)
static void config_check_delete(struct yac_interp_method_config *config)
static enum yac_interpolation_list config_check_get_type()
static struct yac_param * config_check_get_param(struct yac_interp_method_config const *config)
Definition at line 384 of file interp_method_check.c.