Wildmeshing Toolkit
MerkleTreeInteriorNode.cpp
Go to the documentation of this file.
1 
2 
4 
5 namespace wmtk::utils {
6 
7 std::map<std::string, std::size_t> MerkleTreeInteriorNode::child_hashes() const
8 {
9  std::map<std::string, std::size_t> child_hashes;
10  for (const auto& [k, v] : child_hashables()) {
11  child_hashes[k] = v->hash();
12  }
13  return child_hashes;
14 }
15 } // namespace wmtk::utils
std::map< std::string, std::size_t > child_hashes() const override
virtual std::map< std::string, const Hashable * > child_hashables() const =0