summaryrefslogtreecommitdiff
path: root/src/mem/ruby/common/NetDest.hh
diff options
context:
space:
mode:
authorNathan Binkert <nate@binkert.org>2010-06-10 23:17:07 -0700
committerNathan Binkert <nate@binkert.org>2010-06-10 23:17:07 -0700
commit006818aeea6176c4500c5f7414e9f2a822c77062 (patch)
tree74adbd6cc14951943bd6eafc4aba2fb98be7a526 /src/mem/ruby/common/NetDest.hh
parentbc87fa30d72df7db6265be50b2c39dc218076f9f (diff)
downloadgem5-006818aeea6176c4500c5f7414e9f2a822c77062.tar.xz
ruby: get rid of Vector and use STL
add a couple of helper functions to base for deleteing all pointers in a container and outputting containers to a stream
Diffstat (limited to 'src/mem/ruby/common/NetDest.hh')
-rw-r--r--src/mem/ruby/common/NetDest.hh8
1 files changed, 4 insertions, 4 deletions
diff --git a/src/mem/ruby/common/NetDest.hh b/src/mem/ruby/common/NetDest.hh
index a8d0009d7..3fe87f69b 100644
--- a/src/mem/ruby/common/NetDest.hh
+++ b/src/mem/ruby/common/NetDest.hh
@@ -35,8 +35,8 @@
#define __MEM_RUBY_COMMON_NETDEST_HH__
#include <iostream>
+#include <vector>
-#include "mem/gems_common/Vector.hh"
#include "mem/protocol/MachineType.hh"
#include "mem/ruby/common/Global.hh"
#include "mem/ruby/common/Set.hh"
@@ -89,12 +89,12 @@ class NetDest
bool isEmpty() const;
// For Princeton Network
- Vector<NodeID> getAllDest();
+ std::vector<NodeID> getAllDest();
MachineID smallestElement() const;
MachineID smallestElement(MachineType machine) const;
- void setSize();
+ void resize();
int getSize() const { return m_bits.size(); }
// get element for a index
@@ -119,7 +119,7 @@ class NetDest
return index;
}
- Vector <Set> m_bits; // a Vector of bit vectors - i.e. Sets
+ std::vector<Set> m_bits; // a vector of bit vectors - i.e. Sets
};
inline std::ostream&