Struct TreeShape

Struct Documentation

struct TreeShape

binary tree shape: a leaf carries an ordinal (into the term’s factors), an inner node has two children. Deep-copyable.

Public Functions

TreeShape() = default
inline TreeShape(std::size_t ordinal)
inline TreeShape(TreeShape const &other)
TreeShape(TreeShape&&) noexcept = default
inline TreeShape &operator=(TreeShape const &other)
TreeShape &operator=(TreeShape&&) noexcept = default

Public Members

std::optional<std::size_t> leaf
std::unique_ptr<TreeShape> left
std::unique_ptr<TreeShape> right