CHROMA
inline_qpropdiff_w.h
Go to the documentation of this file.
1 // -*- C++ -*-
2 /*! \file
3  * \brief Inline measurement of qpropadd
4  *
5  * Form-factors
6  */
7 
8 #ifndef __inline_qpropdiff_w_h__
9 #define __inline_qpropdiff_w_h__
10 
11 #include "chromabase.h"
13 
14 namespace Chroma
15 {
16  /*! \ingroup inlinehadron */
17  namespace InlineQpropDiffEnv
18  {
19  extern const std::string name;
20  bool registerAll();
21 
22  //! Parameter structure
23  /*! \ingroup inlinehadron */
24  struct Params
25  {
26  Params();
27  Params(XMLReader& xml_in, const std::string& path);
28  void writeXML(XMLWriter& xml_out, const std::string& path);
29 
30  unsigned long frequency;
31  std::string label; // For easy parsing
33  {
36 
38  };
39 
40 
41  //! Inline measurement of to add two props
42  /*! \ingroup inlinehadron */
44  {
45  public:
47  InlineMeas(const Params& p) : params(p) {}
49 
50  unsigned long getFrequency(void) const {return params.frequency;}
51 
52  //! Do the measurement
53  void operator()(const 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.
Inline measurement of to add two props.
void operator()(const 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
void writeXML(XMLWriter &xml_out, const std::string &path)
struct Chroma::InlineQpropDiffEnv::Params::NamedObject_t named_obj