CHROMA
inline_list_obj.h
Go to the documentation of this file.
1 // -*- C++ -*-
2 /*! \file
3  * \brief Inline task to write an object from a named buffer
4  *
5  * Named object writing
6  */
7 
8 #ifndef __inline_list_obj_h__
9 #define __inline_list_obj_h__
10 
11 #include "chromabase.h"
13 
14 namespace Chroma
15 {
16  /*! \ingroup inlineio */
17  namespace InlineListNamedObjEnv
18  {
19  extern const std::string name;
20  bool registerAll();
21  }
22 
23  //! Parameter structure
24  /*! \ingroup inlineio */
26  {
28  InlineListNamedObjParams(XMLReader& xml_in, const std::string& path);
29  void write(XMLWriter& xml_out, const std::string& path);
30 
31  unsigned long frequency;
32  };
33 
34  //! Inline writing of memory objects
35  /*! \ingroup inlineio */
37  {
38  public:
42 
43  unsigned long getFrequency(void) const {return params.frequency;}
44 
45  //! Do the writing
46  void operator()(const unsigned long update_no,
47  XMLWriter& xml_out);
48 
49  private:
51  };
52 
53 }
54 
55 #endif
Abstract inline measurements.
Primary include file for CHROMA library code.
Inline writing of memory objects.
InlineListNamedObj(const InlineListNamedObj &p)
unsigned long getFrequency(void) const
Tell me how often I should measure this beastie.
InlineListNamedObjParams params
InlineListNamedObj(const InlineListNamedObjParams &p)
void operator()(const unsigned long update_no, XMLWriter &xml_out)
Do the writing.
bool registerAll()
Register all the factories.
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)