summaryrefslogtreecommitdiff
path: root/src/mem/ruby/network/garnet/fixed-pipeline/SWallocator_d.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/network/garnet/fixed-pipeline/SWallocator_d.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/network/garnet/fixed-pipeline/SWallocator_d.hh')
-rw-r--r--src/mem/ruby/network/garnet/fixed-pipeline/SWallocator_d.hh13
1 files changed, 7 insertions, 6 deletions
diff --git a/src/mem/ruby/network/garnet/fixed-pipeline/SWallocator_d.hh b/src/mem/ruby/network/garnet/fixed-pipeline/SWallocator_d.hh
index 95a7dad1c..db175e445 100644
--- a/src/mem/ruby/network/garnet/fixed-pipeline/SWallocator_d.hh
+++ b/src/mem/ruby/network/garnet/fixed-pipeline/SWallocator_d.hh
@@ -32,6 +32,7 @@
#define SW_ALLOCATOR_D_H
#include <iostream>
+#include <vector>
#include "mem/ruby/network/garnet/NetworkHeader.hh"
#include "mem/ruby/common/Consumer.hh"
@@ -68,12 +69,12 @@ private:
double m_local_arbiter_activity, m_global_arbiter_activity;
Router_d *m_router;
- Vector<int > m_round_robin_outport;
- Vector<int > m_round_robin_inport;
- Vector<Vector<bool > > m_port_req;
- Vector<Vector<int > > m_vc_winners; // a list for each outport
- Vector<InputUnit_d *> m_input_unit;
- Vector<OutputUnit_d *> m_output_unit;
+ std::vector<int> m_round_robin_outport;
+ std::vector<int> m_round_robin_inport;
+ std::vector<std::vector<bool> > m_port_req;
+ std::vector<std::vector<int> > m_vc_winners; // a list for each outport
+ std::vector<InputUnit_d *> m_input_unit;
+ std::vector<OutputUnit_d *> m_output_unit;
};
#endif