1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
|
#ifndef MODELS_HPP
#define MODELS_HPP
#include <core/fitter.hpp>
#include <map>
#include <string>
#include <list>
#include "vecn.hpp"
#include "strmodel1d.hpp"
namespace opt_utilities
{
extern std::map<std::string,model<double,double,std::vector<double>,std::string>* > model_map;
extern std::map<std::string,model<double,vecn<double,2>,std::vector<double>,std::string >* > model2d_map;
extern strmodel1d strm1d;
extern std::list<std::string> get_model_name_list();
extern int get_n_1dmodels();
// extern void init_model_map();
// extern void release_model_map();
extern std::list<std::string> get_model2d_name_list();
// extern void init_model2d_map();
// extern void release_model2d_map();
extern int get_n_2dmodels();
extern model<double,double,std::vector<double>,std::string >& get_1dmodel_by_name(const char*);
extern model<double,vecn<double,2>,std::vector<double>,std::string >& get_2dmodel_by_name(const char*);
extern strmodel1d& get_strm1d();
}
#endif
|