24 field_data->
masks = NULL;
32 char const * mask_name) {
38 field_data->
masks[masks_idx].
name = (
char *)mask_name;
39 field_data->
masks[masks_idx].
data = (
int*)mask;
54 return coordinates_idx;
67 "ERROR(yac_field_data_get_mask_data): invalid mask index");
73 struct yac_field_data * field_data,
size_t mask_idx,
int * mask_data) {
77 "ERROR(yac_field_data_set_mask_data): invalid mask index");
79 field_data->
masks[mask_idx].
data = mask_data;
87 "ERROR(yac_field_data_get_mask_name): invalid mask index");
102 "ERROR(yac_field_data_get_coordinates_data): invalid coordinates index");
114 "ERROR(yac_field_data_set_coordinates_data): invalid coordinates index");
116 field_data->
coordinates[coordinates_idx] = coordinates_data;
121 for (
size_t i = 0; i < field_data->
masks_count; ++i) {
125 free(field_data->
masks);
size_t yac_field_data_get_masks_count(struct yac_field_data *field_data)
void yac_field_data_delete(struct yac_field_data *field_data)
void yac_field_data_set_mask_data(struct yac_field_data *field_data, size_t mask_idx, int *mask_data)
size_t yac_field_data_get_coordinates_count(struct yac_field_data *field_data)
yac_const_coordinate_pointer yac_field_data_get_coordinates_data(struct yac_field_data *field_data, size_t coordinates_idx)
int const * yac_field_data_get_mask_data(struct yac_field_data *field_data, size_t mask_idx)
char const * yac_field_data_get_mask_name(struct yac_field_data *field_data, size_t mask_idx)
void yac_field_data_set_coordinates_data(struct yac_field_data *field_data, size_t coordinates_idx, yac_coordinate_pointer coordinates_data)
size_t yac_field_data_add_mask_nocpy(struct yac_field_data *field_data, int const *mask, char const *mask_name)
struct yac_field_data * yac_field_data_empty_new()
size_t yac_field_data_add_coordinates_nocpy(struct yac_field_data *field_data, yac_coordinate_pointer coordinates)
#define xrealloc(ptr, size)
yac_coordinate_pointer * coordinates
struct yac_field_data::@1 * masks
#define YAC_ASSERT(exp, msg)
double const (* yac_const_coordinate_pointer)[3]
double(* yac_coordinate_pointer)[3]