MySQL 8.0.40
Source Code Documentation
|
Simplified adjacency list: a window can maximum reference (depends on) one other window due to syntax restrictions. More...
Public Member Functions | |
AdjacencyList (uint elements) | |
~AdjacencyList () | |
void | add (uint wno, uint depends_on) |
Add a dependency. More... | |
uint | out_degree (uint wno) |
If the window depends on another window, return 1, else 0. More... | |
uint | in_degree (uint wno) |
Return the number of windows that depend on this one. More... | |
bool | check_circularity () |
Return true of there is a circularity in the graph. More... | |
Public Attributes | |
uint *const | m_list |
const uint | m_size |
Static Public Attributes | |
static constexpr uint | UNUSED = std::numeric_limits<uint>::max() |
Simplified adjacency list: a window can maximum reference (depends on) one other window due to syntax restrictions.
If there is no dependency, m_list[wno] == UNUSED. If w1 depends on w2, m_list[w1] == w2.
|
inline |
|
inline |
Add a dependency.
wno | the window that references another in its definition |
depends_on | the window referenced |
|
inline |
Return true of there is a circularity in the graph.
Return the number of windows that depend on this one.
wno | the window |
If the window depends on another window, return 1, else 0.
wno | the window |
uint* const AdjacencyList::m_list |
const uint AdjacencyList::m_size |