ADS
Algorithms and Data Structures
Loading...
Searching...
No Matches
ADS::mod::Shifted< A, D > Struct Template Reference

every value of the attribute A moved by delta More...

#include <ADS/Modification.h>

Public types

using attribute = A

Public member functions

constexpr unsigned direction (void) const
 effect::up or effect::down by the sign of delta
bool operator== (const Shifted &) const =default
 whether the two events are the same

Public attributes

D delta
 < the attribute

Static public attributes

static constexpr unsigned effects = effect::up | effect::down
 both
static constexpr Role role = Role::Shift
 a shift of all

Detailed description

template<class A, class D>
struct ADS::mod::Shifted< A, D >

every value of the attribute A moved by delta

Member typedef documentation

◆ attribute

template<class A, class D>
using ADS::mod::Shifted< A, D >::attribute = A

Member function documentation

◆ direction()

template<class A, class D>
unsigned ADS::mod::Shifted< A, D >::direction ( void ) const
inlinenodiscardconstexpr

effect::up or effect::down by the sign of delta

◆ operator==()

template<class A, class D>
bool ADS::mod::Shifted< A, D >::operator== ( const Shifted< A, D > & ) const
default

whether the two events are the same

Member data documentation

◆ delta

template<class A, class D>
D ADS::mod::Shifted< A, D >::delta

< the attribute

the move

◆ effects

template<class A, class D>
unsigned ADS::mod::Shifted< A, D >::effects = effect::up | effect::down
staticconstexpr

both

◆ role

template<class A, class D>
Role ADS::mod::Shifted< A, D >::role = Role::Shift
staticconstexpr

a shift of all


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