engine.cpp
来自「Kluwer.Academic.Pub.Systemc.From.The.Gro」· C++ 代码 · 共 31 行
CPP
31 行
//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 + =
减小字号Ctrl + -
显示快捷键?