CHROMA
enum_fermtype_io.h
Go to the documentation of this file.
1 // -*- C++ -*-
2 /*! \file
3  * \brief FermType enum
4  */
5 
6 #ifndef enum_fermtype_io_h
7 #define enum_fermtype_io_h
8 
9 #include "chromabase.h"
10 #include <string>
11 #include "singleton.h"
13 
14 
15 
16 namespace Chroma
17 {
18 
19  /*!
20  * Types and structures
21  *
22  * \ingroup io
23  *
24  * @{
25  */
26  //! Fermion type
27  enum FermType {
30  };
31 
32 
33  namespace FermTypeEnv {
34  extern const std::string typeIDString;
35  extern bool registered;
36  bool registerAll(void); // Forward declaration
37  }
38 
39  // A singleton to hold the typemap
41 
42  // Reader and writer
43 
44  //! Read an Fermion Type enum
45  void read(XMLReader& r, const std::string& path, FermType& t);
46 
47  //! Write an Fermion Type enum
48  void write(XMLWriter& w, const std::string& path, const FermType& 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.
FermType
Fermion type.
SingletonHolder< EnumTypeMap< FermType > > theFermTypeMap
@ FERM_TYPE_STAGGERED
@ FERM_TYPE_WILSON
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.