Helper class that adds ns3::Ipv4ListRouting objects. More...
#include "ipv4-list-routing-helper.h"
Public Member Functions | |
Ipv4ListRoutingHelper () | |
Ipv4ListRoutingHelper (const Ipv4ListRoutingHelper &o) | |
Construct an Ipv4ListRoutingHelper from another previously initialized instance (Copy Constructor). | |
~Ipv4ListRoutingHelper () override | |
void | Add (const Ipv4RoutingHelper &routing, int16_t priority) |
Ipv4ListRoutingHelper * | Copy () const override |
Ptr< Ipv4RoutingProtocol > | Create (Ptr< Node > node) const override |
Ipv4ListRoutingHelper & | operator= (const Ipv4ListRoutingHelper &)=delete |
Public Member Functions inherited from ns3::Ipv4RoutingHelper | |
virtual | ~Ipv4RoutingHelper () |
Private Attributes | |
std::list< std::pair< const Ipv4RoutingHelper *, int16_t > > | m_list |
Container for pairs of Ipv4RoutingHelper pointer / priority. | |
Additional Inherited Members | |
Static Public Member Functions inherited from ns3::Ipv4RoutingHelper | |
template<class T > | |
static Ptr< T > | GetRouting (Ptr< Ipv4RoutingProtocol > protocol) |
Request a specified routing protocol <T> from Ipv4RoutingProtocol protocol. | |
static void | PrintNeighborCacheAllAt (Time printTime, Ptr< OutputStreamWrapper > stream, Time::Unit unit=Time::S) |
prints the neighbor cache of all nodes at a particular time. | |
static void | PrintNeighborCacheAllEvery (Time printInterval, Ptr< OutputStreamWrapper > stream, Time::Unit unit=Time::S) |
prints the neighbor cache of all nodes at regular intervals specified by user. | |
static void | PrintNeighborCacheAt (Time printTime, Ptr< Node > node, Ptr< OutputStreamWrapper > stream, Time::Unit unit=Time::S) |
prints the neighbor cache of a node at a particular time. | |
static void | PrintNeighborCacheEvery (Time printInterval, Ptr< Node > node, Ptr< OutputStreamWrapper > stream, Time::Unit unit=Time::S) |
prints the neighbor cache of a node at regular intervals specified by user. | |
static void | PrintRoutingTableAllAt (Time printTime, Ptr< OutputStreamWrapper > stream, Time::Unit unit=Time::S) |
prints the routing tables of all nodes at a particular time. | |
static void | PrintRoutingTableAllEvery (Time printInterval, Ptr< OutputStreamWrapper > stream, Time::Unit unit=Time::S) |
prints the routing tables of all nodes at regular intervals specified by user. | |
static void | PrintRoutingTableAt (Time printTime, Ptr< Node > node, Ptr< OutputStreamWrapper > stream, Time::Unit unit=Time::S) |
prints the routing tables of a node at a particular time. | |
static void | PrintRoutingTableEvery (Time printInterval, Ptr< Node > node, Ptr< OutputStreamWrapper > stream, Time::Unit unit=Time::S) |
prints the routing tables of a node at regular intervals specified by user. | |
Helper class that adds ns3::Ipv4ListRouting objects.
This class is expected to be used in conjunction with ns3::InternetStackHelper::SetRoutingHelper
Definition at line 27 of file ipv4-list-routing-helper.h.
ns3::Ipv4ListRoutingHelper::Ipv4ListRoutingHelper | ( | ) |
Definition at line 16 of file ipv4-list-routing-helper.cc.
Referenced by Copy().
|
override |
Definition at line 20 of file ipv4-list-routing-helper.cc.
References m_list.
ns3::Ipv4ListRoutingHelper::Ipv4ListRoutingHelper | ( | const Ipv4ListRoutingHelper & | o | ) |
Construct an Ipv4ListRoutingHelper from another previously initialized instance (Copy Constructor).
o | object to be copied |
Definition at line 28 of file ipv4-list-routing-helper.cc.
References m_list.
void ns3::Ipv4ListRoutingHelper::Add | ( | const Ipv4RoutingHelper & | routing, |
int16_t | priority ) |
routing | a routing helper |
priority | the priority of the associated helper |
Store in the internal list a reference to the input routing helper and associated priority. These helpers will be used later by the ns3::Ipv4ListRoutingHelper::Create method to create an ns3::Ipv4ListRouting object and add in it routing protocols created with the helpers.
Definition at line 43 of file ipv4-list-routing-helper.cc.
References ns3::Ipv4RoutingHelper::Copy(), and m_list.
Referenced by Ipv4DeduplicationPerformanceTest::DoRun(), Ipv4DeduplicationTest::DoRun(), ns3::InternetStackHelper::Initialize(), and Experiment::Run().
|
overridevirtual |
This method is mainly for internal use by the other helpers; clients are expected to free the dynamic memory allocated by this method
Implements ns3::Ipv4RoutingHelper.
Definition at line 37 of file ipv4-list-routing-helper.cc.
References Ipv4ListRoutingHelper().
|
overridevirtual |
node | the node on which the routing protocol will run |
This method will be called by ns3::InternetStackHelper::Install
Implements ns3::Ipv4RoutingHelper.
Definition at line 49 of file ipv4-list-routing-helper.cc.
References ns3::CreateObject(), list, and m_list.
|
delete |
|
private |
Container for pairs of Ipv4RoutingHelper pointer / priority.
Definition at line 82 of file ipv4-list-routing-helper.h.
Referenced by Ipv4ListRoutingHelper(), ~Ipv4ListRoutingHelper(), Add(), and Create().