--- a/samples/main-grid-topology.cc Tue Jan 15 12:36:22 2008 +0100
+++ b/samples/main-grid-topology.cc Tue Jan 15 12:43:07 2008 +0100
@@ -27,7 +27,7 @@
GridTopology grid (-100, -100, 20, 5, 20);
// each object will be attached a static position.
- grid.SetMobilityModel (StaticMobilityModel::iid ());
+ grid.SetMobilityModel (StaticMobilityModel::GetTypeId ());
// finalize the setup by attaching to each object
// in the input array a position and initializing
--- a/src/common/error-model.cc Tue Jan 15 12:36:22 2008 +0100
+++ b/src/common/error-model.cc Tue Jan 15 12:43:07 2008 +0100
@@ -36,12 +36,12 @@
static TypeIdDefaultValue g_interfaceIdErrorModelDefaultValue ("ErrorModel",
"Error Model",
- ErrorModel::iid (),
+ ErrorModel::GetTypeId (),
"RateErrorModel");
NS_OBJECT_ENSURE_REGISTERED (ErrorModel);
-TypeId ErrorModel::iid (void)
+TypeId ErrorModel::GetTypeId (void)
{
static TypeId iid = TypeId ("ErrorModel")
.SetParent<Object> ();
@@ -125,7 +125,7 @@
NS_OBJECT_ENSURE_REGISTERED (RateErrorModel);
-TypeId RateErrorModel::iid (void)
+TypeId RateErrorModel::GetTypeId (void)
{
static TypeId iid = TypeId ("RateErrorModel")
.SetParent<ErrorModel> ()
@@ -246,7 +246,7 @@
NS_OBJECT_ENSURE_REGISTERED (ListErrorModel);
-TypeId ListErrorModel::iid (void)
+TypeId ListErrorModel::GetTypeId (void)
{
static TypeId iid = TypeId ("ListErrorModel")
.SetParent<ErrorModel> ()
--- a/src/common/error-model.h Tue Jan 15 12:36:22 2008 +0100
+++ b/src/common/error-model.h Tue Jan 15 12:43:07 2008 +0100
@@ -66,7 +66,7 @@
class ErrorModel : public Object
{
public:
- static TypeId iid (void);
+ static TypeId GetTypeId (void);
/**
* A factory method to generate a preconfigured default ErrorModel for use
* \return an ErrorModel smart pointer that is the default ErrorModel
@@ -136,7 +136,7 @@
class RateErrorModel : public ErrorModel
{
public:
- static TypeId iid (void);
+ static TypeId GetTypeId (void);
RateErrorModel ();
virtual ~RateErrorModel ();
@@ -202,7 +202,7 @@
class ListErrorModel : public ErrorModel
{
public:
- static TypeId iid (void);
+ static TypeId GetTypeId (void);
ListErrorModel ();
virtual ~ListErrorModel ();
--- a/src/core/interface-id-default-value.cc Tue Jan 15 12:36:22 2008 +0100
+++ b/src/core/interface-id-default-value.cc Tue Jan 15 12:43:07 2008 +0100
@@ -47,10 +47,10 @@
return true;
}
tmp = tmp.GetParent ();
- } while (tmp != Object::iid ());
+ } while (tmp != Object::GetTypeId ());
}
iid = iid.GetParent ();
- } while (iid != Object::iid ());
+ } while (iid != Object::GetTypeId ());
}
return false;
}
@@ -80,7 +80,7 @@
oss << iid.GetName ();
}
tmp = tmp.GetParent ();
- } while (tmp != Object::iid ());
+ } while (tmp != Object::GetTypeId ());
}
}
oss << ")";
--- a/src/core/object.cc Tue Jan 15 12:36:22 2008 +0100
+++ b/src/core/object.cc Tue Jan 15 12:43:07 2008 +0100
@@ -358,7 +358,7 @@
}
TypeId
-Object::iid (void)
+Object::GetTypeId (void)
{
static TypeId iid = GetObjectIid ();
return iid;
@@ -367,7 +367,7 @@
Object::Object ()
: m_count (1),
- m_iid (Object::iid ()),
+ m_iid (Object::GetTypeId ()),
m_disposed (false),
m_collecting (false),
m_next (this)
@@ -384,7 +384,7 @@
do {
NS_ASSERT (currentObject != 0);
TypeId cur = currentObject->m_iid;
- while (cur != iid && cur != Object::iid ())
+ while (cur != iid && cur != Object::GetTypeId ())
{
cur = cur.GetParent ();
}
@@ -536,7 +536,7 @@
NS_ASSERT (current != 0);
NS_LOG_LOGIC ("collect current=" << current);
TypeId cur = current->m_iid;
- while (cur != Object::iid ())
+ while (cur != Object::GetTypeId ())
{
std::string name = cur.GetName ();
std::string fullpath = path;
@@ -591,9 +591,9 @@
class BaseA : public ns3::Object
{
public:
- static ns3::TypeId iid (void) {
+ static ns3::TypeId GetTypeId (void) {
static ns3::TypeId iid = ns3::TypeId ("BaseA")
- .SetParent (Object::iid ())
+ .SetParent (Object::GetTypeId ())
.AddConstructor<BaseA> ();
return iid;
}
@@ -616,9 +616,9 @@
class DerivedA : public BaseA
{
public:
- static ns3::TypeId iid (void) {
+ static ns3::TypeId GetTypeId (void) {
static ns3::TypeId iid = ns3::TypeId ("DerivedA")
- .SetParent (BaseA::iid ())
+ .SetParent (BaseA::GetTypeId ())
.AddConstructor<DerivedA,int> ();
return iid;
}
@@ -643,9 +643,9 @@
class BaseB : public ns3::Object
{
public:
- static ns3::TypeId iid (void) {
+ static ns3::TypeId GetTypeId (void) {
static ns3::TypeId iid = ns3::TypeId ("BaseB")
- .SetParent (Object::iid ())
+ .SetParent (Object::GetTypeId ())
.AddConstructor<BaseB> ();
return iid;
}
@@ -668,9 +668,9 @@
class DerivedB : public BaseB
{
public:
- static ns3::TypeId iid (void) {
+ static ns3::TypeId GetTypeId (void) {
static ns3::TypeId iid = ns3::TypeId ("DerivedB")
- .SetParent (BaseB::iid ())
+ .SetParent (BaseB::GetTypeId ())
.AddConstructor<DerivedB,int> ()
.AddConstructor<DerivedB,int,int &> ();
return iid;
@@ -752,11 +752,11 @@
Ptr<BaseA> baseA = CreateObject<BaseA> ();
NS_TEST_ASSERT_EQUAL (baseA->QueryInterface<BaseA> (), baseA);
- NS_TEST_ASSERT_EQUAL (baseA->QueryInterface<BaseA> (DerivedA::iid ()), 0);
+ NS_TEST_ASSERT_EQUAL (baseA->QueryInterface<BaseA> (DerivedA::GetTypeId ()), 0);
NS_TEST_ASSERT_EQUAL (baseA->QueryInterface<DerivedA> (), 0);
baseA = CreateObject<DerivedA> (10);
NS_TEST_ASSERT_EQUAL (baseA->QueryInterface<BaseA> (), baseA);
- NS_TEST_ASSERT_EQUAL (baseA->QueryInterface<BaseA> (DerivedA::iid ()), baseA);
+ NS_TEST_ASSERT_EQUAL (baseA->QueryInterface<BaseA> (DerivedA::GetTypeId ()), baseA);
NS_TEST_ASSERT_UNEQUAL (baseA->QueryInterface<DerivedA> (), 0);
baseA = CreateObject<BaseA> ();
@@ -862,13 +862,13 @@
baseB->TraceDisconnect ("/$DerivedA/*", MakeCallback (&ObjectTest::BaseATrace, this));
// Test the object creation code of TypeId
- Ptr<Object> a = BaseA::iid ().CreateObject ();
+ Ptr<Object> a = BaseA::GetTypeId ().CreateObject ();
NS_TEST_ASSERT_EQUAL (a->QueryInterface<BaseA> (), a);
- NS_TEST_ASSERT_EQUAL (a->QueryInterface<BaseA> (DerivedA::iid ()), 0);
+ NS_TEST_ASSERT_EQUAL (a->QueryInterface<BaseA> (DerivedA::GetTypeId ()), 0);
NS_TEST_ASSERT_EQUAL (a->QueryInterface<DerivedA> (), 0);
- a = DerivedA::iid ().CreateObject (10);
+ a = DerivedA::GetTypeId ().CreateObject (10);
NS_TEST_ASSERT_EQUAL (a->QueryInterface<BaseA> (), a);
- NS_TEST_ASSERT_EQUAL (a->QueryInterface<BaseA> (DerivedA::iid ()), a);
+ NS_TEST_ASSERT_EQUAL (a->QueryInterface<BaseA> (DerivedA::GetTypeId ()), a);
NS_TEST_ASSERT_UNEQUAL (a->QueryInterface<DerivedA> (), 0);
--- a/src/core/object.h Tue Jan 15 12:36:22 2008 +0100
+++ b/src/core/object.h Tue Jan 15 12:43:07 2008 +0100
@@ -32,7 +32,7 @@
static struct X##type##RegistrationClass \
{ \
X##type##RegistrationClass () { \
- ns3::TypeId iid = type::iid (); \
+ ns3::TypeId iid = type::GetTypeId (); \
iid.GetParent (); \
} \
} x_##type##RegistrationVariable
@@ -135,7 +135,7 @@
class Object
{
public:
- static TypeId iid (void);
+ static TypeId GetTypeId (void);
Object ();
virtual ~Object ();
@@ -286,7 +286,7 @@
TypeId
TypeId::SetParent (void)
{
- return SetParent (T::iid ());
+ return SetParent (T::GetTypeId ());
}
template <typename T>
@@ -441,7 +441,7 @@
Ptr<T>
Object::QueryInterface () const
{
- Ptr<Object> found = DoQueryInterface (T::iid ());
+ Ptr<Object> found = DoQueryInterface (T::GetTypeId ());
if (found != 0)
{
return Ptr<T> (dynamic_cast<T *> (PeekPointer (found)));
@@ -465,7 +465,7 @@
Ptr<T> CreateObject (void)
{
Ptr<T> p = Ptr<T> (new T (), false);
- p->SetTypeId (T::iid ());
+ p->SetTypeId (T::GetTypeId ());
return p;
}
@@ -473,7 +473,7 @@
Ptr<T> CreateObject (T1 a1)
{
Ptr<T> p = Ptr<T> (new T (a1), false);
- p->SetTypeId (T::iid ());
+ p->SetTypeId (T::GetTypeId ());
return p;
}
@@ -481,7 +481,7 @@
Ptr<T> CreateObject (T1 a1, T2 a2)
{
Ptr<T> p = Ptr<T> (new T (a1, a2), false);
- p->SetTypeId (T::iid ());
+ p->SetTypeId (T::GetTypeId ());
return p;
}
@@ -489,7 +489,7 @@
Ptr<T> CreateObject (T1 a1, T2 a2, T3 a3)
{
Ptr<T> p = Ptr<T> (new T (a1, a2, a3), false);
- p->SetTypeId (T::iid ());
+ p->SetTypeId (T::GetTypeId ());
return p;
}
@@ -497,7 +497,7 @@
Ptr<T> CreateObject (T1 a1, T2 a2, T3 a3, T4 a4)
{
Ptr<T> p = Ptr<T> (new T (a1, a2, a3, a4), false);
- p->SetTypeId (T::iid ());
+ p->SetTypeId (T::GetTypeId ());
return p;
}
@@ -505,7 +505,7 @@
Ptr<T> CreateObject (T1 a1, T2 a2, T3 a3, T4 a4, T5 a5)
{
Ptr<T> p = Ptr<T> (new T (a1, a2, a3, a4, a5), false);
- p->SetTypeId (T::iid ());
+ p->SetTypeId (T::GetTypeId ());
return p;
}
@@ -513,7 +513,7 @@
Ptr<T> CreateObject (T1 a1, T2 a2, T3 a3, T4 a4, T5 a5, T6 a6)
{
Ptr<T> p = Ptr<T> (new T (a1, a2, a3, a4, a5, a6), false);
- p->SetTypeId (T::iid ());
+ p->SetTypeId (T::GetTypeId ());
return p;
}
@@ -521,7 +521,7 @@
Ptr<T> CreateObject (T1 a1, T2 a2, T3 a3, T4 a4, T5 a5, T6 a6, T7 a7)
{
Ptr<T> p = Ptr<T> (new T (a1, a2, a3, a4, a5, a6, a7), false);
- p->SetTypeId (T::iid ());
+ p->SetTypeId (T::GetTypeId ());
return p;
}
--- a/src/internet-node/arp-l3-protocol.cc Tue Jan 15 12:36:22 2008 +0100
+++ b/src/internet-node/arp-l3-protocol.cc Tue Jan 15 12:43:07 2008 +0100
@@ -38,7 +38,7 @@
NS_OBJECT_ENSURE_REGISTERED (ArpL3Protocol);
TypeId
-ArpL3Protocol::iid (void)
+ArpL3Protocol::GetTypeId (void)
{
static TypeId iid = TypeId ("ArpL3Protocol")
.SetParent<Object> ();
--- a/src/internet-node/arp-l3-protocol.h Tue Jan 15 12:36:22 2008 +0100
+++ b/src/internet-node/arp-l3-protocol.h Tue Jan 15 12:43:07 2008 +0100
@@ -40,7 +40,7 @@
class ArpL3Protocol : public Object
{
public:
- static TypeId iid (void);
+ static TypeId GetTypeId (void);
static const uint16_t PROT_NUMBER;
/**
* \brief Constructor
--- a/src/internet-node/ipv4-l3-protocol.cc Tue Jan 15 12:36:22 2008 +0100
+++ b/src/internet-node/ipv4-l3-protocol.cc Tue Jan 15 12:43:07 2008 +0100
@@ -45,7 +45,7 @@
NS_OBJECT_ENSURE_REGISTERED (Ipv4L3Protocol);
TypeId
-Ipv4L3Protocol::iid (void)
+Ipv4L3Protocol::GetTypeId (void)
{
static TypeId iid = TypeId ("Ipv4L3Protocol")
.SetParent<Object> ();
--- a/src/internet-node/ipv4-l3-protocol.h Tue Jan 15 12:36:22 2008 +0100
+++ b/src/internet-node/ipv4-l3-protocol.h Tue Jan 15 12:43:07 2008 +0100
@@ -99,7 +99,7 @@
class Ipv4L3Protocol : public Object
{
public:
- static TypeId iid (void);
+ static TypeId GetTypeId (void);
static const uint16_t PROT_NUMBER;
Ipv4L3Protocol(Ptr<Node> node);
--- a/src/internet-node/ipv4-l4-demux.cc Tue Jan 15 12:36:22 2008 +0100
+++ b/src/internet-node/ipv4-l4-demux.cc Tue Jan 15 12:43:07 2008 +0100
@@ -61,7 +61,7 @@
}
TypeId
-Ipv4L4Demux::iid (void)
+Ipv4L4Demux::GetTypeId (void)
{
static TypeId iid = TypeId ("Ipv4L4Demux")
.SetParent<Object> ();
--- a/src/internet-node/ipv4-l4-demux.h Tue Jan 15 12:36:22 2008 +0100
+++ b/src/internet-node/ipv4-l4-demux.h Tue Jan 15 12:43:07 2008 +0100
@@ -62,7 +62,7 @@
class Ipv4L4Demux : public Object
{
public:
- static TypeId iid (void);
+ static TypeId GetTypeId (void);
Ipv4L4Demux (Ptr<Node> node);
virtual ~Ipv4L4Demux();
--- a/src/mobility/grid-topology.cc Tue Jan 15 12:36:22 2008 +0100
+++ b/src/mobility/grid-topology.cc Tue Jan 15 12:43:07 2008 +0100
@@ -28,7 +28,7 @@
m_n (n),
m_deltaX (deltaX),
m_deltaY (deltaY),
- m_positionTypeId (StaticMobilityModel::iid ())
+ m_positionTypeId (StaticMobilityModel::GetTypeId ())
{}
void
--- a/src/mobility/hierarchical-mobility-model.cc Tue Jan 15 12:36:22 2008 +0100
+++ b/src/mobility/hierarchical-mobility-model.cc Tue Jan 15 12:43:07 2008 +0100
@@ -25,7 +25,7 @@
NS_OBJECT_ENSURE_REGISTERED (HierarchicalMobilityModel);
TypeId
-HierarchicalMobilityModel::iid (void)
+HierarchicalMobilityModel::GetTypeId (void)
{
static TypeId iid = TypeId ("HierarchicalMobilityModel")
.SetParent<MobilityModel> ();
--- a/src/mobility/hierarchical-mobility-model.h Tue Jan 15 12:36:22 2008 +0100
+++ b/src/mobility/hierarchical-mobility-model.h Tue Jan 15 12:43:07 2008 +0100
@@ -33,7 +33,7 @@
class HierarchicalMobilityModel : public MobilityModel
{
public:
- static TypeId iid (void);
+ static TypeId GetTypeId (void);
/**
* \param child the "relative" mobility model
--- a/src/mobility/mobility-model-notifier.cc Tue Jan 15 12:36:22 2008 +0100
+++ b/src/mobility/mobility-model-notifier.cc Tue Jan 15 12:43:07 2008 +0100
@@ -24,7 +24,7 @@
namespace ns3 {
TypeId
-MobilityModelNotifier::iid (void)
+MobilityModelNotifier::GetTypeId (void)
{
static TypeId iid = TypeId ("MobilityModelNotifier")
.SetParent<Object> ()
--- a/src/mobility/mobility-model-notifier.h Tue Jan 15 12:36:22 2008 +0100
+++ b/src/mobility/mobility-model-notifier.h Tue Jan 15 12:43:07 2008 +0100
@@ -33,7 +33,7 @@
class MobilityModelNotifier : public Object
{
public:
- static TypeId iid (void);
+ static TypeId GetTypeId (void);
/**
* Create a new position notifier
--- a/src/mobility/mobility-model.cc Tue Jan 15 12:36:22 2008 +0100
+++ b/src/mobility/mobility-model.cc Tue Jan 15 12:43:07 2008 +0100
@@ -24,7 +24,7 @@
namespace ns3 {
TypeId
-MobilityModel::iid (void)
+MobilityModel::GetTypeId (void)
{
static TypeId iid = TypeId ("MobilityModel")
.SetParent<Object> ();
--- a/src/mobility/mobility-model.h Tue Jan 15 12:36:22 2008 +0100
+++ b/src/mobility/mobility-model.h Tue Jan 15 12:43:07 2008 +0100
@@ -35,7 +35,7 @@
class MobilityModel : public Object
{
public:
- static TypeId iid (void);
+ static TypeId GetTypeId (void);
MobilityModel ();
virtual ~MobilityModel () = 0;
--- a/src/mobility/random-direction-2d-mobility-model.cc Tue Jan 15 12:36:22 2008 +0100
+++ b/src/mobility/random-direction-2d-mobility-model.cc Tue Jan 15 12:43:07 2008 +0100
@@ -111,7 +111,7 @@
}
TypeId
-RandomDirection2dMobilityModel::iid (void)
+RandomDirection2dMobilityModel::GetTypeId (void)
{
static TypeId iid = TypeId ("RandomDirection2dMobilityModel")
.SetParent<MobilityModel> ()
--- a/src/mobility/random-direction-2d-mobility-model.h Tue Jan 15 12:36:22 2008 +0100
+++ b/src/mobility/random-direction-2d-mobility-model.h Tue Jan 15 12:43:07 2008 +0100
@@ -89,7 +89,7 @@
class RandomDirection2dMobilityModel : public MobilityModel
{
public:
- static TypeId iid (void);
+ static TypeId GetTypeId (void);
/**
* Create from \valueref{RandomDirection2dSpeed},
--- a/src/mobility/random-position.cc Tue Jan 15 12:36:22 2008 +0100
+++ b/src/mobility/random-position.cc Tue Jan 15 12:43:07 2008 +0100
@@ -61,7 +61,7 @@
NS_OBJECT_ENSURE_REGISTERED (RandomPosition);
TypeId
-RandomPosition::iid (void)
+RandomPosition::GetTypeId (void)
{
static TypeId iid = TypeId ("RandomPosition")
.SetParent<Object> ();
@@ -78,7 +78,7 @@
NS_OBJECT_ENSURE_REGISTERED (RandomRectanglePosition);
TypeId
-RandomRectanglePosition::iid (void)
+RandomRectanglePosition::GetTypeId (void)
{
static TypeId iid = TypeId ("RandomRectanglePosition")
.SetParent<RandomPosition> ()
@@ -114,7 +114,7 @@
NS_OBJECT_ENSURE_REGISTERED (RandomDiscPosition);
TypeId
-RandomDiscPosition::iid (void)
+RandomDiscPosition::GetTypeId (void)
{
static TypeId iid = TypeId ("RandomDiscPosition")
.SetParent<RandomPosition> ()
--- a/src/mobility/random-position.h Tue Jan 15 12:36:22 2008 +0100
+++ b/src/mobility/random-position.h Tue Jan 15 12:43:07 2008 +0100
@@ -35,7 +35,7 @@
class RandomPosition : public Object
{
public:
- static TypeId iid (void);
+ static TypeId GetTypeId (void);
RandomPosition ();
virtual ~RandomPosition ();
/**
@@ -51,7 +51,7 @@
class RandomRectanglePosition : public RandomPosition
{
public:
- static TypeId iid (void);
+ static TypeId GetTypeId (void);
/**
* Create a random position model with construction
* values from \valueref{RandomRectanglePositionX}, and
@@ -80,7 +80,7 @@
class RandomDiscPosition : public RandomPosition
{
public:
- static TypeId iid (void);
+ static TypeId GetTypeId (void);
/**
* Create a random position model with construction
* values from \valueref{RandomDiscPositionTheta},
--- a/src/mobility/random-topology.cc Tue Jan 15 12:36:22 2008 +0100
+++ b/src/mobility/random-topology.cc Tue Jan 15 12:43:07 2008 +0100
@@ -29,13 +29,13 @@
static TypeIdDefaultValue
g_position ("RandomTopologyPositionType",
"The type of initial random position in a 3d topology.",
- RandomPosition::iid (),
+ RandomPosition::GetTypeId (),
"RandomRectanglePosition");
static TypeIdDefaultValue
g_mobility ("RandomTopologyMobilityType",
"The type of mobility model attached to an object in a 3d topology.",
- MobilityModel::iid (),
+ MobilityModel::GetTypeId (),
"StaticMobilityModel");
RandomTopology::RandomTopology ()
--- a/src/mobility/random-walk-2d-mobility-model.cc Tue Jan 15 12:36:22 2008 +0100
+++ b/src/mobility/random-walk-2d-mobility-model.cc Tue Jan 15 12:43:07 2008 +0100
@@ -130,7 +130,7 @@
}
TypeId
-RandomWalk2dMobilityModel::iid (void)
+RandomWalk2dMobilityModel::GetTypeId (void)
{
static TypeId iid = TypeId ("RandomWalkMobilityModel")
.SetParent<MobilityModel> ()
--- a/src/mobility/random-walk-2d-mobility-model.h Tue Jan 15 12:36:22 2008 +0100
+++ b/src/mobility/random-walk-2d-mobility-model.h Tue Jan 15 12:43:07 2008 +0100
@@ -115,7 +115,7 @@
class RandomWalk2dMobilityModel : public MobilityModel
{
public:
- static TypeId iid (void);
+ static TypeId GetTypeId (void);
/**
* Instantiate a set of RandomWalk parameters initialized
* with construction values from \valueref{RandomWalk2dMode},
--- a/src/mobility/random-waypoint-mobility-model.cc Tue Jan 15 12:36:22 2008 +0100
+++ b/src/mobility/random-waypoint-mobility-model.cc Tue Jan 15 12:43:07 2008 +0100
@@ -42,7 +42,7 @@
static TypeIdDefaultValue
g_position ("RandomWaypointPosition",
"A random position model used to pick the next waypoint position.",
- RandomPosition::iid (),
+ RandomPosition::GetTypeId (),
"RandomRectanglePosition");
@@ -101,7 +101,7 @@
}
TypeId
-RandomWaypointMobilityModel::iid (void)
+RandomWaypointMobilityModel::GetTypeId (void)
{
static TypeId iid = TypeId ("RandomWaypointMobilityModel")
.SetParent<MobilityModel> ()
--- a/src/mobility/random-waypoint-mobility-model.h Tue Jan 15 12:36:22 2008 +0100
+++ b/src/mobility/random-waypoint-mobility-model.h Tue Jan 15 12:43:07 2008 +0100
@@ -86,7 +86,7 @@
class RandomWaypointMobilityModel : public MobilityModel
{
public:
- static TypeId iid (void);
+ static TypeId GetTypeId (void);
/**
* Default parameters from \valueref{RandomWaypointPause},
* and, \valueref{RandomWaypointPosition}.
--- a/src/mobility/static-mobility-model.cc Tue Jan 15 12:36:22 2008 +0100
+++ b/src/mobility/static-mobility-model.cc Tue Jan 15 12:43:07 2008 +0100
@@ -24,7 +24,7 @@
NS_OBJECT_ENSURE_REGISTERED (StaticMobilityModel);
TypeId
-StaticMobilityModel::iid (void)
+StaticMobilityModel::GetTypeId (void)
{
static TypeId iid = TypeId ("StaticMobilityModel")
.SetParent<MobilityModel> ()
--- a/src/mobility/static-mobility-model.h Tue Jan 15 12:36:22 2008 +0100
+++ b/src/mobility/static-mobility-model.h Tue Jan 15 12:43:07 2008 +0100
@@ -32,7 +32,7 @@
class StaticMobilityModel : public MobilityModel
{
public:
- static TypeId iid (void);
+ static TypeId GetTypeId (void);
/**
* Create a position located at coordinates (0,0,0)
*/
--- a/src/mobility/static-speed-mobility-model.cc Tue Jan 15 12:36:22 2008 +0100
+++ b/src/mobility/static-speed-mobility-model.cc Tue Jan 15 12:43:07 2008 +0100
@@ -24,7 +24,7 @@
NS_OBJECT_ENSURE_REGISTERED (StaticSpeedMobilityModel);
-TypeId StaticSpeedMobilityModel::iid (void)
+TypeId StaticSpeedMobilityModel::GetTypeId (void)
{
static TypeId iid = TypeId ("StaticSpeedMobilityModel")
.SetParent<MobilityModel> ()
--- a/src/mobility/static-speed-mobility-model.h Tue Jan 15 12:36:22 2008 +0100
+++ b/src/mobility/static-speed-mobility-model.h Tue Jan 15 12:43:07 2008 +0100
@@ -35,7 +35,7 @@
class StaticSpeedMobilityModel : public MobilityModel
{
public:
- static TypeId iid (void);
+ static TypeId GetTypeId (void);
/**
* Create position located at coordinates (0,0,0) with
* speed (0,0,0).
--- a/src/node/channel.cc Tue Jan 15 12:36:22 2008 +0100
+++ b/src/node/channel.cc Tue Jan 15 12:43:07 2008 +0100
@@ -27,7 +27,7 @@
NS_OBJECT_ENSURE_REGISTERED (Channel);
TypeId
-Channel::iid (void)
+Channel::GetTypeId (void)
{
static TypeId iid = TypeId ("Channel")
.SetParent<Object> ();
--- a/src/node/channel.h Tue Jan 15 12:36:22 2008 +0100
+++ b/src/node/channel.h Tue Jan 15 12:43:07 2008 +0100
@@ -35,7 +35,7 @@
class Channel : public Object
{
public:
- static TypeId iid (void);
+ static TypeId GetTypeId (void);
Channel ();
Channel (std::string name);
--- a/src/node/drop-tail-queue.cc Tue Jan 15 12:36:22 2008 +0100
+++ b/src/node/drop-tail-queue.cc Tue Jan 15 12:43:07 2008 +0100
@@ -26,7 +26,7 @@
NS_OBJECT_ENSURE_REGISTERED (DropTailQueue);
-TypeId DropTailQueue::iid (void)
+TypeId DropTailQueue::GetTypeId (void)
{
static TypeId iid = TypeId ("DropTailQueue")
.SetParent<Queue> ()
--- a/src/node/drop-tail-queue.h Tue Jan 15 12:36:22 2008 +0100
+++ b/src/node/drop-tail-queue.h Tue Jan 15 12:43:07 2008 +0100
@@ -35,7 +35,7 @@
*/
class DropTailQueue : public Queue {
public:
- static TypeId iid (void);
+ static TypeId GetTypeId (void);
/**
* \brief DropTailQueue Constructor
*
--- a/src/node/ipv4.cc Tue Jan 15 12:36:22 2008 +0100
+++ b/src/node/ipv4.cc Tue Jan 15 12:43:07 2008 +0100
@@ -28,7 +28,7 @@
NS_OBJECT_ENSURE_REGISTERED (Ipv4);
TypeId
-Ipv4::iid (void)
+Ipv4::GetTypeId (void)
{
static TypeId iid = TypeId ("Ipv4")
.SetParent<Object> ();
--- a/src/node/ipv4.h Tue Jan 15 12:36:22 2008 +0100
+++ b/src/node/ipv4.h Tue Jan 15 12:43:07 2008 +0100
@@ -157,7 +157,7 @@
class Ipv4 : public Object
{
public:
- static TypeId iid (void);
+ static TypeId GetTypeId (void);
Ipv4 ();
virtual ~Ipv4 ();
--- a/src/node/net-device.cc Tue Jan 15 12:36:22 2008 +0100
+++ b/src/node/net-device.cc Tue Jan 15 12:43:07 2008 +0100
@@ -35,7 +35,7 @@
NS_OBJECT_ENSURE_REGISTERED (NetDevice);
-TypeId NetDevice::iid (void)
+TypeId NetDevice::GetTypeId (void)
{
static TypeId iid = TypeId ("NetDevice")
.SetParent<Object> ();
--- a/src/node/net-device.h Tue Jan 15 12:36:22 2008 +0100
+++ b/src/node/net-device.h Tue Jan 15 12:43:07 2008 +0100
@@ -60,7 +60,7 @@
class NetDevice : public Object
{
public:
- static TypeId iid (void);
+ static TypeId GetTypeId (void);
virtual ~NetDevice();
--- a/src/node/node.cc Tue Jan 15 12:36:22 2008 +0100
+++ b/src/node/node.cc Tue Jan 15 12:43:07 2008 +0100
@@ -32,7 +32,7 @@
NS_OBJECT_ENSURE_REGISTERED (Node);
TypeId
-Node::iid (void)
+Node::GetTypeId (void)
{
static TypeId iid = TypeId ("Node")
.SetParent<Object> ();
--- a/src/node/node.h Tue Jan 15 12:36:22 2008 +0100
+++ b/src/node/node.h Tue Jan 15 12:43:07 2008 +0100
@@ -96,7 +96,7 @@
class Node : public Object
{
public:
- static TypeId iid (void);
+ static TypeId GetTypeId (void);
/**
* Must be invoked by subclasses only.
--- a/src/node/packet-socket-factory.cc Tue Jan 15 12:36:22 2008 +0100
+++ b/src/node/packet-socket-factory.cc Tue Jan 15 12:43:07 2008 +0100
@@ -27,7 +27,7 @@
NS_OBJECT_ENSURE_REGISTERED (PacketSocketFactory);
TypeId
-PacketSocketFactory::iid (void)
+PacketSocketFactory::GetTypeId (void)
{
static TypeId iid = TypeId ("Packet")
.SetParent<SocketFactory> ();
--- a/src/node/packet-socket-factory.h Tue Jan 15 12:36:22 2008 +0100
+++ b/src/node/packet-socket-factory.h Tue Jan 15 12:43:07 2008 +0100
@@ -34,7 +34,7 @@
class PacketSocketFactory : public SocketFactory
{
public:
- static TypeId iid (void);
+ static TypeId GetTypeId (void);
PacketSocketFactory ();
--- a/src/node/queue.cc Tue Jan 15 12:36:22 2008 +0100
+++ b/src/node/queue.cc Tue Jan 15 12:43:07 2008 +0100
@@ -28,7 +28,7 @@
namespace ns3 {
static TypeIdDefaultValue g_interfaceIdDefaultValue ("Queue", "Packet Queue",
- Queue::iid (), "DropTailQueue");
+ Queue::GetTypeId (), "DropTailQueue");
NS_OBJECT_ENSURE_REGISTERED (Queue);
@@ -99,7 +99,7 @@
}
TypeId
-Queue::iid (void)
+Queue::GetTypeId (void)
{
static TypeId iid = TypeId ("Queue")
.SetParent<Object> ();
--- a/src/node/queue.h Tue Jan 15 12:36:22 2008 +0100
+++ b/src/node/queue.h Tue Jan 15 12:43:07 2008 +0100
@@ -78,7 +78,7 @@
class Queue : public Object
{
public:
- static TypeId iid (void);
+ static TypeId GetTypeId (void);
Queue ();
virtual ~Queue ();
--- a/src/node/socket-factory.cc Tue Jan 15 12:36:22 2008 +0100
+++ b/src/node/socket-factory.cc Tue Jan 15 12:43:07 2008 +0100
@@ -24,7 +24,7 @@
NS_OBJECT_ENSURE_REGISTERED (SocketFactory);
-TypeId SocketFactory::iid (void)
+TypeId SocketFactory::GetTypeId (void)
{
static TypeId iid = TypeId ("SocketFactory")
.SetParent<Object> ();
--- a/src/node/socket-factory.h Tue Jan 15 12:36:22 2008 +0100
+++ b/src/node/socket-factory.h Tue Jan 15 12:43:07 2008 +0100
@@ -47,7 +47,7 @@
class SocketFactory : public Object
{
public:
- static TypeId iid (void);
+ static TypeId GetTypeId (void);
SocketFactory ();
--- a/src/node/udp.cc Tue Jan 15 12:36:22 2008 +0100
+++ b/src/node/udp.cc Tue Jan 15 12:43:07 2008 +0100
@@ -24,7 +24,7 @@
NS_OBJECT_ENSURE_REGISTERED (Udp);
-TypeId Udp::iid (void)
+TypeId Udp::GetTypeId (void)
{
static TypeId iid = TypeId ("Udp")
.SetParent<SocketFactory> ();
--- a/src/node/udp.h Tue Jan 15 12:36:22 2008 +0100
+++ b/src/node/udp.h Tue Jan 15 12:43:07 2008 +0100
@@ -43,7 +43,7 @@
class Udp : public SocketFactory
{
public:
- static TypeId iid (void);
+ static TypeId GetTypeId (void);
Udp ();
--- a/src/routing/global-routing/global-router-interface.cc Tue Jan 15 12:36:22 2008 +0100
+++ b/src/routing/global-routing/global-router-interface.cc Tue Jan 15 12:43:07 2008 +0100
@@ -434,7 +434,7 @@
NS_OBJECT_ENSURE_REGISTERED (GlobalRouter);
TypeId
-GlobalRouter::iid (void)
+GlobalRouter::GetTypeId (void)
{
static TypeId iid = TypeId ("GlobalRouter")
.SetParent<Object> ();
--- a/src/routing/global-routing/global-router-interface.h Tue Jan 15 12:36:22 2008 +0100
+++ b/src/routing/global-routing/global-router-interface.h Tue Jan 15 12:43:07 2008 +0100
@@ -560,7 +560,7 @@
*
* @see Object::QueryInterface ()
*/
- static TypeId iid (void);
+ static TypeId GetTypeId (void);
/**
* @brief Create a Global Router class
--- a/src/routing/olsr/olsr-agent-impl.cc Tue Jan 15 12:36:22 2008 +0100
+++ b/src/routing/olsr/olsr-agent-impl.cc Tue Jan 15 12:43:07 2008 +0100
@@ -151,7 +151,7 @@
NS_OBJECT_ENSURE_REGISTERED (AgentImpl);
TypeId
-AgentImpl::iid (void)
+AgentImpl::GetTypeId (void)
{
static TypeId iid = TypeId ("OlsrAgentImpl")
.SetParent<Agent> ()
@@ -189,7 +189,7 @@
m_ipv4 = node->QueryInterface<Ipv4> ();
NS_ASSERT (m_ipv4);
- Ptr<SocketFactory> socketFactory = node->QueryInterface<SocketFactory> (Udp::iid ());
+ Ptr<SocketFactory> socketFactory = node->QueryInterface<SocketFactory> (Udp::GetTypeId ());
m_receiveSocket = socketFactory->CreateSocket ();
if (m_receiveSocket->Bind (InetSocketAddress (OLSR_PORT_NUMBER)))
--- a/src/routing/olsr/olsr-agent-impl.h Tue Jan 15 12:36:22 2008 +0100
+++ b/src/routing/olsr/olsr-agent-impl.h Tue Jan 15 12:43:07 2008 +0100
@@ -49,7 +49,7 @@
class AgentImpl : public Agent
{
public:
- static TypeId iid (void);
+ static TypeId GetTypeId (void);
AgentImpl (Ptr<Node> node);
--- a/src/routing/olsr/olsr-agent.cc Tue Jan 15 12:36:22 2008 +0100
+++ b/src/routing/olsr/olsr-agent.cc Tue Jan 15 12:43:07 2008 +0100
@@ -27,13 +27,13 @@
static TypeIdDefaultValue g_defaultImpl =
TypeIdDefaultValue ("OlsrAgentType",
"The type of OlsrAgent implementation",
- Agent::iid (),
+ Agent::GetTypeId (),
"OlsrAgentImpl");
NS_OBJECT_ENSURE_REGISTERED (Agent);
TypeId
-Agent::iid (void)
+Agent::GetTypeId (void)
{
static TypeId iid = TypeId ("OlsrAgent")
.SetParent<Object> ();
--- a/src/routing/olsr/olsr-agent.h Tue Jan 15 12:36:22 2008 +0100
+++ b/src/routing/olsr/olsr-agent.h Tue Jan 15 12:43:07 2008 +0100
@@ -45,7 +45,7 @@
class Agent : public Object
{
public:
- static TypeId iid (void);
+ static TypeId GetTypeId (void);
static Ptr<Agent> CreateDefault (Ptr<Node> node);