Index: src/spectrum/model/single-model-spectrum-channel.cc |
=================================================================== |
--- a/src/spectrum/model/single-model-spectrum-channel.cc |
+++ b/src/spectrum/model/single-model-spectrum-channel.cc |
@@ -34,6 +34,7 @@ |
#include <ns3/antenna-model.h> |
#include <ns3/angles.h> |
+#include <algorithm> |
#include "single-model-spectrum-channel.h" |
@@ -103,6 +104,17 @@ |
void |
+SingleModelSpectrumChannel::RemoveRx (Ptr<SpectrumPhy> phy) |
+{ |
+ NS_LOG_FUNCTION (this << phy); |
+ auto it = std::find (begin (m_phyList), end (m_phyList), phy); |
+ if (it != std::end (m_phyList)) |
+ { |
+ m_phyList.erase (it); |
+ } |
+} |
+ |
+void |
SingleModelSpectrumChannel::AddRx (Ptr<SpectrumPhy> phy) |
{ |
NS_LOG_FUNCTION (this << phy); |