build with the new TraceContextElement API

This commit is contained in:
Mathieu Lacage committed 2007-08-06 19:40:18 +02:00
1 parent b0f9c20240
commit bc55e550a3
20 files changed
+350 -126

No files matched your search

+13 -5
View File
@@ -25,7 +25,7 @@
#include "ns3/object.h"
#include "ns3/callback.h"
#include "ns3/array-trace-resolver.h"
#include "ns3/trace-context-element.h"
namespace ns3 {
@@ -37,6 +37,18 @@ class Packet;
class Address;
class CompositeTraceResolver;
class NodeNetDeviceIndex : public TraceContextElement
{
public:
NodeNetDeviceIndex ();
NodeNetDeviceIndex (uint32_t index);
uint32_t Get (void) const;
void Print (std::ostream &os) const;
static uint16_t GetUid (void);
private:
uint32_t m_index;
};
/**
* \brief A network Node.
*
@@ -58,7 +70,6 @@ class Node : public Object
{
public:
static const InterfaceId iid;
typedef ArrayTraceResolver<Ptr<NetDevice> >::Index NetDeviceIndex;
/**
* Must be invoked by subclasses only.
@@ -204,9 +215,6 @@ private:
void Construct (void);
TraceResolver *CreateDevicesTraceResolver (const TraceContext &context);
enum TraceSource {
DEVICES
};
struct ProtocolHandlerEntry {
ProtocolHandler handler;
uint16_t protocol;