CHROMA
enum_stochsrc_io.h
Go to the documentation of this file.
1 // -*- C++ -*-
2 /*! \file
3  * \brief Stochastic source enum
4  */
5 #ifndef enum_stochsrc_io_h
6 #define enum_stochsrc_io_h
7 
8 #include "chromabase.h"
9 #include <string>
10 #include "singleton.h"
12 #include "meas/hadron/enum_loops_s.h" // This is where the enum is defined. We are non-intrusive
13 
14 
15 namespace Chroma {
16 
17  /*!
18  * Types and structures
19  *
20  * \ingroup io
21  *
22  * @{
23  */
24 
25  namespace StochSrcEnv {
26  extern const std::string typeIDString;
27  extern bool registered;
28  bool registerAll(void); // Forward declaration
29  }
30 
31  // A singleton to hold the typemap
33 
34  // Reader and writer
35 
36  //! Read an InvType enum
37 
38  void read(XMLReader& r, const std::string& path, VolSrc& t);
39 
40  //! Write an InvType enum
41  void write(XMLWriter& w, const std::string& path, const VolSrc& t);
42 
43  /*! @} */ // end of group io
44 
45 }
46 #endif
Primary include file for CHROMA library code.
Enums for the different types of stochastic source.
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.
int t
Definition: meslate.cc:37
const std::string typeIDString
Asqtad Staggered-Dirac operator.
Definition: klein_gord.cc:10
SingletonHolder< EnumTypeMap< VolSrc > > theStochSrc
::std::string string
Definition: gtest.h:1979
Singleton support.