27 #ifndef ABSTRACTELEMENT_WAPAT_H
28 #define ABSTRACTELEMENT_WAPAT_H
43 typedef typename CC::ATOM_TYPE T;
44 typedef typename CC::PARAM_CONFIG P;
47 R = P::EVENT_WINDOW_RADIUS,
48 BITS = P::BITS_PER_ATOM,
56 CURRENT_AGE_POS = BIRTH_AGE_POS + BIRTH_AGE_LEN,
59 WAPAT_FIRST_FREE_POS = CURRENT_AGE_POS + CURRENT_AGE_LEN
65 u32 GetCurrentAge(
const T& us)
const
70 void SetCurrentAge(T& us,
const u32 age)
const
75 u32 GetBirthAge(
const T& us)
const
80 void SetBirthAge(T& us,
const u32 age)
const
89 const T& me,
const SPoint& offset)
const
static void Write(BV &bv, u32 val)
Definition: BitField.h:84
static u32 Read(const BV &bv)
Definition: BitField.h:73
virtual u32 PercentMovable(const T &you, const T &me, const SPoint &offset) const
Definition: AbstractElement_WaPat.h:88
Definition: AbstractElement_WaPat.h:39
const BitVector< P::BITS_PER_ATOM > & GetBits(const T &atom) const
Definition: Element.h:132