Bridge++  Version 1.5.4
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Macros Pages
fopr_WilsonGeneral.cpp
Go to the documentation of this file.
1 
14 #include "fopr_WilsonGeneral.h"
15 
16 #ifdef USE_FACTORY
17 
18 namespace Selector_Fopr_WilsonGeneral
19 {
20  namespace {
21  Fopr *create_object()
22  {
23  return new Fopr_WilsonGeneral();
24  }
25 
26 
27  Fopr *create_object_with_repr(const std::string& repr)
28  {
29  return new Fopr_WilsonGeneral(repr);
30  }
31  }
32 
33  bool register_factory()
34  {
35  bool init1 = Fopr::Factory_noarg::Register("WilsonGeneral", create_object);
36  bool init2 = Fopr::Factory_string::Register("WilsonGeneral", create_object_with_repr);
37 
38  return init1 && init2;
39  }
40 
41 
42 #ifdef USE_FACTORY_AUTOREGISTER
43  namespace {
44  bool init = register_factory();
45  }
46 #endif
47 }
48 #endif
Base class of fermion operator family.
Definition: fopr.h:46
Org::Fopr_WilsonGeneral Fopr_WilsonGeneral