|
ADS
Algorithms and Data Structures
|
a lemon::ListDigraph and its weights kept in step with a graph of ADS, as an observer of its ObservedGraph More...
#include <ADS/interop/lemon/Observers.h>
Classes | |
| struct | Kinds |
| what the events since the last clearKinds() changed More... | |
Public types | |
| using | Weight = typename G::Weight |
| the type of the weights | |
| using | LG = ::lemon::ListDigraph |
| the digraph of LEMON | |
| using | WeightMap = LG::ArcMap< Weight > |
| its weights | |
Public member functions | |
| LemonMirror (const G &g) | |
| the mirror of \( g \) as it is now, in \( O( n + m ) \) expected time | |
| LemonMirror (const LemonMirror &)=delete | |
| not copied: the maps of LEMON are bound to their digraph | |
| LemonMirror & | operator= (const LemonMirror &)=delete |
| not assigned | |
| void | on (const NodeInserted &e) |
| the node \( u \) inserted | |
| void | on (const NodeDeleted &e) noexcept |
| the node \( u \) deleted, after its edges | |
| void | on (const EdgeInserted< Weight > &e) |
| the edge inserted, with its weight | |
| void | on (const EdgeDeleted< Weight > &e) noexcept |
| the edge deleted | |
| void | on (const WeightChanged< Weight > &e) |
| the weight of an edge changed | |
| const LG & | digraph (void) const |
| the digraph of LEMON | |
| const WeightMap & | weights (void) const |
| the weights of its arcs | |
| LG::Node | node (int u) const |
| the node of LEMON of the name \( u \) of ADS, INVALID if none | |
| LG::Arc | arc (int u, int v) const |
| the arc of LEMON of the arc \( ( u , v ) \) of ADS, INVALID if none | |
| const Kinds & | kinds (void) const |
| the kinds of the events since the last clearKinds() | |
| bool | stale (void) const |
| whether something changed since the last clearKinds() | |
| void | clearKinds (void) |
| the kinds forgotten, e.g., after an algorithm of LEMON ran again | |
a lemon::ListDigraph and its weights kept in step with a graph of ADS, as an observer of its ObservedGraph
| using ADS::lemon_interop::LemonMirror< G >::LG = ::lemon::ListDigraph |
the digraph of LEMON
| using ADS::lemon_interop::LemonMirror< G >::Weight = typename G::Weight |
the type of the weights
| using ADS::lemon_interop::LemonMirror< G >::WeightMap = LG::ArcMap< Weight > |
its weights
|
explicit |
the mirror of \( g \) as it is now, in \( O( n + m ) \) expected time
|
delete |
not copied: the maps of LEMON are bound to their digraph
|
inlinenodiscard |
the arc of LEMON of the arc \( ( u , v ) \) of ADS, INVALID if none
|
inline |
the kinds forgotten, e.g., after an algorithm of LEMON ran again
|
inlinenodiscard |
the digraph of LEMON
|
inlinenodiscard |
the kinds of the events since the last clearKinds()
|
inlinenodiscard |
the node of LEMON of the name \( u \) of ADS, INVALID if none
|
noexcept |
the edge deleted
| void ADS::lemon_interop::LemonMirror< G >::on | ( | const EdgeInserted< Weight > & | e | ) |
the edge inserted, with its weight
|
noexcept |
the node \( u \) deleted, after its edges
| void ADS::lemon_interop::LemonMirror< G >::on | ( | const NodeInserted & | e | ) |
the node \( u \) inserted
| void ADS::lemon_interop::LemonMirror< G >::on | ( | const WeightChanged< Weight > & | e | ) |
the weight of an edge changed
|
delete |
not assigned
|
inlinenodiscard |
whether something changed since the last clearKinds()
|
inlinenodiscard |
the weights of its arcs