RTOp_obj_index_vtbl.c File Reference

#include "RTOp_obj_index_vtbl.h"
#include "RTOp_obj_free_free.h"

Include dependency graph for RTOp_obj_index_vtbl.c:

Go to the source code of this file.

Functions

int get_obj_type_num_entries (const struct RTOp_obj_type_vtbl_t *vtbl, const void *instance_data, int *num_values, int *num_indexes, int *num_chars)
int obj_create (const struct RTOp_obj_type_vtbl_t *vtbl, const void *instance_data, void **obj)
int obj_reinit (const struct RTOp_obj_type_vtbl_t *vtbl, const void *instance_data, void *obj)
int extract_state (const struct RTOp_obj_type_vtbl_t *vtbl, const void *instance_data, void *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 load_state (const struct RTOp_obj_type_vtbl_t *vtbl, const void *instance_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 **obj)

Variables

const struct RTOp_obj_type_vtbl_t RTOp_obj_index_vtbl


Function Documentation

int get_obj_type_num_entries const struct RTOp_obj_type_vtbl_t vtbl,
const void *  instance_data,
int *  num_values,
int *  num_indexes,
int *  num_chars
[static]
 

Definition at line 36 of file RTOp_obj_index_vtbl.c.

int obj_create const struct RTOp_obj_type_vtbl_t vtbl,
const void *  instance_data,
void **  obj
[static]
 

Definition at line 50 of file RTOp_obj_index_vtbl.c.

int obj_reinit const struct RTOp_obj_type_vtbl_t vtbl,
const void *  instance_data,
void *  obj
[static]
 

Definition at line 58 of file RTOp_obj_index_vtbl.c.

int extract_state const struct RTOp_obj_type_vtbl_t vtbl,
const void *  instance_data,
void *  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 64 of file RTOp_obj_index_vtbl.c.

int load_state const struct RTOp_obj_type_vtbl_t vtbl,
const void *  instance_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 **  obj
[static]
 

Definition at line 84 of file RTOp_obj_index_vtbl.c.


Variable Documentation

const struct RTOp_obj_type_vtbl_t RTOp_obj_index_vtbl
 

Initial value:

{
  get_obj_type_num_entries
  ,obj_create
  ,obj_reinit
  ,RTOp_obj_free_free
  ,extract_state
  ,load_state
}
Virtual function table for a simple scalar object of type RTOp_index_type.

The functions do the following:

  • get_obj_type_num_entries(...)
    • vtbl [in] Ignored
    • instance_data [in] Ignored
    • num_values [out] Returns 0
    • num_indexes [out] Returns 1
    • num_chars [out] Returns 0
  • obj_create(...)
    • vtbl [in] Ignored
    • instance_data [in] Ignored
    • obj [out] Points an allocated to a RTOp_index_type object initialized to 0
  • obj_reinit(...)
    • vtbl [in] Ignored
    • instance_data [in] Ignored
    • obj [in/out] RTOp_index_type object reinitialized to 0
  • obj_free(...)
    • vtbl [in] Ignored
    • instance_data [in] Ignored
    • obj [in/out] allocated object is freed and obj is set to NULL.
  • extract_state(...)
    • vtbl [in] Ignored
    • instance_data [in] Ignored
    • obj [in] Allocated RTOp_index_type object.
    • num_values [in] Must be 0
    • value_data [out] Must be NULL
    • num_indexes [in] Must be 1
    • index_data [out] index_data[0] = *(RTOp_index_type*)obj
    • num_chars [in] Must be 0
    • char_data</tt > [out] Must be NULL
  • load_state(...)
    • vtbl [in] Ignored
    • instance_data [in] Ignored
    • num_values [in] Must be 0
    • value_data [in] Must be NULL
    • num_indexes [in] Must be 1
    • index_data [in] index_data[0]
    • num_chars [in] Must be 0
    • char_data</tt > [in] Must be NULL
    • obj [in/out] If *obj == NULL then *obj = malloc(sizeof(RTOp_index_type)) and *(RTOp_index_type)*obj = index_data[0]

Definition at line 106 of file RTOp_obj_index_vtbl.c.


Generated on Thu Sep 18 12:35:59 2008 for MOOCHO (Single Doxygen Collection) by doxygen 1.3.9.1