get rid of implicit conversion of Attribute to/from Ptr<>. Replace this with an explicit Pointer class.

This commit is contained in:
Mathieu Lacage
2008-04-09 12:15:24 -07:00
parent d4cd3c92fd
commit e110fea8ff
16 changed files with 78 additions and 393 deletions

View File

@@ -23,6 +23,7 @@
#include "event-impl.h"
#include "ns3/ptr.h"
#include "ns3/pointer.h"
#include "ns3/assert.h"
@@ -108,10 +109,10 @@ SimulatorPrivate::GetTypeId (void)
.AddConstructor<SimulatorPrivate> ()
.AddAttribute ("Scheduler",
"XXX",
Ptr<Scheduler> (0),
Pointer (),
// XXX: allow getting the scheduler too.
MakePtrAccessor (&SimulatorPrivate::SetScheduler),
MakePtrChecker<Scheduler> ())
MakePointerAccessor (&SimulatorPrivate::SetScheduler),
MakePointerChecker<Scheduler> ())
;
return tid;
}