summaryrefslogtreecommitdiff
path: root/src/intersim/module.cpp
diff options
context:
space:
mode:
authorDongdong Li <[email protected]>2013-11-22 15:38:36 -0800
committerAndrew Boktor <[email protected]>2014-08-14 13:50:59 -0700
commitef8a5521e440baa2f86d468cdc9078f54ec7c0c0 (patch)
treec1627660cc01983067eb5d9b09fb82b4e06d9983 /src/intersim/module.cpp
parentbdc0e550448f04c7c8f030b7421209bae37e651d (diff)
Delete Intersim
Code Review Issue: 113001 [git-p4: depot-paths = "//depot/gpgpu_sim_research/fermi/distribution/": change = 17414]
Diffstat (limited to 'src/intersim/module.cpp')
-rw-r--r--src/intersim/module.cpp63
1 files changed, 0 insertions, 63 deletions
diff --git a/src/intersim/module.cpp b/src/intersim/module.cpp
deleted file mode 100644
index e0a2289..0000000
--- a/src/intersim/module.cpp
+++ /dev/null
@@ -1,63 +0,0 @@
-#include "booksim.hpp"
-#include <iostream>
-#include <stdlib.h>
-
-#include "module.hpp"
-
-Module::Module( )
-{
-}
-
-Module::Module( Module *parent, const string& name )
-{
- SetName( parent, name );
-}
-
-void Module::_AddChild( Module *child )
-{
- _children.push_back( child );
-}
-
-void Module::SetName( Module *parent, const string& name )
-{
- _name = name;
-
- if ( parent ) {
- parent->_AddChild( this );
- _fullname = parent->_fullname + "/" + name;
- } else {
- _fullname = name;
- }
-}
-
-void Module::DisplayHierarchy( int level ) const
-{
- vector<Module *>::const_iterator mod_iter;
-
- for ( int l = 0; l < level; l++ ) {
- cout << " ";
- }
-
- cout << _name << endl;
-
- for ( mod_iter = _children.begin( );
- mod_iter != _children.end( ); mod_iter++ ) {
- (*mod_iter)->DisplayHierarchy( level + 1 );
- }
-}
-
-void Module::Error( const string& msg ) const
-{
- cout << "Error in " << _fullname << " : " << msg << endl;
- exit( -1 );
-}
-
-void Module::Debug( const string& msg ) const
-{
- cout << "Debug (" << _fullname << ") : " << msg << endl;
-}
-
-void Module::Display( ) const
-{
- cout << "Display method not implemented for " << _fullname << endl;
-}