add a few missing ns3:: prefixes in TypeId names.
authorMathieu Lacage <mathieu.lacage@sophia.inria.fr>
Thu, 10 Apr 2008 11:50:08 -0700
changeset 2943 cdbcd43a019c
parent 2942 e37b7279e41e
child 2944 d8806baadedb
add a few missing ns3:: prefixes in TypeId names.
src/devices/wifi/propagation-loss-model.cc
src/node/node-list.cc
src/simulator/scheduler.cc
src/simulator/simulator.cc
--- a/src/devices/wifi/propagation-loss-model.cc	Thu Apr 10 11:11:55 2008 -0700
+++ b/src/devices/wifi/propagation-loss-model.cc	Thu Apr 10 11:50:08 2008 -0700
@@ -52,7 +52,7 @@
 TypeId 
 RandomPropagationLossModel::GetTypeId (void)
 {
-  static TypeId tid = TypeId ("RandomPropagationLossModel")
+  static TypeId tid = TypeId ("ns3::RandomPropagationLossModel")
     .SetParent<PropagationLossModel> ()
     .AddConstructor<RandomPropagationLossModel> ()
     .AddAttribute ("Variable", "XXX",
@@ -82,7 +82,7 @@
 TypeId 
 FriisPropagationLossModel::GetTypeId (void)
 {
-  static TypeId tid = TypeId ("FriisPropagationLossModel")
+  static TypeId tid = TypeId ("ns3::FriisPropagationLossModel")
     .SetParent<PropagationLossModel> ()
     .AddConstructor<FriisPropagationLossModel> ()
     .AddAttribute ("Lambda", 
@@ -196,7 +196,7 @@
 TypeId
 LogDistancePropagationLossModel::GetTypeId (void)
 {
-  static TypeId tid = TypeId ("LogDistancePropagationLossModel")
+  static TypeId tid = TypeId ("ns3::LogDistancePropagationLossModel")
     .SetParent<PropagationLossModel> ()
     .AddConstructor<LogDistancePropagationLossModel> ()
     .AddAttribute ("Exponent",
--- a/src/node/node-list.cc	Thu Apr 10 11:11:55 2008 -0700
+++ b/src/node/node-list.cc	Thu Apr 10 11:50:08 2008 -0700
@@ -30,9 +30,8 @@
 
 NS_LOG_COMPONENT_DEFINE ("NodeList");
 
-
 /**
- * The private node list used by the static-based API
+ * \brief private implementation detail of the NodeList API.
  */
 class NodeListPriv : public Object
 {
@@ -55,10 +54,12 @@
   std::vector<Ptr<Node> > m_nodes;
 };
 
+NS_OBJECT_ENSURE_REGISTERED (NodeListPriv);
+
 TypeId 
 NodeListPriv::GetTypeId (void)
 {
-  static TypeId tid = TypeId ("NodeListPriv")
+  static TypeId tid = TypeId ("ns3::NodeListPriv")
     .SetParent<Object> ()
     .AddAttribute ("NodeList", "The list of all nodes created during the simulation.",
                    ObjectVector (),
--- a/src/simulator/scheduler.cc	Thu Apr 10 11:11:55 2008 -0700
+++ b/src/simulator/scheduler.cc	Thu Apr 10 11:50:08 2008 -0700
@@ -29,7 +29,7 @@
 TypeId 
 Scheduler::GetTypeId (void)
 {
-  static TypeId tid = TypeId ("Scheduler")
+  static TypeId tid = TypeId ("ns3::Scheduler")
     .SetParent<Object> ()
     ;
   return tid;
--- a/src/simulator/simulator.cc	Thu Apr 10 11:11:55 2008 -0700
+++ b/src/simulator/simulator.cc	Thu Apr 10 11:50:08 2008 -0700
@@ -50,6 +50,9 @@
 namespace ns3 {
 
 
+/**
+ * \brief private implementation detail of the Simulator API.
+ */
 class SimulatorPrivate : public Object
 {
 public:
@@ -100,11 +103,13 @@
   int m_unscheduledEvents;
 };
 
+NS_OBJECT_ENSURE_REGISTERED (SimulatorPrivate);
+
 
 TypeId
 SimulatorPrivate::GetTypeId (void)
 {
-  static TypeId tid = TypeId ("SimulatorPrivate")
+  static TypeId tid = TypeId ("ns3::SimulatorPrivate")
     .SetParent<Object> ()
     .AddConstructor<SimulatorPrivate> ()
     .AddAttribute ("Scheduler",