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

Go to the source code of this file.

Classes

struct  RTOp_TOp_set_sub_vector_state_t
 

Functions

static int get_op_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 op_create (const struct RTOp_obj_type_vtbl_t *vtbl, const void *instance_data, RTOp_ReductTarget *obj)
 
static int op_free (const struct RTOp_obj_type_vtbl_t *vtbl, const void *dummy, void **obj_data)
 
static int extract_op_state (const struct RTOp_obj_type_vtbl_t *vtbl, const void *dummy, void *obj_data, 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 load_op_state (const struct RTOp_obj_type_vtbl_t *vtbl, const void *dummy, 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 **obj_data)
 
static int RTOp_TOp_set_sub_vector_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)
 
int RTOp_TOp_set_sub_vector_construct (const struct RTOp_SparseSubVector *sub_vec, struct RTOp_RTOp *op)
 
int RTOp_TOp_set_sub_vector_set_sub_vec (const struct RTOp_SparseSubVector *sub_vec, struct RTOp_RTOp *op)
 
int RTOp_TOp_set_sub_vector_destroy (struct RTOp_RTOp *op)
 

Variables

static struct RTOp_obj_type_vtbl_t instance_obj_vtbl
 
const struct RTOp_RTOp_vtbl_t RTOp_TOp_set_sub_vector_vtbl
 

Function Documentation

static int get_op_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 56 of file RTOp_TOp_set_sub_vector.c.

static int op_create ( const struct RTOp_obj_type_vtbl_t vtbl,
const void instance_data,
RTOp_ReductTarget obj 
)
static

Definition at line 80 of file RTOp_TOp_set_sub_vector.c.

static int op_free ( const struct RTOp_obj_type_vtbl_t vtbl,
const void dummy,
void **  obj_data 
)
static

Definition at line 92 of file RTOp_TOp_set_sub_vector.c.

static int extract_op_state ( const struct RTOp_obj_type_vtbl_t vtbl,
const void dummy,
void obj_data,
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 110 of file RTOp_TOp_set_sub_vector.c.

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

Definition at line 152 of file RTOp_TOp_set_sub_vector.c.

static int RTOp_TOp_set_sub_vector_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 230 of file RTOp_TOp_set_sub_vector.c.

int RTOp_TOp_set_sub_vector_construct ( const struct RTOp_SparseSubVector sub_vec,
struct RTOp_RTOp op 
)

Constructor.

Note that a copy of sub_vec is not made. Therefore, the client must not disturb sub_vec while this operator object is in use!

Definition at line 357 of file RTOp_TOp_set_sub_vector.c.

int RTOp_TOp_set_sub_vector_set_sub_vec ( const struct RTOp_SparseSubVector sub_vec,
struct RTOp_RTOp op 
)

Reinitialize the range for the sub-vector to extract.

Note that a copy of sub_vec is not made. Therefore, the client must not disturb sub_vec while this operator object is in use!

Definition at line 369 of file RTOp_TOp_set_sub_vector.c.

int RTOp_TOp_set_sub_vector_destroy ( struct RTOp_RTOp op)

Destructor.

Definition at line 386 of file RTOp_TOp_set_sub_vector.c.

Variable Documentation

struct RTOp_obj_type_vtbl_t instance_obj_vtbl
static
Initial value:
=
{
,NULL
}
static int op_create(const struct RTOp_obj_type_vtbl_t *vtbl, const void *instance_data, RTOp_ReductTarget *obj)
static int op_free(const struct RTOp_obj_type_vtbl_t *vtbl, const void *dummy, void **obj_data)
static int load_op_state(const struct RTOp_obj_type_vtbl_t *vtbl, const void *dummy, 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 **obj_data)
static int extract_op_state(const struct RTOp_obj_type_vtbl_t *vtbl, const void *dummy, void *obj_data, 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_op_type_num_entries(const struct RTOp_obj_type_vtbl_t *vtbl, const void *obj_data, int *num_values, int *num_indexes, int *num_chars)

Definition at line 218 of file RTOp_TOp_set_sub_vector.c.

const struct RTOp_RTOp_vtbl_t RTOp_TOp_set_sub_vector_vtbl
Initial value:
=
{
,"RTOp_TOp_set_sub_vector"
,NULL
,NULL
,NULL
}
static int RTOp_TOp_set_sub_vector_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)
const struct RTOp_obj_type_vtbl_t RTOp_obj_null_vtbl
static struct RTOp_obj_type_vtbl_t instance_obj_vtbl

Definition at line 346 of file RTOp_TOp_set_sub_vector.c.