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

📄 body.h

📁 Kluwer.Academic.Pub.Systemc.From.The.Ground.Up-此全书的范例程式。
💻 H
字号:
#ifndef BODY_H#define BODY_H//BEGIN Body.h//~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~//See jalopy.h for more information//~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~#include <systemc.h>#include "Wheel.h"SC_MODULE(Body) {  // Sub-module instances  Wheel Wheel_FR;  Wheel Wheel_FL;  Wheel Wheel_RR;  Wheel Wheel_RL;  // Constructor  SC_CTOR(Body) :    Wheel_FL("Wheel_FL"),    Wheel_FR("Wheel_FR"),    Wheel_RL("Wheel_RL"),    Wheel_RR("Wheel_RR")  {    cout << "INFO: Constructing instance " << name() << endl;    SC_THREAD(Body_thread);  }//end Body_thread()  // Processes  void Body_thread(void) {    cout << "INFO: Ran Body_thread inside instance " << name() << endl;  }//end Body_thread};#endif//~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~//END $Id: Body.h,v 1.1 2004/01/12 03:34:15 dcblack Exp $

⌨️ 快捷键说明

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