MOOCHO (Single Doxygen Collection) Version of the Day
Defines | Functions | Variables
RTOp_ROp_max_inequ_viol.c File Reference
#include <math.h>
#include "RTOp_ROp_max_inequ_viol.h"
#include "RTOp_obj_null_vtbl.h"
#include "RTOp_obj_value_vtbl.h"
#include "RTOp_obj_free_free.h"
#include "RTOp_get_reduct_op.hpp"
#include <stdlib.h>
Include dependency graph for RTOp_ROp_max_inequ_viol.c:

Go to the source code of this file.

Defines

#define max(a, b)   ( (a) > (b) ? (a) : (b) )
#define min(a, b)   ( (a) < (b) ? (a) : (b) )

Functions

static int get_targ_type_num_entries (const struct RTOp_obj_type_vtbl_t *vtbl, const void *obj_data, int *num_values, int *num_indexes, int *num_chars)
static int targ_obj_reinit (const struct RTOp_obj_type_vtbl_t *vtbl, const void *obj_data, RTOp_ReductTarget targ_obj)
static int targ_obj_create (const struct RTOp_obj_type_vtbl_t *vtbl, const void *obj_data, RTOp_ReductTarget *targ_obj)
static int targ_extract_state (const struct RTOp_obj_type_vtbl_t *vtbl, const void *obj_data, void *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[])
static int targ_load_state (const struct RTOp_obj_type_vtbl_t *vtbl, const void *obj_data, 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[], void **reduct_obj)
static int RTOp_ROp_max_inequ_viol_apply_op (const struct RTOp_RTOp_vtbl_t *vtbl, const void *obj_data, const int num_vecs, const struct RTOp_SubVector vecs[], const int num_targ_vecs, const struct RTOp_MutableSubVector targ_vecs[], RTOp_ReductTarget targ_obj)
static int reduce_reduct_objs (const struct RTOp_RTOp_vtbl_t *vtbl, const void *obj_data, RTOp_ReductTarget in_reduct_obj, RTOp_ReductTarget inout_reduct_obj)
 INSERT_GET_REDUCT_OP_FUNCS (3, 2, 0, RTOp_ROp_max_inequ_viol_reduct_obj_t, reduce_reduct_objs, targ_load_state, targ_extract_state, external_reduct_op, get_reduct_op) const
int RTOp_ROp_max_inequ_viol_construct (struct RTOp_RTOp *op)
int RTOp_ROp_max_inequ_viol_destroy (struct RTOp_RTOp *op)
struct
RTOp_ROp_max_inequ_viol_reduct_obj_t 
RTOp_ROp_max_inequ_viol_val (RTOp_ReductTarget targ_obj)

Variables

static struct RTOp_obj_type_vtbl_t targ_obj_vtbl

Define Documentation

#define max (   a,
 
)    ( (a) > (b) ? (a) : (b) )

Definition at line 33 of file RTOp_ROp_max_inequ_viol.c.

#define min (   a,
 
)    ( (a) < (b) ? (a) : (b) )

Definition at line 34 of file RTOp_ROp_max_inequ_viol.c.


Function Documentation

static int get_targ_type_num_entries ( const struct RTOp_obj_type_vtbl_t vtbl,
const void *  obj_data,
int *  num_values,
int *  num_indexes,
int *  num_chars 
) [static]

Definition at line 50 of file RTOp_ROp_max_inequ_viol.c.

static int targ_obj_reinit ( const struct RTOp_obj_type_vtbl_t vtbl,
const void *  obj_data,
RTOp_ReductTarget  targ_obj 
) [static]

Definition at line 64 of file RTOp_ROp_max_inequ_viol.c.

static int targ_obj_create ( const struct RTOp_obj_type_vtbl_t vtbl,
const void *  obj_data,
RTOp_ReductTarget targ_obj 
) [static]

Definition at line 78 of file RTOp_ROp_max_inequ_viol.c.

static int targ_extract_state ( const struct RTOp_obj_type_vtbl_t vtbl,
const void *  obj_data,
void *  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[] 
) [static]

Definition at line 88 of file RTOp_ROp_max_inequ_viol.c.

static int targ_load_state ( const struct RTOp_obj_type_vtbl_t vtbl,
const void *  obj_data,
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[],
void **  reduct_obj 
) [static]

Definition at line 114 of file RTOp_ROp_max_inequ_viol.c.

static int RTOp_ROp_max_inequ_viol_apply_op ( const struct RTOp_RTOp_vtbl_t vtbl,
const void *  obj_data,
const int  num_vecs,
const struct RTOp_SubVector  vecs[],
const int  num_targ_vecs,
const struct RTOp_MutableSubVector  targ_vecs[],
RTOp_ReductTarget  targ_obj 
) [static]

Definition at line 152 of file RTOp_ROp_max_inequ_viol.c.

static int reduce_reduct_objs ( const struct RTOp_RTOp_vtbl_t vtbl,
const void *  obj_data,
RTOp_ReductTarget  in_reduct_obj,
RTOp_ReductTarget  inout_reduct_obj 
) [static]

Definition at line 254 of file RTOp_ROp_max_inequ_viol.c.

INSERT_GET_REDUCT_OP_FUNCS ( ,
,
,
RTOp_ROp_max_inequ_viol_reduct_obj_t  ,
reduce_reduct_objs  ,
targ_load_state  ,
targ_extract_state  ,
external_reduct_op  ,
get_reduct_op   
) const

Definition at line 278 of file RTOp_ROp_max_inequ_viol.c.

int RTOp_ROp_max_inequ_viol_construct ( struct RTOp_RTOp op)

Definition at line 296 of file RTOp_ROp_max_inequ_viol.c.

int RTOp_ROp_max_inequ_viol_destroy ( struct RTOp_RTOp op)

Definition at line 303 of file RTOp_ROp_max_inequ_viol.c.

struct RTOp_ROp_max_inequ_viol_reduct_obj_t RTOp_ROp_max_inequ_viol_val ( RTOp_ReductTarget  targ_obj) [read]

Definition at line 311 of file RTOp_ROp_max_inequ_viol.c.


Variable Documentation

 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Defines