CHROMA
hadron_contract_factory.h
Go to the documentation of this file.
1 // -*- C++ -*-
2 /*! \file
3  * \brief Factory for producing hadron correlator objects
4  */
5 
6 #ifndef __hadron_2pt_factory_h__
7 #define __hadron_2pt_factory_h__
8 
9 #include "singleton.h"
10 #include "objfactory.h"
11 #include "chromabase.h"
12 #include "meas/hadron/hadron_2pt.h"
13 
14 namespace Chroma
15 {
16  //! Hadron 2pt factory (foundry)
17  /*! @ingroup hadron */
18  typedef SingletonHolder<
19  ObjectFactory<HadronContract,
21  TYPELIST_2(XMLReader&, const std::string&),
22  HadronContract* (*)(XMLReader&,
23  const std::string&),
24  StringFactoryError> >
26 
27 }
28 
29 
30 #endif
Primary include file for CHROMA library code.
SingletonHolder< ObjectFactory< HadronContract, std::string, TYPELIST_2(XMLReader &, const std::string &), HadronContract *(*)(XMLReader &, const std::string &), StringFactoryError > > TheHadronContractFactory
Hadron 2pt factory (foundry)
Construct hadron 2pt correlators.
Asqtad Staggered-Dirac operator.
Definition: klein_gord.cc:10
::std::string string
Definition: gtest.h:1979
Factory class for objects from XML input.
Singleton support.
#define TYPELIST_2(T1, T2)
Definition: typelist.h:43