CHROMA
enum_eigenvectype_io.cc
Go to the documentation of this file.
1 // -*- C++ -*-
2 /*! \file
3  * \brief Eigenstd::vector type enum
4  */
5 
6 #include "enum_eigenvectype_io.h"
7 
8 #include <string>
9 
10 namespace Chroma {
11 
12  namespace EigenVecTypeEnv {
13 
14  bool registerAll(void)
15  {
16  bool success;
17  success = theEigenVecTypeMap::Instance().registerPair(std::string("SCIDAC"), EVEC_TYPE_SCIDAC );
18  success &=theEigenVecTypeMap::Instance().registerPair(std::string("SZIN"), EVEC_TYPE_SZIN);
19 
20  return success;
21  }
22  const std::string typeIDString = "EigenVecType" ;
24  }
25  using namespace EigenVecTypeEnv;
26 
27  //! Read an eigenvectype enum
28  void read(XMLReader& xml_in, const std::string& path, EigenVecType& t) {
29  theEigenVecTypeMap::Instance().read(typeIDString, xml_in, path,t);
30  }
31 
32  //! Write an eigenvectype enum
33  void write(XMLWriter& xml_out, const std::string& path, const EigenVecType& t) {
34  theEigenVecTypeMap::Instance().write(typeIDString, xml_out, path, t);
35  }
36 }
static T & Instance()
Definition: singleton.h:432
Eigenstd::vector type enum.
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.
EigenVecType
Eigenstd::vector type.
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