Tomographer  v5.3
Tomographer C++ Framework Documentation
TaskCData Interface

This is a ‘type interface.’ See Type Interfaces for more info on what that is.

This type is meant to store all constant, shared data which may be accessed by the tasks while they run. It also provides the inputs to the tasks.

Note that the TaskCData type interface is only used if you use the ‘low-level’ task interface and implement the tasks yourself. If you use the higher-level Tomographer::MHRWTasks or Tomographer::MHRWTasks::ValueHistogramTasks, your CData-type class should inherit the respective CData classes for those.

InputType getTaskInput(unsigned int task_id) const
Provide input to a new task. task_id is the task iteration number (task id).
The return value may be any type. It will be passed directly to the first argument of the constructor.