22 #include "ns3/ipv4-nix-vector-routing.h"
32 : m_agentFactory (o.m_agentFactory)
46 agent->SetNode (node);
62 rp->PrintRoutingPath (source, dest, stream, unit);
Ipv4 addresses are stored in host order in this class.
Access to the IPv4 forwarding table, interfaces, and configuration.
virtual Ptr< Ipv4RoutingProtocol > GetRoutingProtocol(void) const =0
Get the routing protocol to be used by this Ipv4 stack.
Helper class that adds Nix-vector routing to nodes.
Ipv4NixVectorHelper()
Construct an Ipv4NixVectorHelper to make life easier while adding Nix-vector routing to nodes.
void PrintRoutingPathAt(Time printTime, Ptr< Node > source, Ipv4Address dest, Ptr< OutputStreamWrapper > stream, Time::Unit unit=Time::S)
prints the routing path for a source and destination at a particular time.
Ipv4NixVectorHelper * Copy(void) const
static void PrintRoute(Ptr< Node > source, Ipv4Address dest, Ptr< OutputStreamWrapper > stream, Time::Unit unit=Time::S)
prints the routing path for the source and destination.
ObjectFactory m_agentFactory
Object factory.
virtual Ptr< Ipv4RoutingProtocol > Create(Ptr< Node > node) const
Nix-vector routing protocol.
Ptr< Object > Create(void) const
Create an Object instance of the configured TypeId.
void SetTypeId(TypeId tid)
Set the TypeId of the Objects to be created by this factory.
void AggregateObject(Ptr< Object > other)
Aggregate two Objects together.
Ptr< T > GetObject(void) const
Get a pointer to the requested aggregated Object.
Smart pointer class similar to boost::intrusive_ptr.
static EventId Schedule(Time const &delay, FUNC f, Ts &&... args)
Schedule an event to expire after delay.
Simulation virtual time values and global simulation resolution.
Unit
The unit to use to interpret a number representing time.
#define NS_ASSERT(condition)
At runtime, in debugging builds, if this condition is not true, the program prints the source file,...
Every class exported by the ns3 library is enclosed in the ns3 namespace.