CHROMA
enum_quarkspintype_io.h
Go to the documentation of this file.
1 // -*- C++ -*-
2 
3 /*! \file
4  * \brief Enum for what spin components of a quark prop to compute
5  *
6  */
7 
8 #ifndef enum_quarkspintype_io_h
9 #define enum_quarkspintype_io_h
10 
11 #include "chromabase.h"
12 #include <string>
13 #include "singleton.h"
15 
16 
17 namespace Chroma
18 {
19  // QuarkSpinType --------------------------------------
20  /*!
21  * Types and structures
22  *
23  * \ingroup io
24  *
25  * @{
26  */
27 
28  //! Quark spin type
29  /*! \ingroup io */
31  {
35  };
36 
37 
38  //! Quark spin type env
39  /*! \ingroup io */
40  namespace QuarkSpinTypeEnv
41  {
42  extern const std::string typeIDString;
43  extern bool registered;
44  bool registerAll(void); // Forward declaration
45  }
46 
47  //! A singleton to hold the typemap
48  /*! \ingroup io */
50 
51  // Reader and writer
52  //! Read a quark spin type enum
53  /*! \ingroup io */
54  void read(XMLReader& r, const std::string& path, QuarkSpinType& t);
55 
56  //! Write a quark spin type enum
57  /*! \ingroup io */
58  void write(XMLWriter& w, const std::string& path, const QuarkSpinType& t);
59 
60  /*! @} */ // end of group io
61 
62 }
63 #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.
QuarkSpinType
Quark spin type.
SingletonHolder< EnumTypeMap< QuarkSpinType > > theQuarkSpinTypeMap
A singleton to hold the typemap.
int t
Definition: meslate.cc:37
Asqtad Staggered-Dirac operator.
Definition: klein_gord.cc:10
::std::string string
Definition: gtest.h:1979
Singleton support.