ndnSIM-v2: Initial implementation
- Name, name::Components, Interest, Data now use ndn-cxx
- Ptr is replaced with shared_ptr for ndn-cxx structures
Credits for the change also to Mickey Sweat, Wentao Shang, and Alex Afanasyev
diff --git a/model/ndn-global-router.cpp b/model/ndn-global-router.cpp
index f44a088..19d5654 100644
--- a/model/ndn-global-router.cpp
+++ b/model/ndn-global-router.cpp
@@ -22,12 +22,9 @@
#include "ns3/ndn-l3-protocol.hpp"
#include "ns3/ndn-face.hpp"
-#include "ns3/ndn-name.hpp"
#include "ns3/channel.h"
-using namespace boost;
-
namespace ns3 {
namespace ndn {
@@ -70,7 +67,7 @@
}
void
-GlobalRouter::AddLocalPrefix(Ptr<Name> prefix)
+GlobalRouter::AddLocalPrefix(shared_ptr<Name> prefix)
{
m_localPrefixes.push_back(prefix);
}
@@ -78,7 +75,7 @@
void
GlobalRouter::AddIncidency(Ptr<Face> face, Ptr<GlobalRouter> gr)
{
- m_incidencies.push_back(make_tuple(this, face, gr));
+ m_incidencies.push_back(boost::make_tuple(this, face, gr));
}
GlobalRouter::IncidencyList&