fix a couple of XXX

This commit is contained in:
Mathieu Lacage
2008-05-30 11:11:00 -07:00
parent 2a323473e4
commit 26d46a960d
3 changed files with 7 additions and 4 deletions

View File

@@ -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<Scheduler> ())
;
return tid;

View File

@@ -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> scheduler);

View File

@@ -271,7 +271,6 @@ std::istream& operator>> (std::istream& is, Time & time)
else
{
is.setstate (std::ios_base::failbit);
// XXX: problem ?
}
return is;
}