diff options
author | Nathan Binkert <nate@binkert.org> | 2010-06-10 23:17:07 -0700 |
---|---|---|
committer | Nathan Binkert <nate@binkert.org> | 2010-06-10 23:17:07 -0700 |
commit | 006818aeea6176c4500c5f7414e9f2a822c77062 (patch) | |
tree | 74adbd6cc14951943bd6eafc4aba2fb98be7a526 /src/mem/ruby/network/garnet/fixed-pipeline/Switch_d.hh | |
parent | bc87fa30d72df7db6265be50b2c39dc218076f9f (diff) | |
download | gem5-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/Switch_d.hh')
-rw-r--r-- | src/mem/ruby/network/garnet/fixed-pipeline/Switch_d.hh | 5 |
1 files changed, 3 insertions, 2 deletions
diff --git a/src/mem/ruby/network/garnet/fixed-pipeline/Switch_d.hh b/src/mem/ruby/network/garnet/fixed-pipeline/Switch_d.hh index 09973b82d..83817b353 100644 --- a/src/mem/ruby/network/garnet/fixed-pipeline/Switch_d.hh +++ b/src/mem/ruby/network/garnet/fixed-pipeline/Switch_d.hh @@ -32,6 +32,7 @@ #define SWITCH_D_H #include <iostream> +#include <vector> #include "mem/ruby/network/garnet/NetworkHeader.hh" #include "mem/ruby/common/Consumer.hh" @@ -63,8 +64,8 @@ private: int m_num_inports; double m_crossbar_activity; Router_d *m_router; - Vector<flitBuffer_d *> m_switch_buffer; - Vector<OutputUnit_d *> m_output_unit; + std::vector<flitBuffer_d *> m_switch_buffer; + std::vector<OutputUnit_d *> m_output_unit; }; #endif |