3 #include <nlohmann/json_fwd.hpp>
37 std::string
name(
const std::vector<int64_t>&
id)
const;
42 bool has_mesh(
const std::string_view& path)
const;
43 std::vector<int64_t>
get_id(
const std::string_view& path)
const;
44 std::vector<int64_t>
get_id(
const Mesh& m)
const;
50 std::map<std::string, const Mesh&>
all_meshes()
const;
std::vector< int64_t > get_id(const std::string_view &path) const
auto operator=(const NamedMultiMesh &) -> NamedMultiMesh &
std::map< std::string, const Mesh & > all_meshes() const
void set_mesh(Mesh &m)
Navigates to the root of the multimesh.
std::string_view root_name() const
bool has_mesh(const std::string_view &path) const
std::string name(const std::vector< int64_t > &id) const
Mesh & get_mesh(const std::string_view &path) const
std::shared_ptr< Mesh > m_root
void append_child_mesh_names(const Mesh &parent, const NamedMultiMesh &o)
void set_names(const nlohmann::json &js)
const Mesh & root() const
std::string get_name(const Mesh &m) const
std::unique_ptr< Node > m_name_root
void set_name(const std::string_view &root_name="")
std::unique_ptr< nlohmann::json > get_names_json() const