CHROMA
enum_coeffs_io.h
Go to the documentation of this file.
1 // -*- C++ -*-
2 /*! \file
3  * \brief Coeffs enum
4  */
5 #ifndef enum_coeffs_io_h
6 #define enum_coeffs_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  //! Coeffs type
24  enum CoeffType {
28  };
29 
30 
31  namespace CoeffTypeEnv {
32  extern const std::string typeIDString;
33  extern bool registered;
34  bool registerAll(void); // Forward declaration
35  }
36 
37  // A singleton to hold the typemap
39 
40  // Reader and writer
41  //! Read an approximation coefficient type enum
42  void read(XMLReader& r, const std::string& path, CoeffType& t);
43 
44  //! Write an approximation coefficient type enum
45  void write(XMLWriter& w, const std::string& path, const CoeffType& t);
46 
47  /*! @} */ // end of group io
48 
49 }
50 #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< CoeffType > > theCoeffTypeMap
CoeffType
Coeffs type.
@ COEFF_TYPE_ZOLOTAREV
@ COEFF_TYPE_TANH
@ COEFF_TYPE_TANH_UNSCALED
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.