CHROMA
inline_seqsource_w.h
Go to the documentation of this file.
1 // -*- C++ -*-
2 /*! \file
3  * \brief Inline construction of sequential sources
4  *
5  * Sequential source construction
6  */
7 
8 #ifndef __inline_seqsource_w_h__
9 #define __inline_seqsource_w_h__
10 
11 #include "chromabase.h"
13 #include "io/qprop_io.h"
14 
15 namespace Chroma
16 {
17  /*! \ingroup inlinehadron */
18  namespace InlineSeqSourceEnv
19  {
20  extern const std::string name;
21  bool registerAll();
22 
23 
24  //! Parameter structure
25  /*! \ingroup inlinehadron */
26  struct Params
27  {
28  Params();
29  Params(XMLReader& xml_in, const std::string& path);
30  void writeXML(XMLWriter& xml_out, const std::string& path);
31 
32  unsigned long frequency;
33 
36 
38  {
40  multi1d<std::string> prop_ids;
43  };
44 
45  //! Compute a sequential source
46  /*! \ingroup inlinehadron */
48  {
49  public:
51  InlineMeas(const Params& p) : params(p) {}
53 
54  unsigned long getFrequency(void) const {return params.frequency;}
55 
56  //! Do the measurement
57  void operator()(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 operator()(const 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
Routines associated with Chroma propagator IO.
void writeXML(XMLWriter &xml_out, const std::string &path)
struct Chroma::InlineSeqSourceEnv::Params::NamedObject_t named_obj
Sink-smearing parameters.
Definition: qprop_io.h:51
Sequential source parameters.
Definition: qprop_io.h:90