We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 2be85f0 commit e9a242cCopy full SHA for e9a242c
include/openPMD/backend/BaseRecord.hpp
@@ -366,6 +366,16 @@ class BaseRecord
366
*/
367
bool scalar() const;
368
369
+ template <typename Visitor>
370
+ void visitHierarchy(Visitor &&v)
371
+ {
372
+ v(*this);
373
+ for (auto &p : *this)
374
375
+ p.second.visitHierarchy(v);
376
+ }
377
378
+
379
private:
380
void flush(std::string const &, internal::FlushParams const &) final;
381
virtual void
include/openPMD/backend/Container.hpp
@@ -268,7 +268,7 @@ class Container : virtual public Attributable
268
v(*this);
269
for (auto &p : *this)
270
{
271
- p.second.visitHierarchy();
272
}
273
274
0 commit comments