YODA::H5DataSetWriter< T > Class Template Reference A helper class to deal with chunking of H5 datasets. More...
Detailed Descriptiontemplate<typename T> class YODA::H5DataSetWriter< T > A helper class to deal with chunking of H5 datasets. Constructor & Destructor Documentation◆ H5DataSetWriter()
template<typename T >
Member Function Documentation◆ colPos()
template<typename T >
◆ createAttribute()
template<typename T >
template<typename U >
◆ rowPos()
template<typename T >
◆ writeSlice()
template<typename T >
Method to write a slice that may span multiple rows/columns. Definition at line 168 of file H5Utils.h. 168 {
169
170 if (data.empty()) return;
171
172 size_t offset = 0, len = data.size();
173 const auto itr = data.cbegin();
174 while (len) {
175 vector<T> tmp;
176 size_t ncols = std::min(len, _ncols - _thiscol);
177 auto first = itr + offset;
178 auto last = first + ncols;
179 _ds.select({_thisrow,_thiscol},
180 {1,ncols}).write(vector<vector<T>>{{std::make_move_iterator(first),
181 std::make_move_iterator(last)}});
182 offset += ncols;
183 _thiscol += ncols;
184 if (_thiscol == _ncols) {
185 _thiscol = 0; ++_thisrow;
186 }
187 len -= ncols;
188 }
189 }
void write(const std::string &filename, const AnalysisObject &ao, int precision=-1) Write out object ao to file filename. Definition IO.h:19 References YODA::write(). Referenced by YODA::WriterH5::writeAOS(). The documentation for this class was generated from the following file:
Generated on Fri Mar 7 2025 09:06:40 for YODA - Yet more Objects for Data Analysis by |