📄 simmodel.h
字号:
#ifndef SIMMODEL_H
#define SIMMODEL_H
class SIMMODEL {
friend class SIMSYSTEM;
friend class PROCESS;
friend class RESOURCE;
public:
static SIMMODEL *get_simmodel();
real64 get_simtime();
uint32 get_prcsnum();
void clear();
int simulate();
protected:
SIMMODEL() { _construct(); }
virtual ~SIMMODEL() { _destruct(); }
template <class T>
T *create_process( T* &process ) { process = new T; _init_process( process ); return process; }
private:
void *_data;
int _construct();
int _destruct();
int _init_process( void *process );
int _execute_process( uint08 init );
};
#define SIMTIME ((SIMMODEL::get_simmodel() == NULL) ? 0 : SIMMODEL::get_simmodel()->get_simtime())
#endif
⌨️ 快捷键说明
复制代码
Ctrl + C
搜索代码
Ctrl + F
全屏模式
F11
切换主题
Ctrl + Shift + D
显示快捷键
?
增大字号
Ctrl + =
减小字号
Ctrl + -