14 #include "qdp_map_obj_disk.h"
19 namespace InlineReadMapObjDiskEnv
21 namespace ReadMapObjCallEnv
38 template<
typename K,
typename V>
42 QDP::MapObjectDisk<K,V>* obj_obj =
new QDP::MapObjectDisk<K,V>();
49 obj_handle->getUserdata(meta_data);
60 readMapObj<KeyPropColorVec_t, LatticeFermion>);
66 readMapObj<char, float>);
80 return new InlineMeas(Params(xml_in, path));
106 XMLReader inputtop(xml, path);
115 XMLReader inputtop(xml, path);
124 XMLReader paramtop(
reader, path);
126 if (paramtop.count(
"Frequency") == 1)
136 QDPIO::cerr << __func__ <<
": caught Exception reading XML: " << e << std::endl;
147 push(xml_out,
"read_map_object_disk");
148 write(xml_out,
"update_no", update_no);
150 QDPIO::cout <<
name <<
": object reader" << std::endl;
170 std::istringstream xml_s(meta_data);
171 XMLReader file_xml(xml_s);
173 XMLBufferWriter record_xml_buf;
174 push(record_xml_buf,
"RecordXML");
180 XMLReader record_xml(record_xml_buf);
187 QDPIO::cout <<
"Object successfully read: time= "
188 << swatch.getTimeInSeconds()
189 <<
" secs" << std::endl;
191 catch( std::bad_cast )
193 QDPIO::cerr <<
name <<
": cast error"
199 QDPIO::cerr <<
name <<
": error message: " << e
204 QDPIO::cout <<
name <<
": ran successfully" << std::endl;
Inline measurement factory.
Primary include file for CHROMA library code.
Class for counted reference semantics.
void operator()(const unsigned long update_no, XMLWriter &xml_out)
Do the writing.
void write(XMLWriter &xml, const std::string &path, const AsqtadFermActParams ¶m)
Writer parameters.
Inline task to read an object into a named buffer.
Key for propagator colorstd::vector sources.
Named object function std::map.
static bool registered
Local registration flag.
const std::string name
Name to be used.
bool registerAll()
Register all the factories.
void read(XMLReader &xml, const std::string &path, Params::NamedObject_t &input)
Object buffer.
Handle< FermBC< LatticeStaggeredFermion, multi1d< LatticeColorMatrix >, multi1d< LatticeColorMatrix > > > reader(XMLReader &xml_in, const std::string &path)
Helper function for the FermionAction readers.
Asqtad Staggered-Dirac operator.
push(xml_out,"Condensates")
Params(XMLReader &xml_in, const std::string &path)
struct Chroma::InlineReadMapObjDiskEnv::Params::NamedObject_t named_obj
struct Chroma::InlineReadMapObjDiskEnv::Params::File file
Holds of vectors and eigenvalues.
#define TYPELIST_2(T1, T2)