CHROMA
inline_qpropqio_w.h
Go to the documentation of this file.
1 // -*- C++ -*-
2 /*! \file
3  * \brief Inline measurement of qpropqio
4  *
5  * Form-factors
6  */
7 
8 #ifndef __inline_qpropqio_h__
9 #define __inline_qpropqio_h__
10 
11 #include "chromabase.h"
13 
14 namespace Chroma
15 {
16  /*! \ingroup inlinehadron */
17  namespace InlineQpropQIOEnv
18  {
19  extern const std::string name;
20  bool registerAll();
21  }
22 
23  //! Parameter structure
24  /*! \ingroup inlinehadron */
26  {
28  InlineQpropQIOParams(XMLReader& xml_in, const std::string& path);
29  void write(XMLWriter& xml_out, const std::string& path);
30 
31  unsigned long frequency;
32 
33  struct Param_t
34  {
35  } param;
36 
37  struct Prop_t
38  {
39  std::string prop_in_file; // The files is expected to be in SciDAC format!
40  std::string prop_out_file; // The files is expected to be in SciDAC format!
41  QDP_volfmt_t prop_out_volfmt; // volume format (SINGLEFILE or MULTIFILE)
42  } prop;
43 
44  };
45 
46 
47  //! Inline task for quark prop IO
48  /*! \ingroup inlinehadron */
50  {
51  public:
55 
56  unsigned long getFrequency(void) const {return params.frequency;}
57 
58  //! Do the measurement
59  void operator()(const unsigned long update_no,
60  XMLWriter& xml_out);
61 
62  private:
64  };
65 
66 }
67 
68 #endif
Abstract inline measurements.
Primary include file for CHROMA library code.
Inline task for quark prop IO.
void operator()(const unsigned long update_no, XMLWriter &xml_out)
Do the measurement.
InlineQpropQIO(const InlineQpropQIO &p)
InlineQpropQIOParams params
InlineQpropQIO(const InlineQpropQIOParams &p)
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::InlineQpropQIOParams::Param_t param
void write(XMLWriter &xml_out, const std::string &path)
struct Chroma::InlineQpropQIOParams::Prop_t prop