CHROMA
inline_erase_mg_proto_qphix_space.h
Go to the documentation of this file.
1 // -*- C++ -*-
2 /*! \file
3  * \brief Inline task to erase a named mg space
4  *
5  * Named object writing
6  */
7 
8 #ifndef __inline_erase_mg_proto_qphix_space_h__
9 #define __inline_erase_mg_proto_qphix_space_h__
10 
11 #include "chromabase.h"
13 
14 
15 namespace Chroma
16 {
17  /*! \ingroup inlineio */
18  namespace InlineEraseMGProtoQPhiXSpaceEnv
19  {
20  bool registerAll();
21 
22  //! Parameter structure
23  /*! \ingroup inlineio */
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  {
36  };
37 
38  //! Inline writing of memory objects
39  /*! \ingroup inlineio */
41  {
42  public:
44  InlineMeas(const Params& p) : params(p) {}
45 
46  unsigned long getFrequency(void) const {return params.frequency;}
47 
48  //! Do the writing
49  void operator()(const unsigned long update_no,
50  XMLWriter& xml_out);
51 
52  private:
54  };
55 
56  }
57 
58 }
59 
60 #endif
Abstract inline measurements.
Primary include file for CHROMA library code.
void operator()(const unsigned long update_no, XMLWriter &xml_out)
Do the writing.
unsigned long getFrequency(void) const
Tell me how often I should measure this beastie.
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::InlineEraseMGProtoQPhiXSpaceEnv::Params::NamedObject_t named_obj