CHROMA
lib
io
enum_io
enum_proptype_io.cc
Go to the documentation of this file.
1
// -*- C++ -*-
2
/*! \file
3
* \brief PropType enum
4
*/
5
#include "
enum_proptype_io.h
"
6
7
#include <string>
8
9
namespace
Chroma
{
10
11
namespace
PropTypeEnv {
12
13
bool
registerAll
(
void
)
14
{
15
bool
success;
16
success =
thePropTypeMap::Instance
().registerPair(
std::string
(
"SCIDAC"
),
PROP_TYPE_SCIDAC
);
17
success &=
thePropTypeMap::Instance
().registerPair(
std::string
(
"SZIN"
),
PROP_TYPE_SZIN
);
18
success &=
thePropTypeMap::Instance
().registerPair(
std::string
(
"KYU"
),
PROP_TYPE_KYU
);
19
20
return
success;
21
}
22
const
std::string
typeIDString
=
"PropType"
;
23
bool
registered
=
registerAll
();
24
}
25
using namespace
PropTypeEnv;
26
27
//! Read a propagator type enum
28
void
read
(XMLReader& xml_in,
const
std::string
& path,
PropType
&
t
) {
29
thePropTypeMap::Instance
().read(
typeIDString
,xml_in, path,
t
);
30
}
31
32
//! Write a propagator type enum
33
void
write
(XMLWriter& xml_out,
const
std::string
& path,
const
PropType
&
t
) {
34
thePropTypeMap::Instance
().write(
typeIDString
,xml_out, path,
t
);
35
}
36
}
Chroma::SingletonHolder::Instance
static T & Instance()
Definition:
singleton.h:432
enum_proptype_io.h
PropType 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
Chroma::PropType
PropType
Propagator type.
Definition:
enum_proptype_io.h:25
Chroma::PROP_TYPE_KYU
@ PROP_TYPE_KYU
Definition:
enum_proptype_io.h:28
Chroma::PROP_TYPE_SZIN
@ PROP_TYPE_SZIN
Definition:
enum_proptype_io.h:27
Chroma::PROP_TYPE_SCIDAC
@ PROP_TYPE_SCIDAC
Definition:
enum_proptype_io.h:26
t
int t
Definition:
meslate.cc:37
Chroma::PropTypeEnv::typeIDString
const std::string typeIDString
Definition:
enum_proptype_io.cc:22
Chroma::PropTypeEnv::registerAll
bool registerAll(void)
Definition:
enum_proptype_io.cc:13
Chroma::PropTypeEnv::registered
bool registered
Definition:
enum_proptype_io.cc:23
Chroma
Asqtad Staggered-Dirac operator.
Definition:
klein_gord.cc:10
testing::internal::string
::std::string string
Definition:
gtest.h:1979
Generated by
1.9.1