CHROMA
inline_read_map_obj_disk.h
Go to the documentation of this file.
1 // -*- C++ -*-
2 /*! \file
3  * \brief Inline task to read an object into a named buffer
4  */
5 
6 #ifndef __inline_read_map_obj_disk_h__
7 #define __inline_read_map_obj_disk_h__
8 
9 #include "chromabase.h"
11 
12 namespace Chroma
13 {
14  /*! \ingroup inlineio */
15  namespace InlineReadMapObjDiskEnv
16  {
17  bool registerAll();
18 
19  //! Parameter structure
20  /*! \ingroup inlineio */
21  struct Params
22  {
23  Params(XMLReader& xml_in, const std::string& path);
24 
25  unsigned int frequency;
26 
27  struct File {
29  } file;
30 
31  struct NamedObject_t {
35  };
36 
37 
38  //! Inline writing of memory objects
39  /*! \ingroup inlineio */
41  {
42  public:
44  InlineMeas(const Params& p) : params(p) {}
45 
46  unsigned long getFrequency(void) const {return params.frequency;}
47 
48  //! Do the writing
49  void operator()(const unsigned long update_no,
50  XMLWriter& xml_out);
51 
52  private:
54  };
55 
56  }
57 
58 }
59 
60 #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 writing.
bool registerAll()
Register all the factories.
Asqtad Staggered-Dirac operator.
Definition: klein_gord.cc:10
::std::string string
Definition: gtest.h:1979
Params(XMLReader &xml_in, const std::string &path)
struct Chroma::InlineReadMapObjDiskEnv::Params::NamedObject_t named_obj
struct Chroma::InlineReadMapObjDiskEnv::Params::File file