From 69f2911e04ffb1b19eef1fafb8c040af271f656e Mon Sep 17 00:00:00 2001 From: Tor Aamodt Date: Thu, 15 Jul 2010 18:09:46 -0800 Subject: creating branch for adding support for CUDA 3.x and Fermi [git-p4: depot-paths = "//depot/gpgpu_sim_research/fermi/distribution/": change = 6829] --- src/intersim/module.hpp | 33 +++++++++++++++++++++++++++++++++ 1 file changed, 33 insertions(+) create mode 100644 src/intersim/module.hpp (limited to 'src/intersim/module.hpp') diff --git a/src/intersim/module.hpp b/src/intersim/module.hpp new file mode 100644 index 0000000..5acf0a2 --- /dev/null +++ b/src/intersim/module.hpp @@ -0,0 +1,33 @@ +#ifndef _MODULE_HPP_ +#define _MODULE_HPP_ + +#include "booksim.hpp" + +#include +#include + +class Module { +protected: + string _name; + string _fullname; + + vector _children; + + void _AddChild( Module *child ); + +public: + Module( ); + Module( Module *parent, const string& name ); + virtual ~Module( ) {} + + void SetName( Module *parent, const string& name ); + + void DisplayHierarchy( int level = 0 ) const; + + void Error( const string& msg ) const; + void Debug( const string& msg ) const; + + virtual void Display( ) const; +}; + +#endif -- cgit v1.3