CHROMA
lib
io
enum_io
enum_quarkspintype_io.cc
Go to the documentation of this file.
1
/*! \file
2
* \brief Enum for what spin components of a quark prop to compute
3
*/
4
5
#include "
enum_quarkspintype_io.h
"
6
7
namespace
Chroma
8
{
9
namespace
QuarkSpinTypeEnv
10
{
11
bool
registerAll
(
void
)
12
{
13
bool
success =
true
;
14
success &=
theQuarkSpinTypeMap::Instance
().registerPair(
std::string
(
"FULL"
),
QUARK_SPIN_TYPE_FULL
);
15
success &=
theQuarkSpinTypeMap::Instance
().registerPair(
std::string
(
"UPPER"
),
QUARK_SPIN_TYPE_UPPER
);
16
success &=
theQuarkSpinTypeMap::Instance
().registerPair(
std::string
(
"LOWER"
),
QUARK_SPIN_TYPE_LOWER
);
17
return
success;
18
}
19
20
bool
registered
=
registerAll
();
21
const
std::string
typeIDString
=
"QuarkSpinType"
;
22
}
23
using namespace
QuarkSpinTypeEnv;
24
25
//! Read a quark spin type enum
26
void
read
(XMLReader& xml_in,
const
std::string
& path,
QuarkSpinType
&
t
)
27
{
28
theQuarkSpinTypeMap::Instance
().read(
typeIDString
, xml_in, path,
t
);
29
}
30
31
//! Write a quark spin type enum
32
void
write
(XMLWriter& xml_out,
const
std::string
& path,
const
QuarkSpinType
&
t
)
33
{
34
theQuarkSpinTypeMap::Instance
().write(
typeIDString
, xml_out, path,
t
);
35
}
36
}
Chroma::SingletonHolder::Instance
static T & Instance()
Definition:
singleton.h:432
enum_quarkspintype_io.h
Enum for what spin components of a quark prop to compute.
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::QuarkSpinType
QuarkSpinType
Quark spin type.
Definition:
enum_quarkspintype_io.h:31
Chroma::QUARK_SPIN_TYPE_UPPER
@ QUARK_SPIN_TYPE_UPPER
Definition:
enum_quarkspintype_io.h:33
Chroma::QUARK_SPIN_TYPE_LOWER
@ QUARK_SPIN_TYPE_LOWER
Definition:
enum_quarkspintype_io.h:34
Chroma::QUARK_SPIN_TYPE_FULL
@ QUARK_SPIN_TYPE_FULL
Definition:
enum_quarkspintype_io.h:32
t
int t
Definition:
meslate.cc:37
Chroma::QuarkSpinTypeEnv::typeIDString
const std::string typeIDString
Definition:
enum_quarkspintype_io.cc:21
Chroma::QuarkSpinTypeEnv::registerAll
bool registerAll(void)
Definition:
enum_quarkspintype_io.cc:11
Chroma::QuarkSpinTypeEnv::registered
bool registered
Definition:
enum_quarkspintype_io.cc:20
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