Bridge++  Ver. 2.0.2
fopr_Wilson_eo.cpp
Go to the documentation of this file.
1 
14 #include "fopr_Wilson_eo.h"
15 
16 #ifdef USE_FACTORY
17 
18 namespace Selector_Fopr_Wilson_eo
19 {
20  namespace {
21  Fopr *create_object()
22  {
23  return new Fopr_Wilson_eo();
24  }
25 
26 
27  Fopr *create_object_with_repr(const std::string& repr)
28  {
29  return new Fopr_Wilson_eo(repr);
30  }
31 
32 
33  Fopr *create_object_with_params(const Parameters& params)
34  {
35  return new Fopr_Wilson_eo(params);
36  }
37  }
38 
39  bool register_factory()
40  {
41  bool init = true;
42  init &= Fopr::Factory_noarg::Register("Wilson_eo", create_object);
43  init &= Fopr::Factory_string::Register("Wilson_eo", create_object_with_repr);
44  init &= Fopr::Factory_params::Register("Wilson_eo", create_object_with_params);
45  return init;
46  }
47 
48 
49 #ifdef USE_FACTORY_AUTOREGISTER
50  namespace {
51  bool init = register_factory();
52  }
53 #endif
54 }
55 #endif
Fopr_Wilson_eo
Org::Fopr_Wilson_eo Fopr_Wilson_eo
Even-odd Wilson fermion operator.
Definition: fopr_Wilson_eo.h:51
AFopr< Field >
Parameters
Class for parameters.
Definition: parameters.h:46
fopr_Wilson_eo.h