|
template<class... O>
requires ( ! withCost ) |
| | LemonTap (const GR &g, O &... o) |
| | the tap of the items of \( g \), the static observers o...; \( g \) must outlive it
|
template<class C, class... O>
requires ( withCost && std::is_same_v< C , CostMap > ) |
| | LemonTap (const GR &g, const C &c, O &... o) |
| | the tap of the arcs of \( g \) with the costs \( c \), the static observers o...; it must be constructed after \( c \) [see the order of the observers above], and both must outlive it
|
| bool | spoiled (void) const |
| | whether an observer of ADS threw within erase() or clear(), which LEMON forbids: its state may no longer match the graph
|
| Subject & | subject (void) |
| | the subject, for ADS::batch() and ADS::quiet()
|
| const Subject & | subject (void) const |
| | the subject
|
template<class O>
requires ( Subject::dynamic ) |
| int | attach (O &o) |
| | attaches the observer \( o \) and gives its number
|
| void | detach (int id) |
| | detaches the observer number \( \mathit{id} \)
|
|
| void | add (const Item &x) override |
| | Inserted after the insertion of \( x \)
|
| void | add (const std::vector< Item > &X) override |
| | the insertions of \( X \), in a batch
|
| void | erase (const Item &x) noexcept override |
| | Erased before the removal of \( x \), with its cost
|
| void | erase (const std::vector< Item > &X) noexcept override |
| | the erasures of \( X \), in a batch
|
| void | build (void) override |
| | Rebuilt after the items were built anew
|
| void | clear (void) noexcept override |
| | Cleared before all the items leave
|
template<class GR, class Item = typename GR::Arc, class CostMap = void, class Policy = Dynamic<>>
class ADS::lemon_interop::LemonTap< GR, Item, CostMap, Policy >
the alteration notifier of LEMON for the items Item of GR told as events of ADS, through Policy
template<class GR, class Item = typename GR::Arc, class CostMap = void, class Policy = Dynamic<>>
template<class... O>
requires ( ! withCost )
the tap of the items of \( g \), the static observers o...; \( g \) must outlive it
template<class GR, class Item = typename GR::Arc, class CostMap = void, class Policy = Dynamic<>>
template<class C, class... O>
requires ( withCost && std::is_same_v< C , CostMap > )
the tap of the arcs of \( g \) with the costs \( c \), the static observers o...; it must be constructed after \( c \) [see the order of the observers above], and both must outlive it