CHROMA
inline_usqcd_read_ddpairs_prop.h
Go to the documentation of this file.
1 // -*- C++ -*-
2 /*! \file
3  * \brief Inline task to read a USQCD DD Pairs Prop
4  *
5  *
6  */
7 
8 #ifndef __inline_usqcd_read_ddpairs_prop_h__
9 #define __inline_usqcd_read_ddpairs_prop_h__
10 
11 #include "chromabase.h"
13 #include "io/xml_group_reader.h"
14 
15 namespace Chroma
16 {
17  /*! \ingroup inlineio */
18  namespace InlineUSQCDReadDDPairsPropEnv
19  {
20  extern const std::string name;
21  bool registerAll();
22  }
23 
24  //! Parameter structure
25  /*! \ingroup inlineio */
27  {
29  InlineUSQCDReadDDPairsPropParams(XMLReader& xml_in, const std::string& path);
30  void write(XMLWriter& xml_out, const std::string& path);
31 
32  unsigned long frequency;
33 
34  // The DDPairs Format contains both the source and the propagator
35  // We will create a named object for each for now. One can always
36  // Call a delete for the source later
37 
40 
44  QDP_serialparallel_t parallel_io;
45  };
46 
47  //! Inline writing of memory objects
48  /*! \ingroup inlineio */
50  {
51  public:
55 
56  unsigned long getFrequency(void) const {return params.frequency;}
57 
58  //! Do the writing
59  void operator()(const unsigned long update_no,
60  XMLWriter& xml_out);
61 
62  private:
63  void func(unsigned long update_no, XMLWriter& xml_out);
65  };
66 
67 }
68 
69 #endif
Abstract inline measurements.
Primary include file for CHROMA library code.
void func(unsigned long update_no, XMLWriter &xml_out)
InlineUSQCDReadDDPairsProp(const InlineUSQCDReadDDPairsProp &p)
InlineUSQCDReadDDPairsProp(const InlineUSQCDReadDDPairsPropParams &p)
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.
Asqtad Staggered-Dirac operator.
Definition: klein_gord.cc:10
::std::string string
Definition: gtest.h:1979
void write(XMLWriter &xml_out, const std::string &path)
Read an XML group as a std::string.