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

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

#include <ipv6-static-routing-helper.h>

+ Inheritance diagram for ns3::Ipv6StaticRoutingHelper:

Public Member Functions

 Ipv6StaticRoutingHelper ()
 Constructor.
 
 Ipv6StaticRoutingHelper (const Ipv6StaticRoutingHelper &)
 Construct an Ipv6ListRoutingHelper from another previously initialized instance (Copy Constructor).
 
void AddMulticastRoute (Ptr< Node > n, Ipv6Address source, Ipv6Address group, Ptr< NetDevice > input, NetDeviceContainer output)
 Add a multicast route to a node and net device using explicit Ptr<Node> and Ptr<NetDevice>
 
void AddMulticastRoute (std::string n, Ipv6Address source, Ipv6Address group, Ptr< NetDevice > input, NetDeviceContainer output)
 Add a multicast route to a node and device using a name string previously associated to the node using the Object Name Service and a Ptr<NetDevice>
 
void AddMulticastRoute (Ptr< Node > n, Ipv6Address source, Ipv6Address group, std::string inputName, NetDeviceContainer output)
 Add a multicast route to a node and device using a Ptr<Node> and a name string previously associated to the device using the Object Name Service.
 
void AddMulticastRoute (std::string nName, Ipv6Address source, Ipv6Address group, std::string inputName, NetDeviceContainer output)
 Add a multicast route to a node and device using name strings previously associated to both the node and device using the Object Name Service.
 
Ipv6StaticRoutingHelperCopy (void) const
 
virtual Ptr< Ipv6RoutingProtocolCreate (Ptr< Node > node) const
 
Ptr< Ipv6StaticRoutingGetStaticRouting (Ptr< Ipv6 > ipv6) const
 Get Ipv6StaticRouting pointer from IPv6 stack. More...
 
- Public Member Functions inherited from ns3::Ipv6RoutingHelper
virtual ~Ipv6RoutingHelper ()
 Destroy an Ipv6 Ipv6RoutingHelper. More...
 
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

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

Detailed Description

Helper class that adds ns3::Ipv6StaticRouting objects.

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

Definition at line 41 of file ipv6-static-routing-helper.h.

Member Function Documentation

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

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::Ipv6RoutingHelper.

Definition at line 47 of file ipv6-static-routing-helper.cc.

References Ipv6StaticRoutingHelper().

Ptr< Ipv6RoutingProtocol > ns3::Ipv6StaticRoutingHelper::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::Ipv6RoutingHelper.

Definition at line 53 of file ipv6-static-routing-helper.cc.

Ptr< Ipv6StaticRouting > ns3::Ipv6StaticRoutingHelper::GetStaticRouting ( Ptr< Ipv6 ipv6) const

Get Ipv6StaticRouting pointer from IPv6 stack.

Parameters
ipv6Ipv6 pointer
Returns
Ipv6StaticRouting pointer or 0 if not exist

Definition at line 59 of file ipv6-static-routing-helper.cc.

References NS_ASSERT_MSG, NS_LOG_FUNCTION, and NS_LOG_LOGIC.

Referenced by AddMulticastRoute(), ns3::Ipv6InterfaceContainer::SetDefaultRoute(), and ns3::Ipv6InterfaceContainer::SetRouter().

Ipv6StaticRoutingHelper& ns3::Ipv6StaticRoutingHelper::operator= ( const Ipv6StaticRoutingHelper 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: