19 namespace InlineCopyMapObjEnv
21 namespace CopyMapObjCallEnv
32 void (*)(
const Params& named_obj),
39 template<
typename K,
typename V>
44 std::vector<K> keys; input_obj->keys(keys);
47 input_obj->getUserdata(meta_data);
50 std::istringstream xml_s(
params.named_obj.output_obj.xml);
51 XMLReader MapObjReader(xml_s);
61 params.named_obj.output_obj.path,
67 for(
int i=0;
i < keys.size();
i++)
70 input_obj->get(keys[
i],v);
71 output_obj->insert(keys[
i],v);
81 copyMapObj<KeyPropColorVec_t, LatticeFermion>);
87 copyMapObj<char, float>);
99 return new InlineMeas(Params(xml_in, path));
125 XMLReader inputtop(xml, path);
140 XMLReader paramtop(xml_in, path);
142 if (paramtop.count(
"Frequency") == 1)
152 QDPIO::cerr << __func__ <<
": caught Exception reading XML: " << e << std::endl;
165 push(xml_out,
"read_map_object_disk");
166 write(xml_out,
"update_no", update_no);
168 QDPIO::cout <<
name <<
": std::map object copy" << std::endl;
189 XMLReader file_xml, record_xml;
198 QDPIO::cout <<
"Object successfully copied: time= "
199 << swatch.getTimeInSeconds()
200 <<
" secs" << std::endl;
202 catch( std::bad_cast )
212 QDPIO::cerr <<
name <<
": error message: " << e << std::endl;
217 QDPIO::cout <<
name <<
": Caught const char * exception: " << e << std::endl;
221 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.
GroupXML_t readXMLGroup(XMLReader &xml_in, const std::string &path, const std::string &type_name)
Read group and return as a std::string.
Inline task to copy std::map objects.
Named object function std::map.
static bool registered
Local registration flag.
const std::string name
Name to be used.
void read(XMLReader &xml, const std::string &path, Params::NamedObject_t &input)
Object buffer.
bool registerAll()
Register all the factories.
Asqtad Staggered-Dirac operator.
push(xml_out,"Condensates")
Holds of vectors and eigenvalues.
#define TYPELIST_3(T1, T2, T3)