Bridge++  Version 1.5.4
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Macros Pages
bridge_init_factory.cpp
Go to the documentation of this file.
1 
14 #include "bridge_init_factory.h"
15 
16 #ifdef USE_FACTORY
17 
18 #include "Fopr/fopr.h"
19 #include "Force/Gauge/force_G.h"
21 #include "Solver/solver.h"
22 #include "Action/action.h"
23 #include "Smear/smear.h"
24 #include "Smear/projection.h"
28 #include "Tools/randomNumbers.h"
29 #include "Tools/gammaMatrixSet.h"
30 #ifdef USE_FFTWLIB
31 #include "Tools/fft.h"
32 #endif
33 
34 #ifdef USE_FACTORY_AUTOREGISTER
35 #else
36 
37 bool bridge_init_factory()
38 {
39  bool result = true;
40 
41  result &= Fopr::init_factory();
42  result &= Force_G::init_factory();
43  result &= ForceSmear::init_factory();
44  result &= Solver::init_factory();
45  result &= Action::init_factory();
46  result &= Projection::init_factory();
47  result &= Smear::init_factory();
48  result &= GaugeFixing::init_factory();
49  result &= Source::init_factory();
50  result &= Staple::init_factory();
51  result &= RandomNumbers::init_factory();
52  result &= GammaMatrixSet::init_factory();
53 #ifdef USE_FFTWLIB
54  result &= FFT::init_factory();
55 #endif
56 
57  return result;
58 }
59 
60 
61 #endif /* USE_FACTORY_AUTOREGISTER */
62 
63 #ifdef DEBUG
64 void bridge_report_factory()
65 {
66  vout.general("------------------------------------------------\n");
67  vout.general("Factory entries\n");
68  vout.general("------------------------------------------------\n");
69 
70  Fopr::Factory_noarg::print("Fopr(void)");
71  Fopr::Factory_fopr::print("Fopr(Fopr*)");
72  Fopr::Factory_fopr_director::print("Fopr(Fopr*, Director*)");
73  Fopr::Factory_string::print("Fopr(string)");
74 
75  Force_G::Factory::print("Force_G");
76 
77  ForceSmear::Factory::print("ForceSmear");
78 
79  Solver::Factory::print("Solver");
80 
81  Action::Factory::print("Action");
82 
83  Projection::Factory::print("Projection");
84  Smear::Factory::print("Smear");
85 
86  GaugeFixing::Factory::print("GaugeFixing");
87 
88  Source::Factory::print("Source");
89 
90  Staple::Factory::print("Staple");
91 
92  RandomNumbers::Factory_int::print("RandomNumbers(int)");
93  RandomNumbers::Factory_file::print("RandomNumbers(string)");
94 
95  GammaMatrixSet::Factory::print("GammaMatrixSet");
96 
97  vout.general("------------------------------------------------\n");
98 }
99 
100 
101 #endif
102 
103 #endif /* USE_FACTORY */
BridgeIO vout
Definition: bridgeIO.cpp:503
void general(const char *format,...)
Definition: bridgeIO.cpp:197