CHROMA
lib
meas
hadron
baryon_spinmat_funcmap_w.h
Go to the documentation of this file.
1
// -*- C++ -*-
2
/*! \file
3
* \brief Factory for producing baryon spin matrix contraction objects
4
*/
5
6
#ifndef __baryon_spinmat_funcmap_w_h__
7
#define __baryon_spinmat_funcmap_w_h__
8
9
#include "
singleton.h
"
10
#include "
funcmap.h
"
11
#include "
chromabase.h
"
12
13
namespace
Chroma
14
{
15
//! Registration aggregator
16
/*! \ingroup hadron */
17
namespace
BaryonSpinMatrixEnv
18
{
19
struct
DumbDisambiguator
{};
20
21
//! Spin matrix factory
22
/*! @ingroup hadron */
23
typedef
SingletonHolder
<
24
FunctionMap
<
DumbDisambiguator
,
25
SpinMatrix,
26
std::string
,
27
TYPELIST_2
(XMLReader&,
const
std::string
&),
28
SpinMatrix (*)(XMLReader&,
29
const
std::string
&),
StringFunctionMapError
> >
30
TheBarSpinMatFuncMap
;
31
32
bool
registerAll
();
33
}
34
}
35
36
37
#endif
chromabase.h
Primary include file for CHROMA library code.
Chroma::FunctionMap
Object factory class.
Definition:
funcmap.h:89
Chroma::SingletonHolder
Definition:
singleton.h:385
funcmap.h
Map of function calls.
Chroma::BaryonSpinMatrixEnv::registerAll
bool registerAll()
Register all the factories.
Definition:
baryon_spinmat_funcmap_w.cc:184
Chroma
Asqtad Staggered-Dirac operator.
Definition:
klein_gord.cc:10
testing::internal::string
::std::string string
Definition:
gtest.h:1979
singleton.h
Singleton support.
Chroma::BaryonSpinMatrixEnv::DumbDisambiguator
Definition:
baryon_spinmat_funcmap_w.h:19
Chroma::StringFunctionMapError
Definition:
funcmap.h:46
TYPELIST_2
#define TYPELIST_2(T1, T2)
Definition:
typelist.h:43
Generated by
1.9.1