systemc: Stop using the sc_string_view type.
[gem5.git] / src / systemc / core / channel.hh
index 7ce4375725b84bf1b7b079aea6ad7afd137e6077..6111e3c16957366b60d667962eb0bd423794a874 100644 (file)
@@ -30,6 +30,8 @@
 #ifndef __SYSTEMC_CORE_CHANNEL_HH__
 #define __SYSTEMC_CORE_CHANNEL_HH__
 
+#include <set>
+
 #include "systemc/core/list.hh"
 #include "systemc/ext/core/sc_prim.hh"
 
@@ -39,9 +41,9 @@ namespace sc_gem5
 class Channel : public ListNode
 {
   public:
-    Channel(sc_core::sc_prim_channel *_sc_chan) : _sc_chan(_sc_chan) {}
+    Channel(sc_core::sc_prim_channel *_sc_chan);
 
-    virtual ~Channel() {}
+    virtual ~Channel();
 
     void requestUpdate();
     void asyncRequestUpdate();
@@ -53,6 +55,8 @@ class Channel : public ListNode
     sc_core::sc_prim_channel *_sc_chan;
 };
 
+extern std::set<Channel *> allChannels;
+
 } // namespace sc_gem5
 
 #endif  //__SYSTEMC_CORE_CHANNEL_HH__