CHROMA
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<
25  SpinMatrix,
27  TYPELIST_2(XMLReader&, const std::string&),
28  SpinMatrix (*)(XMLReader&,
31 
32  bool registerAll();
33  }
34 }
35 
36 
37 #endif
Primary include file for CHROMA library code.
Object factory class.
Definition: funcmap.h:89
Map of function calls.
bool registerAll()
Register all the factories.
Asqtad Staggered-Dirac operator.
Definition: klein_gord.cc:10
::std::string string
Definition: gtest.h:1979
Singleton support.
#define TYPELIST_2(T1, T2)
Definition: typelist.h:43