CHROMA
inline_copy_map_obj.h
Go to the documentation of this file.
1 // -*- C++ -*-
2 /*! \file
3  * \brief Inline task to copy std::map objects
4  */
5 
6 #ifndef __inline_copy_map_obj_h__
7 #define __inline_copy_map_obj_h__
8 
9 #include "chromabase.h"
11 #include "io/xml_group_reader.h"
12 
13 namespace Chroma
14 {
15  /*! \ingroup inlineio */
16  namespace InlineCopyMapObjEnv
17  {
18  bool registerAll();
19 
20  //! Parameter structure
21  /*! \ingroup inlineio */
22  struct Params
23  {
24  Params();
25  Params(XMLReader& xml_in, const std::string& path);
26 
27  unsigned int frequency;
28 
29  struct NamedObject_t {
33  GroupXML_t output_obj; /*!< Output object std::map */
34  };
35 
37  };
38 
39 
40  //! Inline copying of std::map objects
41  /*! \ingroup inlineio */
43  {
44  public:
46  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  }
59 
60 }
61 
62 #endif
Abstract inline measurements.
Primary include file for CHROMA library code.
Inline copying of std::map objects.
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
Hold group xml and type id.
Read an XML group as a std::string.