coco_problem_transformed_data_t Struct Reference

The transformed COCO problem data type. More...

#include <coco_internal.h>

Data Fields

coco_problem_tinner_problem
 Pointer to the inner problem. More...
 
void * data
 Pointer to data, which enables further wrapping of the problem. More...
 
coco_data_free_function_t data_free_function
 Function to free the contents of data. More...
 

Detailed Description

The transformed COCO problem data type.

This is a type of a generic structure for a transformed ("outer") coco_problem. It makes possible the wrapping of problems as layers of an onion. Initialized in the coco_problem_transformed_allocate function, it makes the current ("outer") transformed problem a "derived problem class", which inherits from the "inner" problem, the "base class".

From the perspective of the inner problem:

  • data holds the meta-information to administer the inheritance
  • data->data holds the additional fields of the derived class (the outer problem)
  • data->inner_problem points to the inner problem (now we have a linked list)

Field Documentation

void* data

Pointer to data, which enables further wrapping of the problem.

coco_data_free_function_t data_free_function

Function to free the contents of data.

coco_problem_t* inner_problem

Pointer to the inner problem.


The documentation for this struct was generated from the following file: