CHROMA
inline_gaussian_obj.h
Go to the documentation of this file.
1 // -*- C++ -*-
2 /*! \file
3  * \brief Inline task to gaussian init a named object
4  *
5  * Named object initialization
6  */
7 
8 #ifndef __inline_gaussian_obj_h__
9 #define __inline_gaussian_obj_h__
10 
11 #include "chromabase.h"
13 
14 namespace Chroma
15 {
16  /*! \ingroup inlineio */
17  namespace InlineGaussianInitNamedObjEnv
18  {
19  bool registerAll();
20 
21  //! Parameter structure
22  /*! \ingroup inlineio */
23  struct Params
24  {
25  Params();
26  Params(XMLReader& xml_in, const std::string& path);
27  void writeXML(XMLWriter& xml_out, const std::string& path);
28 
29  unsigned long frequency;
30 
32  {
36  };
37 
38  //! Inline gaussianing 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.
Inline gaussianing of memory objects.
unsigned long getFrequency(void) const
Tell me how often I should measure this beastie.
void operator()(const unsigned long update_no, XMLWriter &xml_out)
Do the writing.
bool registerAll()
Register all the factories.
Asqtad Staggered-Dirac operator.
Definition: klein_gord.cc:10
::std::string string
Definition: gtest.h:1979
struct Chroma::InlineGaussianInitNamedObjEnv::Params::NamedObject_t named_obj
void writeXML(XMLWriter &xml_out, const std::string &path)