CHROMA
enum_mesonop_io.h
Go to the documentation of this file.
1 // -*- C++ -*-
2 /*! \file
3  * \brief Type of contractions for stochastic meson operators
4  */
5 #ifndef enum_meson_op_io_h
6 #define enum_meson_op_io_h
7 
8 #include "chromabase.h"
9 #include <string>
10 #include "singleton.h"
12 
13 namespace Chroma
14 {
15 
16  /*!
17  * Types and structures
18  *
19  * \ingroup io
20  *
21  * @{
22  */
23  //! Meson operator contraction orderings
25  {
30  };
31 
32 
33  namespace MesonOpTypeEnv
34  {
35  extern const std::string typeIDString;
36  extern bool registered;
37  bool registerAll(void); // Forward declaration
38  }
39 
40  // A singleton to hold the typemap
42 
43  // Reader and writer
44  //! Read an approximation coefficient type enum
45  void read(XMLReader& r, const std::string& path, MesonOpType& t);
46 
47  //! Write an approximation coefficient type enum
48  void write(XMLWriter& w, const std::string& path, const MesonOpType& t);
49 
50  /*! @} */ // end of group io
51 
52 }
53 #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.
MesonOpType
Meson operator contraction orderings.
SingletonHolder< EnumTypeMap< MesonOpType > > theMesonOpTypeMap
@ MESON_OP_TYPE_SOLUTION_SOURCE
@ MESON_OP_TYPE_SOURCE_SOLUTION
@ MESON_OP_TYPE_SOLUTION_SOLUTION
@ MESON_OP_TYPE_SOURCE_SOURCE
int t
Definition: meslate.cc:37
const std::string typeIDString
Asqtad Staggered-Dirac operator.
Definition: klein_gord.cc:10
::std::string string
Definition: gtest.h:1979
Singleton support.