![]() |
YAC 3.7.0
Yet Another Coupler
|
#include "interp_method.h"
Go to the source code of this file.
Macros | |
#define | YAC_INTERP_CHECK_CONSTRUCTOR_KEY_DEFAULT ("") |
#define | YAC_INTERP_CHECK_DO_SEARCH_KEY_DEFAULT ("") |
Typedefs | |
typedef void(* | func_constructor) (void *user_data) |
typedef void(* | func_do_search) (yac_int const *global_ids, double const (*coordinates_xyz)[3], size_t count, void *user_data) |
Functions | |
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) |
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 () |
#define YAC_INTERP_CHECK_CONSTRUCTOR_KEY_DEFAULT ("") |
Definition at line 12 of file interp_method_check.h.
#define YAC_INTERP_CHECK_DO_SEARCH_KEY_DEFAULT ("") |
Definition at line 13 of file interp_method_check.h.
typedef void(* func_constructor) (void *user_data) |
Definition at line 15 of file interp_method_check.h.
typedef void(* func_do_search) (yac_int const *global_ids, double const(*coordinates_xyz)[3], size_t count, void *user_data) |
Definition at line 16 of file interp_method_check.h.
void yac_interp_method_check_add_constructor_callback | ( | func_constructor | constructor_callback, |
void * | user_data, | ||
char const * | key ) |
sets a constructor_callback that can afterwards be retrieved by yac_interp_method_check_get_constructor_callback
[in] | constructor_callback | pointer to a constructor_callback routine |
[in] | user_data | pointer to user data |
[in] | key | string that can afterwards be used to retrieve the pointer |
Definition at line 150 of file interp_method_check.c.
void yac_interp_method_check_add_do_search_callback | ( | func_do_search | do_search_callback, |
void * | user_data, | ||
char const * | key ) |
sets a do_search_callback that can afterwards be retrieved by yac_interp_method_check_get_do_search_callback
[in] | do_search_callback | pointer to a do_search_callback routine |
[in] | user_data | pointer to user data |
[in] | key | string that can afterwards be used to retrieve the pointer |
Definition at line 165 of file interp_method_check.c.
void yac_interp_method_check_buf_free | ( | ) |
free internal array with provided pointers to callback routines
Definition at line 179 of file interp_method_check.c.
void yac_interp_method_check_get_constructor_callback | ( | char const * | key, |
func_constructor * | constructor_callback, | ||
void ** | user_data ) |
retrieves a constructor_callback pointer that was set by yac_interp_method_check_add_constructor_callback
[in] | key | string to identify a pointer that was previously set |
[out] | constructor_callback | pointer to constructor_callback routine |
[out] | user_data | pointer to user data |
Definition at line 157 of file interp_method_check.c.
void yac_interp_method_check_get_do_search_callback | ( | char const * | key, |
func_do_search * | do_search_callback, | ||
void ** | user_data ) |
retrieves a do_search_callback pointer that was set by yac_interp_method_check_add_do_search_callback
[in] | key | string to identify a pointer that was previously set |
[out] | do_search_callback | pointer to do_search_callback routine |
[out] | user_data | pointer to user data |
Definition at line 172 of file interp_method_check.c.
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 ) |
constructor for a interpolation method of type interp_method_check
[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 |
Definition at line 68 of file interp_method_check.c.