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