MOOCHO (Single Doxygen Collection)  Version of the Day
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Macros Groups Pages
Classes | Macros | Typedefs | Functions | Variables
RTOp.c File Reference
#include <stdio.h>
#include <assert.h>
#include <string.h>
#include "RTOp.h"
Include dependency graph for RTOp.c:

Go to the source code of this file.

Classes

struct  RTOp_Server_op_class_name
 

Macros

#define RTOp_SERVER_MAX_NUM_ENTRIES   50
 

Typedefs

typedef const struct
RTOp_RTOp_vtbl_t
RTOp_RTOp_vtbl_t_ptr
 

Functions

void RTOp_sub_vector (RTOp_index_type global_offset, RTOp_index_type sub_dim, const RTOp_value_type values[], ptrdiff_t values_stride, struct RTOp_SubVector *sub_vec)
 
void RTOp_sub_vector_null (struct RTOp_SubVector *sub_vec)
 
void RTOp_mutable_sub_vector (RTOp_index_type global_offset, RTOp_index_type sub_dim, RTOp_value_type values[], ptrdiff_t values_stride, struct RTOp_MutableSubVector *sub_vec)
 
void RTOp_mutable_sub_vector_null (struct RTOp_MutableSubVector *sub_vec)
 
int RTOp_get_op_name (const struct RTOp_RTOp *op, const char **op_name)
 
int RTOp_get_op_type_num_entries (const struct RTOp_RTOp *op, int *num_values, int *num_indexes, int *num_chars)
 
int RTOp_extract_op_state (const struct RTOp_RTOp *op, int num_values, RTOp_value_type value_data[], int num_indexes, RTOp_index_type index_data[], int num_chars, RTOp_char_type char_data[])
 
int RTOp_load_op_state (int num_values, const RTOp_value_type value_data[], int num_indexes, const RTOp_index_type index_data[], int num_chars, const RTOp_char_type char_data[], struct RTOp_RTOp *op)
 
int RTOp_free_op (struct RTOp_RTOp *op)
 
int RTOp_get_reduct_type_num_entries (const struct RTOp_RTOp *op, int *num_values, int *num_indexes, int *num_chars)
 
int RTOp_reduct_obj_create (const struct RTOp_RTOp *op, RTOp_ReductTarget *reduct_obj)
 
int RTOp_reduct_obj_reinit (const struct RTOp_RTOp *op, RTOp_ReductTarget reduct_obj)
 
int RTOp_reduct_obj_free (const struct RTOp_RTOp *op, RTOp_ReductTarget *reduct_obj)
 
int RTOp_extract_reduct_obj_state (const struct RTOp_RTOp *op, const RTOp_ReductTarget reduct_obj, int num_values, RTOp_value_type value_data[], int num_indexes, RTOp_index_type index_data[], int num_chars, RTOp_char_type char_data[])
 
int RTOp_load_reduct_obj_state (const struct RTOp_RTOp *op, int num_values, const RTOp_value_type value_data[], int num_indexes, const RTOp_index_type index_data[], int num_chars, const RTOp_char_type char_data[], RTOp_ReductTarget reduct_obj)
 
int RTOp_coord_invariant (const struct RTOp_RTOp *op, int *coord_invariant)
 
int RTOp_apply_op (const struct RTOp_RTOp *op, const int num_vecs, const struct RTOp_SubVector sub_vecs[], const int num_targ_vecs, const struct RTOp_MutableSubVector targ_sub_vecs[], RTOp_ReductTarget reduct_obj)
 
int RTOp_reduce_reduct_objs (const struct RTOp_RTOp *op, RTOp_ReductTarget in_reduct_obj, RTOp_ReductTarget inout_reduct_obj)
 
int RTOp_get_reduct_op (const struct RTOp_RTOp *op, RTOp_reduct_op_func_ptr_t *reduct_op_func_ptr)
 
static int find_op_name (const struct RTOp_Server_op_class_name op_name_tbl[], int num_entries, const char op_name[])
 
static int find_op_vtbl (const RTOp_RTOp_vtbl_t_ptr op_vtbl_tbl[], int num_entries, RTOp_RTOp_vtbl_t_ptr op_vtbl)
 
int RTOp_Server_add_op_name_vtbl (const char op_class_name[], const struct RTOp_RTOp_vtbl_t *op_class_vtbl)
 
int RTOp_Server_lookup_op_name (const struct RTOp_RTOp_vtbl_t *op_class_vtbl, char op_class_name[])
 
int RTOp_Server_construct_op (const char op_class_name[], int num_values, const RTOp_value_type value_data[], int num_indexes, const RTOp_index_type index_data[], int num_chars, const RTOp_char_type char_data[], struct RTOp_RTOp *op)
 
void RTOp_Server_dump (FILE *file)
 

Variables

static int RTOp_Server_num_ops = 0
 
static struct
RTOp_Server_op_class_name 
RTOp_Server_op_names [RTOp_SERVER_MAX_NUM_ENTRIES]
 
static RTOp_RTOp_vtbl_t_ptr RTOp_Server_op_vtbl [RTOp_SERVER_MAX_NUM_ENTRIES]
 

Macro Definition Documentation

#define RTOp_SERVER_MAX_NUM_ENTRIES   50

Definition at line 404 of file RTOp.c.

Typedef Documentation

typedef const struct RTOp_RTOp_vtbl_t* RTOp_RTOp_vtbl_t_ptr

Definition at line 410 of file RTOp.c.

Function Documentation

static int find_op_name ( const struct RTOp_Server_op_class_name  op_name_tbl[],
int  num_entries,
const char  op_name[] 
)
static

Definition at line 423 of file RTOp.c.

static int find_op_vtbl ( const RTOp_RTOp_vtbl_t_ptr  op_vtbl_tbl[],
int  num_entries,
RTOp_RTOp_vtbl_t_ptr  op_vtbl 
)
static

Definition at line 437 of file RTOp.c.

Variable Documentation

int RTOp_Server_num_ops = 0
static

Definition at line 402 of file RTOp.c.

struct RTOp_Server_op_class_name RTOp_Server_op_names[RTOp_SERVER_MAX_NUM_ENTRIES]
static

Definition at line 408 of file RTOp.c.

Definition at line 412 of file RTOp.c.