Function eat::utilities::element_visitor::visit(std::shared_ptr<adm::Document>, const std::vector<std::string>&, const std::function<void(const Path&path)>&)

Function Documentation

void eat::utilities::element_visitor::visit(std::shared_ptr<adm::Document> document, const std::vector<std::string> &desc, const std::function<void(const Path &path)> &cb)

visit sub-elements of document based on the path described by desc; calls cb once for each element

visit sub-elements of document based on the path described by desc; calls cb once for each element

WARNING: this uses const_cast to remove the const of adm::Document &#8212; therefore the elements referenced in the path must be treated as if they were const