MOOCHO (Single Doxygen Collection)  Version of the Day
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Macros Groups Pages
Macros | 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.

Macros

#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 const struct
RTOp_obj_type_vtbl_t 
targ_obj_vtbl
 

Macro Definition Documentation

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

Definition at line 46 of file RTOp_ROp_max_inequ_viol.c.

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

Definition at line 47 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 63 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 77 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 91 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 101 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 127 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 165 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 267 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 291 of file RTOp_ROp_max_inequ_viol.c.

int RTOp_ROp_max_inequ_viol_construct ( struct RTOp_RTOp op)

Definition at line 309 of file RTOp_ROp_max_inequ_viol.c.

int RTOp_ROp_max_inequ_viol_destroy ( struct RTOp_RTOp op)

Definition at line 316 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)

Definition at line 324 of file RTOp_ROp_max_inequ_viol.c.

Variable Documentation

const struct RTOp_obj_type_vtbl_t targ_obj_vtbl
static
Initial value:
=
{
}
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 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 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)
int RTOp_obj_free_free(const struct RTOp_obj_type_vtbl_t *vtbl, const void *instance_data, void **obj)

Definition at line 153 of file RTOp_ROp_max_inequ_viol.c.