|
ADS
Algorithms and Data Structures
|
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...
#include <ADS/Modification.h>
Static public member functions | |
| template<class O, class E> requires observes< O , E > | |
| static decltype(auto) | one (O &o, const E &e) noexcept(noexcept(o.on(e))) |
| o.on( e ) | |
| template<class O, class E> requires observes_span< O , E > | |
| static void | many (O &o, std::span< const E > s) |
| o.on( s ) | |
| template<class O> requires groups< O > | |
| static void | begin (O &o, const Group &g) |
| o.group_begin( g ), or o.group_begin() | |
| template<class O> requires groups< O > | |
| static void | end (O &o) |
| o.group_end() | |
| template<class O, class E> requires refuses< O , E > | |
| static bool | prepare (const O &o, const E &e) |
| o.prepare( e ) | |
| template<class O, class S> requires auditable< O , S > | |
| static bool | audit (const O &o, const S &s) |
| o.audit( s ) | |
| template<class O> requires masked< O > | |
| static std::uint64_t | mask (const O &o) |
| o.mask() | |
| template<class O> requires ( with_policy< O > && observes< O , Rebuilt > ) | |
| static bool | early (O &o, std::size_t k) |
| whether the policy of \( o \) wants Rebuilt instead of the \( k \) events of a batch [see with_policy] | |
| template<class O> requires ( with_policy< O > && observes< O , Rebuilt > ) | |
| static void | rebuilt (O &o) noexcept |
| o.on( Rebuilt{} ) | |
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]
|
inlinestatic |
o.audit( s )
|
inlinestatic |
o.group_begin( g ), or o.group_begin()
|
inlinestatic |
whether the policy of \( o \) wants Rebuilt instead of the \( k \) events of a batch [see with_policy]
|
inlinestatic |
o.group_end()
|
inlinestatic |
o.on( s )
|
inlinestatic |
o.mask()
|
inlinestaticnoexcept |
o.on( e )
|
inlinestatic |
o.prepare( e )
|
inlinestaticnoexcept |
o.on( Rebuilt{} )