Change TreeContainer factory to support various tree types genericially
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()
inContainerFactory
for nodes with dynamic degree, producing astd::vector
container - Construct all childs of a power-node container
- Add
resize()
function toTreeContainerVectorBackend
- Add Constructor with
tree
argument that callsresize(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.