Skip to content

Change TreeContainer factory to support various tree types genericially

Simon Praetorius requested to merge feature/dynamic_treecontainer into master

Summary

This is a generalization of the TreeContainer implementation not relying on the node tags but on node interface properties.

Changes

  • Add overload of operator() in ContainerFactory for nodes with dynamic degree, producing a std::vector container
  • Construct all childs of a power-node container
  • Add resize() function to TreeContainerVectorBackend
  • Add Constructor with tree argument that calls resize(tree)

Details

If the tree container storage type is a std::vector we need to construct it using a size argument. This means you have to construct the container with the tree as argument, or make a proper resize afterwards.

Edited by Simon Praetorius

Merge request reports