CHROMA
enum_gaugeacttype_io.h
Go to the documentation of this file.
1 // -*- C++ -*-
2 /*! \file
3  * \brief Gauge action enum
4  */
5 #ifndef enum_gaugeacttype_io_h
6 #define enum_gaugeacttype_io_h
7 
8 #include "chromabase.h"
9 #include <string>
10 #include "singleton.h"
12 
13 /* *********!!!!!!!!!!!!!!!!!!! WARNING WARNING !!!!!!!!!!!!!!!! *********** */
14 // These actions are only relevant to Al Hart's topological code.
15 // The production HMC etc does not use these enums but works off its
16 // own factory
17 /* *********!!!!!!!!!!!!!!!!!!! WARNING WARNING !!!!!!!!!!!!!!!! *********** */
18 
19 namespace Chroma {
20 
21  /*!
22  * Types and structures
23  *
24  * \ingroup io
25  *
26  * @{
27  */
28  //! GaugeAct type
29  enum GaugeActType {
37 
38  };
39 
40 
41 
42  namespace GaugeActTypeEnv {
43  //! The number of different shaped loops in largest action
44  extern const int No_fmn; // Al's own private definition
45 
46  extern const std::string typeIDString;
47  extern bool registered;
48  bool registerAll(void); // Forward declaration
49  }
50 
51  // A singleton to hold the typemap
53 
54  // Reader and writer
55 
56  //! Read a GaugeActType enum
57  void read(XMLReader& r, const std::string& path, GaugeActType& t);
58 
59  //! Write an GaugeActType enum
60  void write(XMLWriter& w, const std::string& path, const GaugeActType& t);
61 
62  /*! @} */ // end of group io
63 }
64 #endif
Primary include file for CHROMA library code.
Enum std::map.
void read(XMLReader &xml, const std::string &path, AsqtadFermActParams &param)
Read parameters.
void write(XMLWriter &xml, const std::string &path, const AsqtadFermActParams &param)
Writer parameters.
SingletonHolder< EnumTypeMap< GaugeActType > > theGaugeActTypeMap
GaugeActType
GaugeAct type.
int t
Definition: meslate.cc:37
const int No_fmn
The number of different shaped loops in largest action.
const std::string typeIDString
Asqtad Staggered-Dirac operator.
Definition: klein_gord.cc:10
::std::string string
Definition: gtest.h:1979
Singleton support.