CHROMA
simple_gaugestate.cc
Go to the documentation of this file.
1 /*! \file
2  * \brief Simple gauge state and a creator
3  */
4 
9 
10 namespace Chroma
11 {
12 
13  namespace CreateSimpleGaugeStateEnv
14  {
16  multi1d<LatticeColorMatrix> >* createCreator(XMLReader& xml,
17  const std::string& path)
18  {
20  multi1d<LatticeColorMatrix> >(GaugeTypeGaugeBCEnv::reader(xml,
21  path));
22  }
23 
24  const std::string name = "SIMPLE_GAUGE_STATE";
25 
26  //! Local registration flag
27  static bool registered = false;
28 
29  //! Register all the factories
30  bool registerAll()
31  {
32  bool success = true;
33  if (! registered)
34  {
35  success &= TheCreateGaugeStateFactory::Instance().registerObject(name, createCreator);
36  registered = true;
37  }
38  return success;
39  }
40  }
41 
42 }
43 
Create a gauge connection state.
Definition: create_state.h:47
Create a simple gauge connection state.
static T & Instance()
Definition: singleton.h:432
All gauge create-state method.
Gauge create state factory.
Gauge boundary condition aggregator.
CreateGaugeState< multi1d< LatticeColorMatrix >, multi1d< LatticeColorMatrix > > * createCreator(XMLReader &xml, const std::string &path)
bool registerAll()
Register all the factories.
static bool registered
Local registration flag.
Handle< GaugeBC< multi1d< LatticeColorMatrix >, multi1d< LatticeColorMatrix > > > reader(XMLReader &xml_in, const std::string &path)
Helper function for the GaugeAction readers.
Asqtad Staggered-Dirac operator.
Definition: klein_gord.cc:10
::std::string string
Definition: gtest.h:1979
Simple gauge state and a creator.