15
static List<string> EventNames;
18
unsigned char EventFlag [(MAX_EVENTS + 7) / 8];
20
friend class RelevantSet;
24
unsigned add(const string &event);
25
void sub(string event);
27
bool HasEvent(string event) const;
28
unsigned count() const;
30
const string &operator[](int index) const;
31
bool operator==(const EventSet &comp) const {
32
return memcmp(&EventFlag, &comp.EventFlag, (MAX_EVENTS + 7) / 8) == 0;
34
bool operator< (const EventSet &comp) const {
35
return memcmp(&EventFlag, &comp.EventFlag, (MAX_EVENTS + 7) / 8) < 0;
37
bool operator> (const EventSet &comp) const {
40
bool operator<=(const EventSet &comp) const {
41
return ! (comp < *this);
43
bool operator>=(const EventSet &comp) const {
44
return ! (*this < comp);
46
bool operator!=(const EventSet &comp) const {
47
return ! (*this == comp);
53
return current < 0 ? string::EMPTY : EventNames[current];
58
string GetEvents(const char *prefix = (const char *) NULL)
60
string GetGuards() const;