ADS
Algorithms and Data Structures
Loading...
Searching...
No Matches
ADS::mod::Changed< A, H, V > Struct Template Reference

the attribute A of the item of handle \( h \) changed from from to to More...

#include <ADS/Modification.h>

Public types

using attribute = A
using handle_type = H
 < the attribute
using value_type = V
 < the handle

Public member functions

constexpr unsigned direction (void) const
 effect::up or effect::down by the order of from and to, 0 if they are equivalent, both if V has no order
bool operator== (const Changed &) const =default
 whether the two events are the same

Public attributes

H h
 < the value
V from
 the value before
V to
 the value after

Static public attributes

static constexpr unsigned effects = effect::up | effect::down
 both
static constexpr Role role = Role::Change
 a change

Detailed description

template<class A, class H, class V>
struct ADS::mod::Changed< A, H, V >

the attribute A of the item of handle \( h \) changed from from to to

Member typedef documentation

◆ attribute

template<class A, class H, class V>
using ADS::mod::Changed< A, H, V >::attribute = A

◆ handle_type

template<class A, class H, class V>
using ADS::mod::Changed< A, H, V >::handle_type = H

< the attribute

◆ value_type

template<class A, class H, class V>
using ADS::mod::Changed< A, H, V >::value_type = V

< the handle

Member function documentation

◆ direction()

template<class A, class H, class V>
unsigned ADS::mod::Changed< A, H, V >::direction ( void ) const
inlinenodiscardconstexpr

effect::up or effect::down by the order of from and to, 0 if they are equivalent, both if V has no order

◆ operator==()

template<class A, class H, class V>
bool ADS::mod::Changed< A, H, V >::operator== ( const Changed< A, H, V > & ) const
default

whether the two events are the same

Member data documentation

◆ effects

template<class A, class H, class V>
unsigned ADS::mod::Changed< A, H, V >::effects = effect::up | effect::down
staticconstexpr

both

◆ from

template<class A, class H, class V>
V ADS::mod::Changed< A, H, V >::from

the value before

◆ h

template<class A, class H, class V>
H ADS::mod::Changed< A, H, V >::h

< the value

the handle

◆ role

template<class A, class H, class V>
Role ADS::mod::Changed< A, H, V >::role = Role::Change
staticconstexpr

a change

◆ to

template<class A, class H, class V>
V ADS::mod::Changed< A, H, V >::to

the value after


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