NVMain运行机制深入了解之一
来源:互联网 发布:打车软件数据流图 编辑:程序博客网 时间:2024/04/27 23:15
通过看NVMain的类实现,很多类都继承了NVMObject
这里把NVMObject阅读一下,下面是我提取出来的继承了NVMObject的类之间根据AddChild函数调用关系排序。
TraceMain --> NVMain --> MemoryController --> Interconnect --> RankFactory --> BankFactory --> SubArray -->EnduranceModelFactory||DataEncoderFactory
首先每个NVMObject都包含的有:
私有对象:
protected: NVMObject_hook *parent; AddressTranslator *decoder; Stats *stats; Params *p; std::string statName; std::vector<NVMObject_hook *> children; std::vector<NVMObject *> *hooks; EventQueue *eventQueue; GlobalEventQueue *globalEventQueue; std::ostream *debugStream; TagGenerator *tagGen; HookType hookType, currentHookType; void AddHookUnique( std::vector<NVMObject *>& list, NVMObject *hook ); ncycle_t MAX( const ncycle_t, const ncycle_t ); ncycle_t MIN( const ncycle_t, const ncycle_t );
NVMObject_hook包含了指向parent的类AddressTranslator负责进行物理地址和对应结构地址的翻译工作。<pre name="code" class="cpp">Stats使用来记录数据的<pre name="code" class="cpp"><pre name="code" class="cpp">Params用来记录配置的参数<pre name="code" class="cpp"> std::string statName;是数据名称<pre name="code" class="cpp">std::vector<NVMObject_hook *> children;<pre name="code" class="cpp">std::vector<NVMObject *> *hooks;不知道和上面什么关系<pre name="code" class="cpp">EventQueue *eventQueue;<pre name="code" class="cpp">GlobalEventQueue *globalEventQueue;
std::ostream *debugStream;TagGenerator *tagGen;HookType hookType, currentHookType;void AddHookUnique( std::vector<NVMObject *>& list, NVMObject *hook );ncycle_t MAX( const ncycle_t, const ncycle_t );ncycle_t MIN( const ncycle_t, const ncycle_t );
0 0
- NVMain运行机制深入了解之一
- NVMain运行机制深入了解之二
- NVMain运行机制深入了解之三
- NVMain运行机制深入了解之四
- NVMain运行机制深入了解之五
- NVMain运行机制深入了解之六
- NVMain运行机制深入了解之七
- NVMain运行机制深入了解之八
- NVMain运行机制
- 深入了解Java之一
- cocos2d-x 3.0深入了解之一
- 深入jsp运行机制
- 深入理解JavaScript运行机制
- 深入理解JavaScript运行机制
- 5分钟深入spark运行机制
- 深入理解struts的运行机制
- 深入理解 new 的运行机制
- 5分钟深入spark运行机制
- CStatic类简介
- 【UNIX】什么是标准IO
- AngularJS —— 使用 ngResource、RESTful APIs 和 Spring MVC 框架提交数据
- 第二遍看《thinking in C++》感触
- hdu 1241 Oil Deposits
- NVMain运行机制深入了解之一
- 使用集合操作,随机生成50个数字(整数),每个数字的范围是[10,50],统计出现次数最多的数字及其个数,并将每个数字机器出现的次数打印出来,打印是按照数字的升序排列
- CString::Format出现的Buffer too small错误
- 第十三周项目五字符串操作(1)统计字母A出现的次数
- 一些软件设计的原则
- www.fentonlanes.com/home.html
- 第十三周 项目4:(2)字符数组排序
- 烟花三月下扬州
- CString::GetLength()获得字节数的正确方法介绍