model+apps+utils+examples+ci+docs: Update code for changes in ns-2.23
- Replace removed RandomVariable with RandomVariableStream
- Replace deprecated usages of AddTraceSource
- Update changed LogComponent interface
ci: This commit also integrates a script for Jenkins and Travis CI to
clone NS-3 and pybindgen repositories, so the code can be built.
docs: Update to reflect new home of ndnSIM and related sources
Change-Id: Ic14e1269bf15366b0041fd670c577053b6704dc7
Refs: #3122, #3123
diff --git a/model/cs/content-store-impl.hpp b/model/cs/content-store-impl.hpp
index 9c55053..5765120 100644
--- a/model/cs/content-store-impl.hpp
+++ b/model/cs/content-store-impl.hpp
@@ -137,6 +137,9 @@
return super::getPolicy();
}
+public:
+ typedef void (*CsEntryCallback)(Ptr<const Entry>);
+
private:
void
SetMaxSize(uint32_t maxSize);
@@ -157,8 +160,7 @@
//////////////////////////////////////////
template<class Policy>
-LogComponent
- ContentStoreImpl<Policy>::g_log = LogComponent(("ndn.cs." + Policy::GetName()).c_str());
+LogComponent ContentStoreImpl<Policy>::g_log = LogComponent(("ndn.cs." + Policy::GetName()).c_str(), __FILE__);
template<class Policy>
TypeId
@@ -177,7 +179,8 @@
.AddTraceSource("DidAddEntry",
"Trace fired every time entry is successfully added to the cache",
- MakeTraceSourceAccessor(&ContentStoreImpl<Policy>::m_didAddEntry));
+ MakeTraceSourceAccessor(&ContentStoreImpl<Policy>::m_didAddEntry),
+ "ns3::ndn::cs::ContentStoreImpl::CsEntryCallback");
return tid;
}