CHROMA
inline_psibarpsi_w.h
Go to the documentation of this file.
1 #ifndef __inline_psibarpsi_h__
2 #define __inline_psibarpsi_h__
3 
4 #include "chromabase.h"
6 #include "io/xml_group_reader.h"
7 
8 namespace Chroma
9 {
10  namespace InlinePsiBarPsiEnv
11  {
12  extern const std::string name;
13  bool registerAll();
14 
15 
16  //! Parameter structure
17  /*! \ingroup inlinepbp */
18  struct Params
19  {
20  Params();
21  Params(XMLReader& xml_in, const std::string& path);
22  void write(XMLWriter& xml_out, const std::string& path);
23 
24  unsigned long frequency;
25 
26  struct Param_t
27  {
30 
31  multi1d<Real> mass;
32  int ichiral;
33  } param;
34 
36  {
39  };
40 
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  protected:
53  void func(unsigned long update_no,
54  XMLWriter& xml_out);
55 
56  private:
58  };
59 
60 } // end namespace
61 
62 }
63 
64 #endif
65 
66 
67 
Abstract inline measurements.
Primary include file for CHROMA library code.
void func(unsigned long update_no, XMLWriter &xml_out)
unsigned long getFrequency(void) const
Tell me how often I should measure this beastie.
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.
void write(XMLWriter &xml_out, const std::string &path)
struct Chroma::InlinePsiBarPsiEnv::Params::NamedObject_t named_obj
struct Chroma::InlinePsiBarPsiEnv::Params::Param_t param
Read an XML group as a std::string.