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

📄 engine.cpp

📁 Kluwer.Academic.Pub.Systemc.From.The.Ground.Up-此全书的范例程式。
💻 CPP
字号:
//BEGIN Engine.cpp//~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~//See convertible.h for more information//~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~#include "Engine.h"#include "FuelMix.h"#include "Exhaust.h"#include "Cylinder.h"// ConstructorEngine::Engine(sc_module_name nm): sc_module(nm){  cout << "INFO: Constructing instance " << name() << endl;  // Processes  SC_THREAD(Engine_thread);  // Instantiations  fuelmix_i = new FuelMix("fuelmix_i");  exhaust_i = new Exhaust("exhaust_i");  cyl_i1 = new Cylinder("cyl_i1");  cyl_i2 = new Cylinder("cyl_i2");}//end Engine constructorvoid Engine::Engine_thread(void) {  cout << "INFO: Ran Engine_thread inside instance " << name() << endl;}//end Engine_thread()//~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~//END $Id: Engine.cpp,v 1.4 2004/03/04 21:04:07 dcblack Exp $

⌨️ 快捷键说明

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