CHROMA
inline_rotate_spin_w.h
Go to the documentation of this file.
1 // -*- C++ -*-
2 /*! \file
3  * \brief Inline task to spin rotate to a Dirac basis
4  *
5  * Spin rotate a named object
6  */
7 
8 #ifndef __inline_rotate_spin_w_h__
9 #define __inline_rotate_spin_w_h__
10 
11 #include "chromabase.h"
13 
14 namespace Chroma
15 {
16  /*! \ingroup inlinehadron */
17  namespace InlineRotateSpinEnv
18  {
19  bool registerAll();
20 
21  //! Parameter structure
22  /*! \ingroup inlinehadron */
23  struct Params
24  {
25  Params();
26  Params(XMLReader& xml_in, const std::string& path);
27  void writeXML(XMLWriter& xml_out, const std::string& path);
28 
29  unsigned long frequency;
30 
32  {
33  std::string input_id; /*!< input object */
34  std::string output_id; /*!< output object */
35  std::string object_type; /*!< type of the object, like LatticePropagator, etc. */
37  };
38 
39  //! Gauge transform a named object
40  /*! \ingroup inlinehadron */
42  {
43  public:
45  InlineMeas(const Params& p) : params(p) {}
47 
48  unsigned long getFrequency(void) const {return params.frequency;}
49 
50  //! Do the writing
51  void operator()(const unsigned long update_no,
52  XMLWriter& xml_out);
53 
54  private:
56  };
57 
58  } // InlineRotateSpinEnv
59 
60 } // namespace Chroma
61 
62 #endif
Abstract inline measurements.
Primary include file for CHROMA library code.
Gauge transform a named object.
void operator()(const unsigned long update_no, XMLWriter &xml_out)
Do the writing.
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::InlineRotateSpinEnv::Params::NamedObject_t named_obj
void writeXML(XMLWriter &xml_out, const std::string &path)