@@ -156,9 +156,25 @@ class Iteration : public LegacyAttributable
156156
157157 struct DeferredParseAccess
158158 {
159+ /* *
160+ * The group path within /data containing this iteration.
161+ * Example: "1" for iteration 1, "" in variable-based iteration
162+ * encoding.
163+ */
159164 std::string path;
165+ /* *
166+ * The iteration index as accessed by the user in series.iterations[i]
167+ */
160168 uint64_t iteration = 0 ;
169+ /* *
170+ * If this iteration is part of a Series with file-based layout.
171+ * (Group- and variable-based parsing shares the same code logic.)
172+ */
161173 bool fileBased = false ;
174+ /* *
175+ * If fileBased == true, the file name (without file path) of the file
176+ * containing this iteration.
177+ */
162178 std::string filename;
163179 };
164180
@@ -179,11 +195,15 @@ class Iteration : public LegacyAttributable
179195 * allow for those different control flows.
180196 * Finally, read_impl() is called which contains the common parsing
181197 * logic for an iteration.
198+ *
199+ * reread() reads again an Iteration that has been previously read.
200+ * Calling it on an Iteration not yet parsed is an error.
182201 *
183202 */
184- void read ( std::string path, bool reread = false );
203+ void read ();
204+ void reread ( std::string const & path );
185205 void readFileBased ( std::string filePath, std::string const & groupPath );
186- void readGroupBased ( std::string const & groupPath );
206+ void readGorVBased ( std::string const & groupPath );
187207 void read_impl ( std::string const & groupPath );
188208
189209 /* *
0 commit comments