remove old trace system

This commit is contained in:
Mathieu Lacage committed 2008-03-02 22:53:11 +01:00
1 parent df41aef5da
commit bdba1171f3
2 files changed
-119

No files matched your search

-59
View File
@@ -20,7 +20,6 @@
* Mathieu Lacage <mathieu.lacage@sophia.inria.fr>,
*/
#include "ns3/composite-trace-resolver.h"
#include "ns3/simulator.h"
#include "ns3/object-vector.h"
#include "ns3/config.h"
@@ -29,34 +28,6 @@
namespace ns3 {
NodeListIndex::NodeListIndex ()
: m_index (0)
{}
NodeListIndex::NodeListIndex (uint32_t index)
: m_index (index)
{}
void
NodeListIndex::Print (std::ostream &os)
{
os << "nodeid=" << m_index;
}
uint16_t
NodeListIndex::GetUid (void)
{
static uint16_t uid = AllocateUid<NodeListIndex> ("NodeListIndex");
return uid;
}
uint32_t
NodeListIndex::Get (void) const
{
return m_index;
}
std::string
NodeListIndex::GetTypeName (void) const
{
return "ns3::NodeListIndex";
}
/**
* The private node list used by the static-based API
@@ -71,7 +42,6 @@ public:
uint32_t Add (Ptr<Node> node);
NodeList::Iterator Begin (void) const;
NodeList::Iterator End (void) const;
Ptr<TraceResolver> GetTraceResolver (void) const;
Ptr<Node> GetNode (uint32_t n);
uint32_t GetNNodes (void);
@@ -166,15 +136,6 @@ NodeListPriv::GetNode (uint32_t n)
return m_nodes[n];
}
Ptr<TraceResolver>
NodeListPriv::GetTraceResolver (void) const
{
Ptr<CompositeTraceResolver> resolver = Create<CompositeTraceResolver> ();
resolver->AddArray ("nodes", Begin (), End (), NodeListIndex ());
return resolver;
}
}
/**
@@ -205,24 +166,4 @@ NodeList::GetNode (uint32_t n)
return NodeListPriv::Get ()->GetNode (n);
}
void
NodeList::Connect (std::string name, const CallbackBase &cb)
{
NodeListPriv::Get ()->GetTraceResolver ()->Connect (name, cb, TraceContext ());
}
void
NodeList::Disconnect (std::string name, const CallbackBase &cb)
{
NodeListPriv::Get ()->GetTraceResolver ()->Disconnect (name, cb);
}
void
NodeList::TraceAll (std::ostream &os)
{
NodeListPriv::Get ()->GetTraceResolver ()->TraceAll (os, TraceContext ());
}
Ptr<TraceResolver>
NodeList::GetTraceResolver (void)
{
return NodeListPriv::Get ()->GetTraceResolver ();
}
}//namespace ns3