gambit is hosted by Hepforge, IPPP Durham
GAMBIT  v1.5.0-252-gf9a3f78
a Global And Modular Bsm Inference Tool
ini_functions.cpp
Go to the documentation of this file.
1 // GAMBIT: Global and Modular BSM Inference Tool
2 // *********************************************
20 
24 
25 namespace Gambit
26 {
27 
29  int register_module(str module)
30  {
31  try
32  {
33  Core().registerModule(module);
34  }
35  catch (std::exception& e) { ini_catch(e); }
36  return 0;
37  }
38 
41  {
42  try
43  {
45  }
46  catch (std::exception& e) { ini_catch(e); }
47  return 0;
48  }
49 
52  {
53  try
54  {
55  Core().registerPrimaryModelFunctor(primary_parameters);
56  }
57  catch (std::exception& e) { ini_catch(e); }
58  return 0;
59  }
60 
62  int register_backend(str be, str ver)
63  {
64  try
65  {
66  Core().registerBackend(be, ver);
67  }
68  catch (std::exception& e) { ini_catch(e); }
69  return 0;
70  }
71 
74  {
75  try
76  {
78  }
79  catch (std::exception& e) { ini_catch(e); }
80  return 0;
81  }
82 
85  {
86  try
87  {
89  }
90  catch (std::exception& e) { ini_catch(e); }
91  return 0;
92  }
93 
94 }
gambit_core & Core()
Core accessor function.
int register_module_functor_core(module_functor_common &)
Register a module functor with the Core.
void registerPrimaryModelFunctor(primary_model_functor &)
Add a new primary model functor to primaryModelFunctorList.
Definition: core.cpp:225
int register_model_functor_core(primary_model_functor &)
Register a model functor with the Core.
Core-only functions for triggering initialisation code.
Functors specific to primary ModelParameters objects.
Definition: functors.hpp:1001
int register_management_req(module_functor_common &)
Register a loop management requirement with the Core.
Micro function useful from all sorts of other initialisation codes.
Function wrapper (functor) base class.
Definition: functors.hpp:87
void registerModule(str)
Add a new module to modules list.
Definition: core.cpp:202
void registerNestedModuleFunctor(functor &)
Add a new module functor to nestFunctorList.
Definition: core.cpp:212
Functor derived class for module functions.
Definition: functors.hpp:399
GAMBIT Core object accessor function.
int register_backend_functor(functor &)
Register a backend functor with the Core.
void ini_catch(std::exception &)
Catch initialisation exceptions.
Definition: ini_catch.cpp:29
std::string str
Shorthand for a standard string.
Definition: Analysis.hpp:35
int register_backend(str, str)
Register a backend with the Core.
int register_module(str)
Register a module with the Core.
void registerBackend(str, str)
Register a new backend.
Definition: core.cpp:222
void registerModuleFunctor(functor &)
Add a new module functor to functorList.
Definition: core.cpp:205
TODO: see if we can use this one:
Definition: Analysis.hpp:33
void registerBackendFunctor(functor &)
Add a new backend functor to backendFunctorList.
Definition: core.cpp:215