Rietveld Code Review Tool
Help | Bug tracker | Discussion group | Source code | Sign in
(673)

Unified Diff: src/spectrum/model/single-model-spectrum-channel.cc

Issue 328170043: NS-3 GSoC 2017 LTE CA handover milestone 2 and 3
Patch Set: NS-3 GSoC 2017 LTE CA handover milestone 2 and 3 Created 6 years, 7 months ago
Use n/p to move between diff chunks; N/P to move between comments. Please Sign in to add in-line comments.
Jump to:
View side-by-side diff with in-line comments
Download patch
« no previous file with comments | « src/spectrum/model/single-model-spectrum-channel.h ('k') | src/spectrum/model/spectrum-channel.h » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
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);
« no previous file with comments | « src/spectrum/model/single-model-spectrum-channel.h ('k') | src/spectrum/model/spectrum-channel.h » ('j') | no next file with comments »

Powered by Google App Engine
RSS Feeds Recent Issues | This issue
This is Rietveld f62528b