Bridge++  Version 1.5.4
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Macros Pages
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  bool register_factory()
34  {
35  bool init1 = Fopr::Factory_noarg::Register("Wilson_eo", create_object);
36  bool init2 = Fopr::Factory_string::Register("Wilson_eo", 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
Org::Fopr_Wilson_eo Fopr_Wilson_eo
Even-odd Wilson fermion operator.
Base class of fermion operator family.
Definition: fopr.h:46