52#include <lal/basic_types.hpp>
53#include <lal/detail/array.hpp>
69 typedef typename std::vector<node>::iterator
iterator;
171 [[nodiscard]]
const std::vector<node>&
get_nodes() const noexcept
Definition of a chunk.
Definition chunk.hpp:64
node get_root_node() const noexcept
Retrieve the root node of this chunk.
Definition chunk.hpp:144
std::vector< node > m_nodes
Collection of nodes in this chunk.
Definition chunk.hpp:176
void unset_parent_node() noexcept
Unsets the parent node of this chunk.
Definition chunk.hpp:88
std::vector< node >::iterator iterator
Useful typedef for non-constant iterators.
Definition chunk.hpp:69
node get_parent_node() const noexcept
Retrieve the parent node of this chunk.
Definition chunk.hpp:129
iterator begin() noexcept
A pointer to the beginning of the node sequence.
Definition chunk.hpp:155
std::optional< node > m_root
The root vertex of this chunk.
Definition chunk.hpp:180
const std::vector< node > & get_nodes() const noexcept
Collection of nodes of this chunk.
Definition chunk.hpp:171
void unset_root_node() noexcept
Unsets the root node of this chunk.
Definition chunk.hpp:105
std::vector< node >::const_iterator const_iterator
Useful typedef for constant iterators.
Definition chunk.hpp:67
void set_root_node(const node u) noexcept
Sets the root node of this chunk.
Definition chunk.hpp:114
bool has_root_node() const noexcept
Does this chunk have a parent node?
Definition chunk.hpp:137
std::optional< node > m_parent
The parent vertex of this chunk.
Definition chunk.hpp:178
bool has_parent_node() const noexcept
Does this chunk have a parent node?
Definition chunk.hpp:121
const_iterator begin() const noexcept
A pointer to the beginning of the node sequence.
Definition chunk.hpp:152
void set_parent_node(const node u) noexcept
Sets the parent node of this chunk.
Definition chunk.hpp:97
const_iterator end() const noexcept
A pointer to the ending of the node sequence.
Definition chunk.hpp:159
iterator end() noexcept
A pointer to the ending of the node sequence.
Definition chunk.hpp:162
void add_node(const node u) noexcept
Adds a new node to this chunk.
Definition chunk.hpp:78
Main namespace of the library.
Definition basic_types.hpp:48
uint64_t node
Node type. See Node / Vertex page for further details.
Definition basic_types.hpp:51