CHROMA
inline_npr_vertex_w.h
Go to the documentation of this file.
1 // -*- C++ -*-
2 /*! \file
3  * \brief Inline construction of NPR vertices
4  *
5  * NPR vertices on props
6  */
7 
8 #ifndef __inline_npr_vertex_h__
9 #define __inline_npr_vertex_h__
10 
11 #include "chromabase.h"
13 #include "io/qprop_io.h"
14 
15 namespace Chroma
16 {
17  /*! \ingroup inlinehadron */
18  namespace InlineNprVertexEnv
19  {
20  extern const std::string name;
21  bool registerAll();
22  }
23 
24  //! Parameter structure
25  /*! \ingroup inlinehadron */
27  {
29  InlineNprVertexParams(XMLReader& xml_in, const std::string& path);
30  void write(XMLWriter& xml_out, const std::string& path);
31 
32  unsigned long frequency;
33 
34  //! Parameters
35  struct Param_t
36  {
37  int links_max; /*!< maximum number of links */
38  std::string file_name; /*!< bb output file name pattern */
39  GroupXML_t cfs; /*!< Fermion state */
40  } param;
41 
42  //! Propagators
44  {
45  std::string gauge_id; /*!< Input Gauge id */
46  std::string prop_id; /*!< Input forward prop */
48 
49  std::string xml_file; // Alternate XML file pattern
50  };
51 
52 
53  //! Inline measurement of NPR vertices
54  /*! \ingroup inlinehadron */
56  {
57  public:
61 
62  unsigned long getFrequency(void) const {return params.frequency;}
63 
64  //! Do the measurement
65  void operator()(const unsigned long update_no,
66  XMLWriter& xml_out);
67 
68  protected:
69  //! Do the measurement
70  void func(const unsigned long update_no,
71  XMLWriter& xml_out);
72 
73  private:
75  };
76 
77 }
78 
79 #endif
Abstract inline measurements.
Primary include file for CHROMA library code.
Inline measurement of NPR vertices.
void operator()(const unsigned long update_no, XMLWriter &xml_out)
Do the measurement.
unsigned long getFrequency(void) const
Tell me how often I should measure this beastie.
InlineNprVertex(const InlineNprVertex &p)
InlineNprVertex(const InlineNprVertexParams &p)
void func(const unsigned long update_no, XMLWriter &xml_out)
Do the measurement.
InlineNprVertexParams params
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.
Hold group xml and type id.
void write(XMLWriter &xml_out, const std::string &path)
struct Chroma::InlineNprVertexParams::Param_t param
struct Chroma::InlineNprVertexParams::NamedObject_t named_obj