CHROMA
lib
meas
inline
io
inline_write_timeslice_map_obj_disk.h
Go to the documentation of this file.
1
// -*- C++ -*-
2
/*! \file
3
* \brief Inline task to time-sliced std::map object
4
*/
5
6
#ifndef __inline_write_timeslice_map_obj_disk_h__
7
#define __inline_write_timeslice_map_obj_disk_h__
8
9
#include "
chromabase.h
"
10
#include "
meas/inline/abs_inline_measurement.h
"
11
#include "
io/xml_group_reader.h
"
12
13
namespace
Chroma
14
{
15
/*! \ingroup inlineio */
16
namespace
InlineWriteTimeSliceMapObjDiskEnv
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
Param_t
{
30
int
start_t
;
31
int
end_t
;
32
};
33
34
struct
NamedObject_t
{
35
std::string
object_type
;
/*!< Input object type */
36
std::string
input_id
;
/*!< Input object id */
37
std::string
output_file
;
/*!< Output std::map-object-disk */
38
};
39
40
Param_t
param
;
41
NamedObject_t
named_obj
;
42
};
43
44
45
//! Inline task to time-sliced std::map object
46
/*! \ingroup inlineio */
47
class
InlineMeas
:
public
AbsInlineMeasurement
48
{
49
public
:
50
~InlineMeas
() {}
51
InlineMeas
(
const
Params
&
p
) :
params
(
p
) {}
52
53
unsigned
long
getFrequency
(
void
)
const
{
return
params
.
frequency
;}
54
55
//! Do the writing
56
void
operator()
(
const
unsigned
long
update_no,
57
XMLWriter& xml_out);
58
59
private
:
60
Params
params
;
61
};
62
63
}
64
65
}
66
67
#endif
abs_inline_measurement.h
Abstract inline measurements.
chromabase.h
Primary include file for CHROMA library code.
Chroma::AbsInlineMeasurement
Definition:
abs_inline_measurement.h:16
Chroma::InlineWriteTimeSliceMapObjDiskEnv::InlineMeas
Inline task to time-sliced std::map object.
Definition:
inline_write_timeslice_map_obj_disk.h:48
Chroma::InlineWriteTimeSliceMapObjDiskEnv::InlineMeas::~InlineMeas
~InlineMeas()
Definition:
inline_write_timeslice_map_obj_disk.h:50
Chroma::InlineWriteTimeSliceMapObjDiskEnv::InlineMeas::operator()
void operator()(const unsigned long update_no, XMLWriter &xml_out)
Do the writing.
Definition:
inline_write_timeslice_map_obj_disk.cc:327
Chroma::InlineWriteTimeSliceMapObjDiskEnv::InlineMeas::params
Params params
Definition:
inline_write_timeslice_map_obj_disk.h:60
Chroma::InlineWriteTimeSliceMapObjDiskEnv::InlineMeas::getFrequency
unsigned long getFrequency(void) const
Tell me how often I should measure this beastie.
Definition:
inline_write_timeslice_map_obj_disk.h:53
Chroma::InlineWriteTimeSliceMapObjDiskEnv::InlineMeas::InlineMeas
InlineMeas(const Params &p)
Definition:
inline_write_timeslice_map_obj_disk.h:51
Chroma::InlineWriteTimeSliceMapObjDiskEnv::registerAll
bool registerAll()
Register all the factories.
Definition:
inline_write_timeslice_map_obj_disk.cc:261
Chroma
Asqtad Staggered-Dirac operator.
Definition:
klein_gord.cc:10
Chroma::p
p
Definition:
invbicg.cc:157
testing::internal::string
::std::string string
Definition:
gtest.h:1979
Chroma::InlineWriteTimeSliceMapObjDiskEnv::Params::NamedObject_t
Definition:
inline_write_timeslice_map_obj_disk.h:34
Chroma::InlineWriteTimeSliceMapObjDiskEnv::Params::NamedObject_t::output_file
std::string output_file
Definition:
inline_write_timeslice_map_obj_disk.h:37
Chroma::InlineWriteTimeSliceMapObjDiskEnv::Params::NamedObject_t::object_type
std::string object_type
Definition:
inline_write_timeslice_map_obj_disk.h:35
Chroma::InlineWriteTimeSliceMapObjDiskEnv::Params::NamedObject_t::input_id
std::string input_id
Definition:
inline_write_timeslice_map_obj_disk.h:36
Chroma::InlineWriteTimeSliceMapObjDiskEnv::Params::Param_t
Definition:
inline_write_timeslice_map_obj_disk.h:29
Chroma::InlineWriteTimeSliceMapObjDiskEnv::Params::Param_t::start_t
int start_t
Definition:
inline_write_timeslice_map_obj_disk.h:30
Chroma::InlineWriteTimeSliceMapObjDiskEnv::Params::Param_t::end_t
int end_t
Definition:
inline_write_timeslice_map_obj_disk.h:31
Chroma::InlineWriteTimeSliceMapObjDiskEnv::Params
Parameter structure.
Definition:
inline_write_timeslice_map_obj_disk.h:23
Chroma::InlineWriteTimeSliceMapObjDiskEnv::Params::Params
Params()
Definition:
inline_write_timeslice_map_obj_disk.cc:294
Chroma::InlineWriteTimeSliceMapObjDiskEnv::Params::param
Param_t param
Definition:
inline_write_timeslice_map_obj_disk.h:40
Chroma::InlineWriteTimeSliceMapObjDiskEnv::Params::named_obj
NamedObject_t named_obj
Definition:
inline_write_timeslice_map_obj_disk.h:41
Chroma::InlineWriteTimeSliceMapObjDiskEnv::Params::frequency
unsigned int frequency
Definition:
inline_write_timeslice_map_obj_disk.h:27
xml_group_reader.h
Read an XML group as a std::string.
Generated by
1.9.1