CHROMA
inline_plaq_density.h
Go to the documentation of this file.
1 // -*- C++ -*-
2 /*! \file
3  * \brief Inline plaquette density
4  */
5 
6 #ifndef INLINE_PLAQ_DENSITY_H
7 #define INLINE_PLAQ_DENSITY_H
8 
9 #include "chromabase.h"
11 #include "io/xml_group_reader.h"
12 
13 namespace Chroma
14 {
15  /*! \ingroup inlineglue */
16  namespace InlinePlaqDenEnv
17  {
18  bool registerAll();
19 
20  /*! \ingroup inlineglue */
21  struct Params
22  {
23  Params();
24  Params(XMLReader& xml_in, const std::string& path);
25 
26  unsigned long frequency;
27 
28  struct Param_t
29  {
30  } param;
31 
33  {
37  };
38 
39 
40  /*! \ingroup inlineglue */
42  {
43  public:
45  InlineMeas(const Params& p) : params(p) {}
47 
48  unsigned long getFrequency(void) const {return params.frequency;}
49 
50  void operator()(unsigned long update_no,
51  XMLWriter& xml_out);
52 
53  protected:
54  void func(const unsigned long update_no,
55  XMLWriter& xml_out);
56 
57  private:
59  };
60 
61  }
62 
63 }
64 
65 #endif
Abstract inline measurements.
Primary include file for CHROMA library code.
void operator()(unsigned long update_no, XMLWriter &xml_out)
Do the measurement.
void func(const unsigned long update_no, XMLWriter &xml_out)
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::InlinePlaqDenEnv::Params::Param_t param
struct Chroma::InlinePlaqDenEnv::Params::NamedObject_t named_obj
Read an XML group as a std::string.