Bridge++  Version 1.5.4
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Macros Pages
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  bool register_factory()
33  {
34  bool init1 = Fopr::Factory_noarg::Register("Wilson", create_object);
35  bool init2 = Fopr::Factory_string::Register("Wilson", create_object_with_repr);
36 
37  return init1 && init2;
38  }
39 
40 
41 #ifdef USE_FACTORY_AUTOREGISTER
42  namespace {
43  bool init = register_factory();
44  }
45 #endif
46 }
47 #endif
Org::Fopr_Wilson Fopr_Wilson
Wilson fermion operator.
Definition: fopr_Wilson.h:60
Base class of fermion operator family.
Definition: fopr.h:46