CHROMA
key_timeslice_colorvec.cc
Go to the documentation of this file.
1 /*! \file
2  * \brief Key for time-sliced color eigenvectors
3  */
4 
6 
7 namespace Chroma
8 {
9  //----------------------------------------------------------------------------
10  //! Diagnostics
11  StandardOutputStream& operator<<(StandardOutputStream& os, const KeyTimeSliceColorVec_t& param)
12  {
13  os << "KeyTimeSliceColorVec_t:";
14  os << " t_slice= " << param.t_slice;
15  os << " colorvec= " << param.colorvec;
16  os << std::endl;
17 
18  return os;
19  }
20 
21 
22  //----------------------------------------------------------------------------
23  // KeyTimeSliceDist read
24  void read(BinaryReader& bin, KeyTimeSliceColorVec_t& param)
25  {
26  read(bin, param.t_slice);
27  read(bin, param.colorvec);
28  }
29 
30  // KeyTimeSliceDist write
31  void write(BinaryWriter& bin, const KeyTimeSliceColorVec_t& param)
32  {
33  write(bin, param.t_slice);
34  write(bin, param.colorvec);
35  }
36 
37  //! KeyTimeSliceDist reader
38  void read(XMLReader& xml, const std::string& path, KeyTimeSliceColorVec_t& param)
39  {
40  XMLReader paramtop(xml, path);
41 
42  read(paramtop, "t_slice", param.t_slice);
43  read(paramtop, "colorvec", param.colorvec);
44  }
45 
46  // KeyTimeSliceDist writer
47  void write(XMLWriter& xml, const std::string& path, const KeyTimeSliceColorVec_t& param)
48  {
49  push(xml, path);
50 
51  write(xml, "t_slice", param.t_slice);
52  write(xml, "colorvec", param.colorvec);
53 
54  pop(xml);
55  }
56 
57 } // namespace Chroma
void read(XMLReader &xml, const std::string &path, AsqtadFermActParams &param)
Read parameters.
void write(XMLWriter &xml, const std::string &path, const AsqtadFermActParams &param)
Writer parameters.
Key for time-sliced color eigenvectors.
Asqtad Staggered-Dirac operator.
Definition: klein_gord.cc:10
QDP::StandardOutputStream & operator<<(QDP::StandardOutputStream &s, const multi1d< int > &d)
Definition: npr_vertex_w.cc:12
push(xml_out,"Condensates")
pop(xml_out)
::std::string string
Definition: gtest.h:1979