utils/print-trace-sources.cc
changeset 1400 382b2a36384c
parent 1399 5945e92014e2
child 1538 7f18d8c94d10
--- a/utils/print-trace-sources.cc	Thu Aug 30 13:58:15 2007 +0200
+++ b/utils/print-trace-sources.cc	Thu Aug 30 14:25:09 2007 +0200
@@ -55,7 +55,7 @@
       os << "///" << std::endl;
       os << "/// The path to this trace source is: " << i->path << "." << std::endl;
       os << "///" << std::endl;
-      if (i->context.AvailableBegin () == i->context.AvailableEnd ())
+      if (i->context.Begin ().IsLast ())
         {
           os << "/// No data can be extracted from \\p arg1 with ns3::TraceContext::GetElement." << std::endl;
         }
@@ -63,9 +63,9 @@
         {
           os << "/// The following classes can be extracted from \\p arg1 with " << std::endl;
           os << "/// ns3::TraceContext::GetElement:" << std::endl;
-          for (TraceContext::Iterator m = i->context.AvailableBegin (); m != i->context.AvailableEnd (); m++)
+          for (TraceContext::Iterator m = i->context.Begin (); !m.IsLast (); m.Next ())
             {
-              os << "///  - " << (*m) << std::endl;
+              os << "///  - " << m.Get () << std::endl;
             }
         }
       os << "void TraceSinkCallback" << z << " (const TraceContext & arg1" ;