A Discrete-Event Network Simulator
API
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Groups Pages
ns3::Ipv4ListRoutingHelper Class Reference

Helper class that adds ns3::Ipv4ListRouting objects. More...

#include <ipv4-list-routing-helper.h>

+ Inheritance diagram for ns3::Ipv4ListRoutingHelper:

Public Member Functions

 Ipv4ListRoutingHelper (const Ipv4ListRoutingHelper &)
 Construct an Ipv4ListRoutingHelper from another previously initialized instance (Copy Constructor).
 
void Add (const Ipv4RoutingHelper &routing, int16_t priority)
 
Ipv4ListRoutingHelperCopy (void) const
 
virtual Ptr< Ipv4RoutingProtocolCreate (Ptr< Node > node) const
 
- Public Member Functions inherited from ns3::Ipv4RoutingHelper
void PrintRoutingTableAllAt (Time printTime, Ptr< OutputStreamWrapper > stream) const
 prints the routing tables of all nodes at a particular time. More...
 
void PrintRoutingTableAllEvery (Time printInterval, Ptr< OutputStreamWrapper > stream) const
 prints the routing tables of all nodes at regular intervals specified by user. More...
 
void PrintRoutingTableAt (Time printTime, Ptr< Node > node, Ptr< OutputStreamWrapper > stream) const
 prints the routing tables of a node at a particular time. More...
 
void PrintRoutingTableEvery (Time printInterval, Ptr< Node > node, Ptr< OutputStreamWrapper > stream) const
 prints the routing tables of a node at regular intervals specified by user. More...
 

Private Member Functions

Ipv4ListRoutingHelperoperator= (const Ipv4ListRoutingHelper &o)
 Assignment operator declared private and not implemented to disallow assignment and prevent the compiler from happily inserting its own. More...
 

Private Attributes

std::list< std::pair< const
Ipv4RoutingHelper *, int16_t > > 
m_list
 

Detailed Description

Helper class that adds ns3::Ipv4ListRouting objects.

This class is expected to be used in conjunction with ns3::InternetStackHelper::SetRoutingHelper

Definition at line 35 of file ipv4-list-routing-helper.h.

Member Function Documentation

void ns3::Ipv4ListRoutingHelper::Add ( const Ipv4RoutingHelper routing,
int16_t  priority 
)
Parameters
routinga routing helper
prioritythe 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 55 of file ipv4-list-routing-helper.cc.

References ns3::Ipv4RoutingHelper::Copy().

Ipv4ListRoutingHelper * ns3::Ipv4ListRoutingHelper::Copy ( void  ) const
virtual
Returns
pointer to clone of this Ipv4ListRoutingHelper

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 49 of file ipv4-list-routing-helper.cc.

Ptr< Ipv4RoutingProtocol > ns3::Ipv4ListRoutingHelper::Create ( Ptr< Node node) const
virtual
Parameters
nodethe node on which the routing protocol will run
Returns
a newly-created routing protocol

This method will be called by ns3::InternetStackHelper::Install

Implements ns3::Ipv4RoutingHelper.

Definition at line 61 of file ipv4-list-routing-helper.cc.

Ipv4ListRoutingHelper& ns3::Ipv4ListRoutingHelper::operator= ( const Ipv4ListRoutingHelper o)
private

Assignment operator declared private and not implemented to disallow assignment and prevent the compiler from happily inserting its own.


The documentation for this class was generated from the following files: