ADS
Algorithms and Data Structures
Loading...
Searching...
No Matches
ADS::mod::coalesce_traits< L > Struct Template Reference

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...

#include <ADS/Modification.h>

Static public member functions

static std::vector< variant_t< L > > coalesce (std::span< const variant_t< L > > B)
 the net effect of the events \( B \), in \( O( |B| ) \) expected time

Detailed description

template<class L>
struct ADS::mod::coalesce_traits< L >

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

Member function documentation

◆ coalesce()

template<class L>
std::vector< variant_t< L > > ADS::mod::coalesce_traits< L >::coalesce ( std::span< const variant_t< L > > B)
static

the net effect of the events \( B \), in \( O( |B| ) \) expected time


The documentation for this struct was generated from the following file: