ADS
Algorithms and Data Structures
Loading...
Searching...
No Matches
ADS::mod Namespace Reference

Namespaces

namespace  reduce
 how two changes of one attribute of one item compose in a batch: the last value (last), the least or the largest of the two (min, max), or the sum of the differences (sum)

Classes

struct  BulkErased
 the items of the handles hs erased by one bulk operation More...
struct  BulkInserted
 the items of the handles hs inserted by one bulk operation More...
struct  Changed
 the attribute A of the item of handle \( h \) changed from from to to More...
struct  Cleared
 the structure emptied More...
struct  coalesce_traits
 the net effect of the events of a batch of the structures whose events are the list L: by default the rule of Typed modifications (an insertion and an erasure of one handle cancel, an erasure and an insertion become changes, consecutive changes of one attribute compose, everything before the last Cleared or Rebuilt is dropped, the shifts add up); a structure with a rule of its own specializes it More...
struct  coalesce_traits< GraphModifications< W > >
 the net effect of a batch of a graph, by coalesce() [see Observable.h] More...
struct  Cost
 the cost of an arc More...
struct  Counts
 the counts of an observer kept by the subject at the level of the audits More...
struct  Direct
 how a subject calls an observer: Direct calls on() and the optional parts by their names; an adapter with the same static functions lets an object with another interface be an observer [see Via] More...
struct  effect
 the effects of an event, as bits: a bit not set is a guarantee More...
struct  Erased
 the item of handle \( h \), key \( k \) and value \( v \) erased, told before the removal outside a batch More...
struct  Erased< H, K, void >
 the item of handle \( h \) and key \( k \) erased, with no value More...
struct  Group
 what a batch tells group_begin(): the versions of the subject before and after it, and the number of its events after the coalescing More...
struct  Inserted
 the item of handle \( h \), key \( k \) and value \( v \) inserted More...
struct  Inserted< H, K, void >
 the item of handle \( h \) and key \( k \) inserted, with no value More...
struct  Key
 the attribute of a key that orders the items More...
struct  list
 a list of types, the events of a structure [see Modification.h] More...
struct  Lower
 the lower bound of an arc More...
struct  Parent
 the parent of a node in a forest, -1 at a root More...
struct  Permuted
 the items permuted: the handle before of each handle after More...
struct  Rebuilt
 anything may have changed: forget and recompute More...
struct  reduction_of
 the reduction of the attribute A: A::reduction if it has one, reduce::last otherwise More...
struct  reduction_of< A >
 the reduction of an attribute that declares one More...
struct  Relocated
 the item of handle from moved to the handle to, for the structures whose handles are not stable More...
struct  Replaced
 every value of the attribute A replaced More...
struct  Shifted
 every value of the attribute A moved by delta More...
struct  Supply
 the supply of a node More...
struct  Upper
 the upper bound of an arc More...
struct  Value
 the attribute of the value of an item More...
struct  Via
 the observer O called through the adapter A, an argument of Static More...

Concepts

concept  invertible
 an event that has an inverse
concept  observes
 an observer of the event E
concept  observes_span
 an observer of the spans of E, an event or the variant of the events
concept  groups
 an observer told of the start and of the end of each batch
concept  refuses
 an observer that may refuse the change E before it is made
concept  auditable
 an observer that can check itself against the structure \( s \)
concept  lazy
 an observer that queues the events and works at its next query
concept  counted
 an observer that reports counts of its own
concept  with_policy
 an observer with a recompute policy [see ReoptPolicy], and the statistics of a query after \( k \) more events: at the close of a batch the subject asks its scratch(), and sends Rebuilt instead of the events when it answers yes
concept  masked
 an observer with a filter of the kinds at run time: the bit \( i \) of mask() for the \( i \)-th event of the structure
concept  observer_of
 an observer of at least one of the events of the list L

Typedefs

template<class L>
using variant_t = typename detail::variant_of< L >::type
 the variant of the events of the list L, the type of a buffer
template<class H, class V>
using Assigned = Changed< Value , H , V >
 the value of an item changed
template<class H, class K>
using KeyChanged = Changed< Key , H , K >
 the key of an item changed

Enumerations

enum class  Role {
  Role::Insert , Role::Erase , Role::Change , Role::Relocate ,
  Role::Permute , Role::BulkInsert , Role::BulkErase , Role::Shift ,
  Role::Replace , Role::Clear , Role::Rebuild , Role::Other
}
 the role of an event in the coalescing of a batch More...

Functions

template<class H, class K, class V>
constexpr Erased< H, K, V > inverse (const Inserted< H, K, V > &e)
 the erasure that undoes an insertion
template<class H, class K, class V>
constexpr Inserted< H, K, V > inverse (const Erased< H, K, V > &e)
 the insertion that undoes an erasure
template<class A, class H, class V>
constexpr Changed< A, H, V > inverse (const Changed< A, H, V > &e)
 the change back
template<class H>
constexpr Relocated< H > inverse (const Relocated< H > &e)
 the move back
template<class A, class D>
constexpr Shifted< A, D > inverse (const Shifted< A, D > &e)
 the shift back

Variables

template<class E>
constexpr Role role_of = detail::declared_role< E >()
 the role of the event E, Role::Other if it declares none
template<class E>
constexpr unsigned effects_of = detail::declared_effects< E >()
 the effects of the event E, all of them if it declares none
template<class E>
constexpr bool must_not_throw
 whether on() of the event E must not throw: the erasures, the clearing, the rebuilding and the replacement, after which an observer left half updated could not be repaired
template<class E, class L>
constexpr std::size_t index_v = detail::index_in< E , L >::value
 the position of E in the list L, its size if absent
template<class E, class L>
constexpr bool contains_v = index_v< E , L > < L::size
 whether E is in the list L