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

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{} )

Detailed description

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]

Member function documentation

◆ audit()

template<class O, class S>
requires auditable< O , S >
bool ADS::mod::Direct::audit ( const O & o,
const S & s )
inlinestatic

o.audit( s )

◆ begin()

template<class O>
requires groups< O >
void ADS::mod::Direct::begin ( O & o,
const Group & g )
inlinestatic

o.group_begin( g ), or o.group_begin()

◆ early()

template<class O>
requires ( with_policy< O > && observes< O , Rebuilt > )
bool ADS::mod::Direct::early ( O & o,
std::size_t k )
inlinestatic

whether the policy of \( o \) wants Rebuilt instead of the \( k \) events of a batch [see with_policy]

◆ end()

template<class O>
requires groups< O >
void ADS::mod::Direct::end ( O & o)
inlinestatic

o.group_end()

◆ many()

template<class O, class E>
requires observes_span< O , E >
void ADS::mod::Direct::many ( O & o,
std::span< const E > s )
inlinestatic

o.on( s )

◆ mask()

template<class O>
requires masked< O >
std::uint64_t ADS::mod::Direct::mask ( const O & o)
inlinestatic

o.mask()

◆ one()

template<class O, class E>
requires observes< O , E >
decltype(auto) ADS::mod::Direct::one ( O & o,
const E & e )
inlinestaticnoexcept

o.on( e )

◆ prepare()

template<class O, class E>
requires refuses< O , E >
bool ADS::mod::Direct::prepare ( const O & o,
const E & e )
inlinestatic

o.prepare( e )

◆ rebuilt()

template<class O>
requires ( with_policy< O > && observes< O , Rebuilt > )
void ADS::mod::Direct::rebuilt ( O & o)
inlinestaticnoexcept

o.on( Rebuilt{} )


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