45#include <lal/graphs/rooted_tree.hpp>
46#include <lal/generate/tree_generator.hpp>
47#include <lal/internal/data_array.hpp>
Base class for tree generators.
Definition tree_generator.hpp:87
tree_type_t get_tree() noexcept
Definition tree_generator.hpp:146
Exhaustive enumeration of unlabelled rooted trees.
Definition all_ulab_rooted_trees.hpp:99
void next() noexcept
Generates the next tree.
internal::data_array< node > m_save
Sequence SAVE.
Definition all_ulab_rooted_trees.hpp:175
all_ulab_rooted_trees(all_ulab_rooted_trees &&Gen)=delete
Move constructor.
bool end() const noexcept
Returns true if the end of the iteration was reached.
Definition all_ulab_rooted_trees.hpp:126
graphs::rooted_tree yield_tree() noexcept
Yields a tree, advancing the generator if necessary.
Definition all_ulab_rooted_trees.hpp:145
bool m_reached_end
Has the end of the generation been reached?
Definition all_ulab_rooted_trees.hpp:170
graphs::rooted_tree __get_tree() noexcept
Constructs the current tree.
internal::data_array< node > m_prev
Sequence PREV.
Definition all_ulab_rooted_trees.hpp:177
void reset() noexcept
Sets the generator to its initial state.
Definition all_ulab_rooted_trees.hpp:140
internal::data_array< node > m_L
Level sequence of the tree.
Definition all_ulab_rooted_trees.hpp:179
void __reset() noexcept
Sets the generator to its initial state.
all_ulab_rooted_trees(uint32_t n) noexcept
Constructor with number of nodes.
uint32_t m_p
Pointer as in the paper.
Definition all_ulab_rooted_trees.hpp:173
bool m_is_last
Is the current tree the last tree to be generated?
Definition all_ulab_rooted_trees.hpp:166
bool m_is_first
Is the current tree the first tree to be generated?
Definition all_ulab_rooted_trees.hpp:168
~all_ulab_rooted_trees() noexcept=default
Default destructor.
all_ulab_rooted_trees(const all_ulab_rooted_trees &Gen)=default
Copy constructor.
Rooted tree graph class.
Definition rooted_tree.hpp:107
Main namespace of the library.
Definition definitions.hpp:48
uint32_t node
Node type.
Definition definitions.hpp:51