CHROMA
inline_qpropadd_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_qpropadd_w_h__
9 #define __inline_qpropadd_w_h__
10 
11 #include "chromabase.h"
13 
14 namespace Chroma
15 {
16  /*! \ingroup inlinehadron */
17  namespace InlineQpropAddEnv
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 
33  {
34  Real factorA;
36  Real factorB;
40  };
41 
42 
43  //! Inline measurement of to add two props
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  //! Do the measurement
55  void operator()(const unsigned long update_no,
56  XMLWriter& xml_out);
57 
58  private:
60  };
61 
62  }
63 
64 }
65 
66 #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
struct Chroma::InlineQpropAddEnv::Params::NamedObject_t named_obj
void writeXML(XMLWriter &xml_out, const std::string &path)