 |
Cerata
A library to generate structural hardware designs
|
15 #include "cerata/object.h"
20 #include "cerata/utils.h"
21 #include "cerata/graph.h"
29 throw std::runtime_error(
"Parent cannot be nullptr.");
A graph representing a hardware structure.
virtual void SetParent(Graph *parent)
Set the parent graph of this object.
Contains every Cerata class, function, etc...
std::optional< Graph * > parent_
An optional parent Graph to which this Object belongs. Initially no value.
virtual std::optional< Graph * > parent() const
Return the parent graph of this object, if any. Returns empty option otherwise.