ADS
Algorithms and Data Structures
Loading...
Searching...
No Matches
ADS::GraphObserver Concept Reference

an observer of the events of weights W: the kinds that it wants, and the two ways of getting them More...

#include <ADS/graph/Observable.h>

Concept definition

template< class O , class W >
concept GraphObserver = requires( O & o , const GraphEvent< W > & e ,
std::span< const GraphEvent< W > > s )
{
{ o.mask() } -> std::convertible_to< unsigned >;
o.notify( e );
o.notify( s );
}
an observer of the events of weights W: the kinds that it wants, and the two ways of getting them
Definition Observable.h:298
std::variant< NodeInserted, NodeDeleted, EdgeInserted< W >, EdgeDeleted< W >, WeightChanged< W > > GraphEvent
an event, whose kind is its index in the variant, the variant of GraphModifications< W >
Definition Observable.h:237

Detailed description

an observer of the events of weights W: the kinds that it wants, and the two ways of getting them