src/common/trace-resolver.cc
changeset 1330 d67fce6d56f8
parent 1329 fc842b2faece
child 1333 c0d66de933e9
--- a/src/common/trace-resolver.cc	Fri Aug 10 14:28:52 2007 +0200
+++ b/src/common/trace-resolver.cc	Fri Aug 10 14:43:15 2007 +0200
@@ -22,11 +22,30 @@
 
 namespace ns3 {
 
+TraceResolver::TraceResolver ()
+  : m_count (1)
+{}
 
 TraceResolver::~TraceResolver ()
 {}
 
 void 
+TraceResolver::Ref (void)
+{
+  m_count++;
+}
+void 
+TraceResolver::Unref (void)
+{
+  m_count--;
+  if (m_count == 0)
+    {
+      delete this;
+    }
+}
+
+
+void 
 TraceResolver::Connect (std::string path, CallbackBase const &cb, const TraceContext &context)
 {}