CHROMA
inline_apply_fermstate_s.h
Go to the documentation of this file.
1 // -*- C++ -*-
2 /*! \file
3  * \brief Inline ferm state application
4  */
5 
6 #ifndef __inline_apply_fermstate_s_h__
7 #define __inline_apply_fermstate_s_h__
8 
9 #include "chromabase.h"
11 #include "io/xml_group_reader.h"
12 
13 namespace Chroma
14 {
15  /*! \ingroup inlinehadron */
16  namespace InlineStaggeredFermStateEnv
17  {
18  extern const std::string name;
19  bool registerAll();
20 
21  /*! \ingroup inlinehadron */
22  struct Params
23  {
24  Params();
25  Params(XMLReader& xml_in, const std::string& path);
26  void writeXML(XMLWriter& xml_out, const std::string& path);
27 
28  unsigned long frequency;
29 
30  struct Param_t
31  {
32  GroupXML_t cfs; /*!< Ferm State */
33  } param;
34 
36  {
40  };
41 
42 
43  /*! \ingroup inlineglue */
45  {
46  public:
48  InlineMeas(const Params& p) : params(p) {}
50 
51  unsigned long getFrequency(void) const {return params.frequency;}
52 
53  void operator()(unsigned long update_no,
54  XMLWriter& xml_out);
55 
56  private:
58  };
59 
60  }
61 
62 }
63 
64 #endif
Abstract inline measurements.
Primary include file for CHROMA library code.
unsigned long getFrequency(void) const
Tell me how often I should measure this beastie.
void operator()(unsigned long update_no, XMLWriter &xml_out)
Do the measurement.
bool registerAll()
Register all the factories.
Asqtad Staggered-Dirac operator.
Definition: klein_gord.cc:10
::std::string string
Definition: gtest.h:1979
Hold group xml and type id.
void writeXML(XMLWriter &xml_out, const std::string &path)
struct Chroma::InlineStaggeredFermStateEnv::Params::Param_t param
struct Chroma::InlineStaggeredFermStateEnv::Params::NamedObject_t named_obj
Read an XML group as a std::string.