CHROMA
lib
io
enum_io
enum_heatbathtype_io.cc
Go to the documentation of this file.
1
// -*- C++ -*-
2
/*! \file
3
* \brief Heatbath enum
4
*/
5
6
#include "
enum_heatbathtype_io.h
"
7
8
#include <string>
9
10
namespace
Chroma
{
11
12
namespace
HeatbathTypeEnv {
13
14
bool
registerAll
(
void
)
15
{
16
bool
success;
17
success =
theHeatbathTypeMap::Instance
().registerPair(
std::string
(
"KPHB"
),
HEATBATH_TYPE_KPHB
);
18
success &=
theHeatbathTypeMap::Instance
().registerPair(
std::string
(
"CrHB"
),
HEATBATH_TYPE_CrHB
);
19
20
return
success;
21
}
22
23
const
std::string
typeIDString
=
"HeatbathType"
;
24
bool
registered
=
registerAll
();
25
}
26
27
using namespace
HeatbathTypeEnv;
28
//! Read an HeatbathType enum
29
void
read
(XMLReader& xml_in,
const
std::string
& path,
HeatbathType
&
t
) {
30
theHeatbathTypeMap::Instance
().read(
typeIDString
, xml_in, path,
t
);
31
}
32
33
//! Write an HeatbathType enum
34
void
write
(XMLWriter& xml_out,
const
std::string
& path,
const
HeatbathType
&
t
) {
35
theHeatbathTypeMap::Instance
().write(
typeIDString
, xml_out, path,
t
);
36
}
37
}
Chroma::SingletonHolder::Instance
static T & Instance()
Definition:
singleton.h:432
enum_heatbathtype_io.h
Heatbath enum.
Chroma::read
void read(XMLReader &xml, const std::string &path, AsqtadFermActParams ¶m)
Read parameters.
Definition:
asqtad_fermact_params_s.cc:33
Chroma::write
void write(XMLWriter &xml, const std::string &path, const AsqtadFermActParams ¶m)
Writer parameters.
Definition:
asqtad_fermact_params_s.cc:40
t
int t
Definition:
meslate.cc:37
Chroma::HeatbathTypeEnv::registerAll
bool registerAll(void)
Definition:
enum_heatbathtype_io.cc:14
Chroma::HeatbathTypeEnv::typeIDString
const std::string typeIDString
Definition:
enum_heatbathtype_io.cc:23
Chroma::HeatbathTypeEnv::registered
bool registered
Definition:
enum_heatbathtype_io.cc:24
Chroma
Asqtad Staggered-Dirac operator.
Definition:
klein_gord.cc:10
Chroma::HeatbathType
HeatbathType
Algorithm type.
Definition:
su3hb.h:13
Chroma::HEATBATH_TYPE_CrHB
@ HEATBATH_TYPE_CrHB
Definition:
su3hb.h:15
Chroma::HEATBATH_TYPE_KPHB
@ HEATBATH_TYPE_KPHB
Definition:
su3hb.h:14
testing::internal::string
::std::string string
Definition:
gtest.h:1979
Generated by
1.9.1