⭐ 欢迎来到虫虫下载站! | 📦 资源下载 📁 资源专辑 ℹ️ 关于我们
⭐ 虫虫下载站

📄 eventset.h

📁 这个工具集提供以下结构化分析和UML分析中所用的图形化绘图工具:ER-diagrams, data and event flow diagrams and state-transition diagr
💻 H
字号:
#ifndef _EVENTSET_H#define _EVENTSET_H#include "bool.h"#include "llist.h"#include "lstring.h"#include <string.h>#define MAX_EVENTS 256class RelevantSet;class EventSet {	private:		static List<string> EventNames;		int current;		unsigned char EventFlag   [(MAX_EVENTS + 7) / 8];		friend class RelevantSet;	public:		EventSet();		~EventSet() { };		unsigned add(const string &event);		void sub(string event);		void clear();		bool HasEvent(string event) const;		unsigned count() const;		bool empty() const;		const string &operator[](int index) const;		bool operator==(const EventSet &comp) const {			return memcmp(&EventFlag, &comp.EventFlag, (MAX_EVENTS + 7) / 8) == 0;		};		bool operator< (const EventSet &comp) const {			return memcmp(&EventFlag, &comp.EventFlag, (MAX_EVENTS + 7) / 8) < 0;		};		bool operator> (const EventSet &comp) const {			return comp < *this;		};		bool operator<=(const EventSet &comp) const {			return ! (comp < *this);		};		bool operator>=(const EventSet &comp) const {			return ! (*this < comp);		};		bool operator!=(const EventSet &comp) const {			return ! (*this == comp);		};		bool first();		bool last();		const string &cur() {			return current < 0 ? string::EMPTY : EventNames[current];		};		bool next();		bool prev();		void print();		string GetEvents(const char *prefix = (const char *) NULL)			const;		string GetGuards() const;};#endif

⌨️ 快捷键说明

复制代码 Ctrl + C
搜索代码 Ctrl + F
全屏模式 F11
切换主题 Ctrl + Shift + D
显示快捷键 ?
增大字号 Ctrl + =
减小字号 Ctrl + -