From 26d46a960d3fe5339ab7a1179988e4be92ea90be Mon Sep 17 00:00:00 2001 From: Mathieu Lacage Date: Fri, 30 May 2008 11:11:00 -0700 Subject: [PATCH] fix a couple of XXX --- src/simulator/simulator.cc | 4 ++-- src/simulator/simulator.h | 6 +++++- src/simulator/time.cc | 1 - 3 files changed, 7 insertions(+), 4 deletions(-) diff --git a/src/simulator/simulator.cc b/src/simulator/simulator.cc index 91a23862c..00af60a65 100644 --- a/src/simulator/simulator.cc +++ b/src/simulator/simulator.cc @@ -115,8 +115,8 @@ SimulatorPrivate::GetTypeId (void) .AddAttribute ("Scheduler", "The Scheduler used to handle all simulation events.", PointerValue (), - // XXX: allow getting the scheduler too. - MakePointerAccessor (&SimulatorPrivate::SetScheduler), + MakePointerAccessor (&SimulatorPrivate::SetScheduler, + &SimulatorPrivate::GetScheduler), MakePointerChecker ()) ; return tid; diff --git a/src/simulator/simulator.h b/src/simulator/simulator.h index 15f000cf5..892f9eb2f 100644 --- a/src/simulator/simulator.h +++ b/src/simulator/simulator.h @@ -61,7 +61,11 @@ public: */ static void EnableParallelSimulation (void); /** - * XXX + * \param scheduler a new event scheduler + * + * The event scheduler can be set at any time: the events scheduled + * in the previous scheduler will be transfered to the new scheduler + * before we start to use it. */ static void SetScheduler (Ptr scheduler); diff --git a/src/simulator/time.cc b/src/simulator/time.cc index 7dc3a8646..a25770277 100644 --- a/src/simulator/time.cc +++ b/src/simulator/time.cc @@ -271,7 +271,6 @@ std::istream& operator>> (std::istream& is, Time & time) else { is.setstate (std::ios_base::failbit); - // XXX: problem ? } return is; }