add a few missing ns3:: prefixes in TypeId names.

This commit is contained in:
Mathieu Lacage
2008-04-10 11:50:08 -07:00
parent 267a3ca69d
commit 696859e936
4 changed files with 14 additions and 8 deletions

View File

@@ -52,7 +52,7 @@ NS_OBJECT_ENSURE_REGISTERED (RandomPropagationLossModel);
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 @@ NS_OBJECT_ENSURE_REGISTERED (FriisPropagationLossModel);
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 @@ NS_OBJECT_ENSURE_REGISTERED (LogDistancePropagationLossModel);
TypeId
LogDistancePropagationLossModel::GetTypeId (void)
{
static TypeId tid = TypeId ("LogDistancePropagationLossModel")
static TypeId tid = TypeId ("ns3::LogDistancePropagationLossModel")
.SetParent<PropagationLossModel> ()
.AddConstructor<LogDistancePropagationLossModel> ()
.AddAttribute ("Exponent",

View File

@@ -30,9 +30,8 @@ namespace ns3 {
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 @@ private:
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 (),

View File

@@ -29,7 +29,7 @@ Scheduler::~Scheduler ()
TypeId
Scheduler::GetTypeId (void)
{
static TypeId tid = TypeId ("Scheduler")
static TypeId tid = TypeId ("ns3::Scheduler")
.SetParent<Object> ()
;
return tid;

View File

@@ -50,6 +50,9 @@ std::cout << "SIMU TRACE " << x << std::endl;
namespace ns3 {
/**
* \brief private implementation detail of the Simulator API.
*/
class SimulatorPrivate : public Object
{
public:
@@ -100,11 +103,13 @@ private:
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",