CHROMA
inline_apply_gaugestate.h
Go to the documentation of this file.
1 // -*- C++ -*-
2 /*! \file
3  * \brief Inline gauge state application
4  */
5 
6 #ifndef __inline_apply_gaugestate_h__
7 #define __inline_apply_gaugestate_h__
8 
9 #include "chromabase.h"
11 #include "io/xml_group_reader.h"
12 
13 namespace Chroma
14 {
15  /*! \ingroup inlineglue */
16  namespace InlineGaugeStateEnv
17  {
18  extern const std::string name;
19  bool registerAll();
20 
21  /*! \ingroup inlineglue */
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 cgs; /*!< Gauge 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 #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.
struct Chroma::InlineGaugeStateEnv::Params::Param_t param
void writeXML(XMLWriter &xml_out, const std::string &path)
struct Chroma::InlineGaugeStateEnv::Params::NamedObject_t named_obj
Read an XML group as a std::string.