YetAnotherCoupler 3.2.0_a
Loading...
Searching...
No Matches
Data Structures | Typedefs | Enumerations | Functions | Variables
interp_method_check.c File Reference
#include "config.h"
#include <string.h>
#include "interp_method_internal.h"
#include "utils_core.h"
#include "ensure_array_size.h"
#include "interp_method_check.h"
Include dependency graph for interp_method_check.c:

Go to the source code of this file.

Data Structures

struct  interp_method_check
 

Typedefs

typedef void(* func_dummy) (void)
 

Enumerations

enum  callback_type { CONSTRUCTOR , DO_SEARCH }
 

Functions

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)
 
static void delete_check (struct interp_method *method)
 
struct interp_methodyac_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 (func_dummy callback, enum callback_type type, void *user_data, char const *key)
 
static void interp_method_get_callback (char const *key, func_dummy *callback, enum callback_type type, void **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)
 

Variables

static struct interp_method_vtable interp_method_check_vtable
 
struct { 
 
   struct { 
 
      func_dummy   callback 
 
      void *   user_data 
 
   }   value 
 
   enum callback_type   type 
 
   char *   key 
 
} * callback_lookup_table = NULL 
 
static size_t callback_lookup_table_array_size = 0
 
static size_t callback_lookup_table_size = 0
 

Typedef Documentation

◆ func_dummy

typedef void(* func_dummy) (void)

Definition at line 89 of file interp_method_check.c.

Enumeration Type Documentation

◆ callback_type

Enumerator
CONSTRUCTOR 
DO_SEARCH 

Definition at line 85 of file interp_method_check.c.

Function Documentation

◆ delete_check()

static void delete_check ( struct interp_method method)
static

Definition at line 81 of file interp_method_check.c.

◆ do_search_check()

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 
)
static

Definition at line 35 of file interp_method_check.c.

Here is the call graph for this function:

◆ interp_method_check_add_callback()

static void interp_method_check_add_callback ( func_dummy  callback,
enum callback_type  type,
void *  user_data,
char const *  key 
)
static

Definition at line 101 of file interp_method_check.c.

Here is the caller graph for this function:

◆ interp_method_get_callback()

static void interp_method_get_callback ( char const *  key,
func_dummy callback,
enum callback_type  type,
void **  user_data 
)
static

Definition at line 127 of file interp_method_check.c.

Here is the caller graph for this function:

◆ 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 
)

sets a constructor_callback that can afterwards be retrieved by yac_interp_method_check_get_constructor_callback

Parameters
[in]constructor_callbackpointer to a constructor_callback routine
[in]user_datapointer to user data
[in]keystring that can afterwards be used to retrieve the pointer
Examples
test_instance_parallel2.c.

Definition at line 145 of file interp_method_check.c.

Here is the call graph for this function:

◆ 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 
)

sets a do_search_callback that can afterwards be retrieved by yac_interp_method_check_get_do_search_callback

Parameters
[in]do_search_callbackpointer to a do_search_callback routine
[in]user_datapointer to user data
[in]keystring that can afterwards be used to retrieve the pointer
Examples
test_instance_parallel2.c.

Definition at line 160 of file interp_method_check.c.

Here is the call graph for this function:

◆ 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 
)

retrieves a constructor_callback pointer that was set by yac_interp_method_check_add_constructor_callback

Parameters
[in]keystring to identify a pointer that was previously set
[out]constructor_callbackpointer to constructor_callback routine
[out]user_datapointer to user data

Definition at line 152 of file interp_method_check.c.

Here is the call graph for this function:
Here is the caller graph for this function:

◆ 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 
)

retrieves a do_search_callback pointer that was set by yac_interp_method_check_add_do_search_callback

Parameters
[in]keystring to identify a pointer that was previously set
[out]do_search_callbackpointer to do_search_callback routine
[out]user_datapointer to user data

Definition at line 167 of file interp_method_check.c.

Here is the call graph for this function:
Here is the caller graph for this function:

◆ yac_interp_method_check_new()

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

Parameters
[in]constructor_callbackpointer to routine that is called in yac_interp_method_check_new
[in]constructor_user_datapointer passed to constructor_callback when it is called
[in]do_search_callbackpointer to routine that is to be called when the do_search routine of this interp_method is called
[in]do_search_user_datapointer passed to do_search_callback when it is called
Returns
returns a pointer to an interpolation method

Definition at line 63 of file interp_method_check.c.

Here is the call graph for this function:
Here is the caller graph for this function:

Variable Documentation

◆ callback

func_dummy callback

Definition at line 92 of file interp_method_check.c.

◆ [struct]

struct { ... } * callback_lookup_table

◆ callback_lookup_table_array_size

size_t callback_lookup_table_array_size = 0
static

Definition at line 98 of file interp_method_check.c.

◆ callback_lookup_table_size

size_t callback_lookup_table_size = 0
static

Definition at line 99 of file interp_method_check.c.

◆ interp_method_check_vtable

struct interp_method_vtable interp_method_check_vtable
static
Initial value:
= {
.do_search = do_search_check,
.delete = delete_check}
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)
static void delete_check(struct interp_method *method)

Definition at line 24 of file interp_method_check.c.

◆ key

char* key

Definition at line 96 of file interp_method_check.c.

◆ type

enum callback_type type
Examples
test_basic_grid_data.c.

Definition at line 95 of file interp_method_check.c.

◆ user_data

void* user_data

Definition at line 93 of file interp_method_check.c.

◆ [struct]

struct { ... } value