CHROMA
inline_apply_fermstate_w.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_w_h__
7 #define __inline_apply_fermstate_w_h__
8 
9 #include "chromabase.h"
11 #include "io/xml_group_reader.h"
12 
13 namespace Chroma
14 {
15  /*! \ingroup inlinehadron */
16  namespace InlineFermStateEnv
17  {
18  extern const std::string name;
19  bool registerAll();
20 
21 
22  /*! \ingroup inlinehadron */
23  struct Params
24  {
25  Params();
26  Params(XMLReader& xml_in, const std::string& path);
27  void writeXML(XMLWriter& xml_out, const std::string& path);
28 
29  unsigned long frequency;
30 
31  struct Param_t
32  {
33  GroupXML_t cfs; /*!< Ferm State */
34  } param;
35 
37  {
41  };
42 
43 
44  /*! \ingroup inlinehadron */
46  {
47  public:
49  InlineMeas(const Params& p) : params(p) {}
51 
52  unsigned long getFrequency(void) const {return params.frequency;}
53 
54  void operator()(unsigned long update_no,
55  XMLWriter& xml_out);
56 
57  private:
59  };
60 
61  }
62 
63 }
64 
65 #endif
Abstract inline measurements.
Primary include file for CHROMA library code.
void operator()(unsigned long update_no, XMLWriter &xml_out)
Do the measurement.
unsigned long getFrequency(void) const
Tell me how often I should measure this beastie.
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.
struct Chroma::InlineFermStateEnv::Params::Param_t param
struct Chroma::InlineFermStateEnv::Params::NamedObject_t named_obj
void writeXML(XMLWriter &xml_out, const std::string &path)
Read an XML group as a std::string.