CHROMA
inline_plaquette.h
Go to the documentation of this file.
1 // -*- C++ -*-
2 /*! \file
3  * \brief Inline plaquette
4  */
5 
6 #ifndef __inline_plaquette_h__
7 #define __inline_plaquette_h__
8 
9 #include "chromabase.h"
11 #include "io/xml_group_reader.h"
12 
13 namespace Chroma
14 {
15  /*! \ingroup inlineglue */
16  namespace InlinePlaquetteEnv
17  {
18  extern const std::string name;
19  bool registerAll();
20 
21  /*! \ingroup inlineglue */
22  struct Params
23  {
24  Params();
25  Params(XMLReader& xml_in, const std::string& path);
26 
27  unsigned long frequency;
28 
29  struct Param_t
30  {
31  GroupXML_t cgs; /*!< Gauge State */
32  } param;
33 
35  {
38 
40  };
41 
42 
43  /*! \ingroup inlineglue */
45  {
46  public:
48  InlineMeas(const Params& p) : params(p) {}
50 
51  unsigned long getFrequency(void) const {return params.frequency;}
52 
53  void operator()(unsigned long update_no,
54  XMLWriter& xml_out);
55 
56  protected:
57  void func(const unsigned long update_no,
58  XMLWriter& xml_out);
59 
60  private:
62  };
63 
64  }
65 
66 }
67 
68 #endif
Abstract inline measurements.
Primary include file for CHROMA library code.
unsigned long getFrequency(void) const
Tell me how often I should measure this beastie.
void func(const unsigned long update_no, XMLWriter &xml_out)
void operator()(unsigned long update_no, XMLWriter &xml_out)
Do the measurement.
bool registerAll()
Register all the factories.
Asqtad Staggered-Dirac operator.
Definition: klein_gord.cc:10
::std::string string
Definition: gtest.h:1979
Hold group xml and type id.
struct Chroma::InlinePlaquetteEnv::Params::Param_t param
struct Chroma::InlinePlaquetteEnv::Params::NamedObject_t named_obj
Read an XML group as a std::string.