CHROMA
inline_qnaive.h
Go to the documentation of this file.
1 // -*- C++ -*-
2 /*! \file
3  * \brief Inline naive topological charge
4  *
5  * Author: Christian Hagen
6  */
7 
8 #ifndef INLINE_QNAIVE_H
9 #define INLINE_QNAIVE_H
10 
11 #include "chromabase.h"
13 #include "io/xml_group_reader.h"
14 
15 namespace Chroma
16 {
17  /*! \ingroup inlineglue */
18  namespace InlineQTopEnv
19  {
20  bool registerAll();
21 
22  /*! \ingroup inlineglue */
23  struct Params
24  {
25  Params();
26  Params(XMLReader& xml_in, const std::string& path);
27 
28  unsigned long frequency;
29 
30  struct Param_t
31  {
32  GroupXML_t cgs; /*!< Gauge State */
33  Real k5;
34  } param;
35 
37  {
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.
Definition: inline_qnaive.h:51
void operator()(unsigned long update_no, XMLWriter &xml_out)
Do the measurement.
void func(const unsigned long update_no, XMLWriter &xml_out)
InlineMeas(const InlineMeas &p)
Definition: inline_qnaive.h:49
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::InlineQTopEnv::Params::Param_t param
struct Chroma::InlineQTopEnv::Params::NamedObject_t named_obj
Read an XML group as a std::string.