blob: 76a8ecf29aca57ed4f21edfc96f6083db97d7e9c (
plain)
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
|
/**
\file models.hpp
\brief implement of the prototype pattern to get models from string keywords
\author Junhua Gu
*/
#ifndef MODELS_HPP
#define MODELS_HPP
#define OPT_HEADER
#include <core/fitter.hpp>
#include <map>
#include <string>
#include <list>
#include "vecn.hpp"
namespace opt_utilities
{
extern std::map<std::string,model<double,double,std::vector<double>,std::string>* > model_map;
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 model<double,double,std::vector<double>,std::string >& get_1dmodel_by_name(const char*);
extern const char* get_model_name(int n);
}
#endif
|