Fuse.Problem
Classes | Macros | Typedefs | Enumerations
problem.h File Reference

The Problem container class. More...

#include <cmath>
#include <cstddef>
#include <dlfcn.h>
#include <iostream>
#include <map>
#include <regex>
#include <sstream>
#include <string>
#include <unistd.h>
#include <vector>
Include dependency graph for problem.h:

Go to the source code of this file.

Classes

class  Problem< FP >
 The problem container class that abstract the device of filesystem. More...
 

Macros

#define PROBLEM_PRECISION   double
 
#define PROBLEM_E_NOFILE   -100
 

Typedefs

typedef enum FunctionInput FunctionInput
 Enumeration for the writing filesystem. More...
 
typedef enum FunctionOutput FunctionOutput
 Enumeration for the reading filesystem. More...
 
typedef void(* Function) (void *, void *, void *)
 Problem Function pointer definition. More...
 

Enumerations

enum  FunctionInput { xi = -2, pi }
 Enumeration for the writing filesystem. More...
 
enum  FunctionOutput {
  root = -4, info, xo, po,
  fo
}
 Enumeration for the reading filesystem. More...
 

Detailed Description

The Problem container class.

This file describes the class that contains the problem

Typedef Documentation

◆ Function

typedef void(* Function) (void *, void *, void *)

Problem Function pointer definition.

This is a definition of the function pointer that are inluded in the external shared object that is loaded by the filesystem at initialization.

◆ FunctionInput

Enumeration for the writing filesystem.

The enum FunctionInput is used to enumerate the elements in input, that are, as for now, only the input file and the parameter file. The starting value of this enum is changed in such a way it reflects the ones in FunctionOutput

◆ FunctionOutput

Enumeration for the reading filesystem.

The enum FunctionOutput is used to enumerate the elements in output files. The starting value is a negative number that intercepts the root of the filesystem. Any value below root is consider as not part of the filesystem, while a number above or equal than 0 is considered as part of the output of an evaluated function.

Enumeration Type Documentation

◆ FunctionInput

Enumeration for the writing filesystem.

The enum FunctionInput is used to enumerate the elements in input, that are, as for now, only the input file and the parameter file. The starting value of this enum is changed in such a way it reflects the ones in FunctionOutput

Enumerator
xi 

Value for the input of variables

pi 

Value for the input of parameters

◆ FunctionOutput

Enumeration for the reading filesystem.

The enum FunctionOutput is used to enumerate the elements in output files. The starting value is a negative number that intercepts the root of the filesystem. Any value below root is consider as not part of the filesystem, while a number above or equal than 0 is considered as part of the output of an evaluated function.

Enumerator
root 

value for the root of the filesystem "/"

info 

value for the info file that contains some problem info

xo 

value for reading the last input values

po 

value for reading the last parameter values

fo 

value for reading an output function value