A Discrete-Event Network Simulator
API
Public Member Functions | Private Member Functions | Private Attributes | List of all members
ns3::DsrMainHelper Class Reference

Helper class that adds DSR routing to nodes. More...

#include "dsr-main-helper.h"

Public Member Functions

 DsrMainHelper ()
 Create an DsrMainHelper that makes life easier for people who want to install DSR routing to nodes. More...
 
 DsrMainHelper (const DsrMainHelper &)
 Construct an DsrMainHelper from another previously initialized instance (Copy Constructor). More...
 
 ~DsrMainHelper ()
 
void Install (DsrHelper &dsrHelper, NodeContainer nodes)
 Install routing to the nodes. More...
 
void SetDsrHelper (DsrHelper &dsrHelper)
 Set the helper class. More...
 

Private Member Functions

void Install (Ptr< Node > node)
 Install routing to a node. More...
 
DsrMainHelperoperator= (const DsrMainHelper &o)
 Assignment operator declared private and not implemented to disallow assignment and prevent the compiler from happily inserting its own. More...
 

Private Attributes

const DsrHelperm_dsrHelper
 helper class More...
 

Detailed Description

Helper class that adds DSR routing to nodes.

Definition at line 48 of file dsr-main-helper.h.

Constructor & Destructor Documentation

◆ DsrMainHelper() [1/2]

ns3::DsrMainHelper::DsrMainHelper ( )

Create an DsrMainHelper that makes life easier for people who want to install DSR routing to nodes.

Definition at line 47 of file dsr-main-helper.cc.

References NS_LOG_FUNCTION.

◆ ~DsrMainHelper()

ns3::DsrMainHelper::~DsrMainHelper ( )

Definition at line 59 of file dsr-main-helper.cc.

References m_dsrHelper, and NS_LOG_FUNCTION.

◆ DsrMainHelper() [2/2]

ns3::DsrMainHelper::DsrMainHelper ( const DsrMainHelper o)

Construct an DsrMainHelper from another previously initialized instance (Copy Constructor).

Definition at line 53 of file dsr-main-helper.cc.

References ns3::DsrHelper::Copy(), m_dsrHelper, and NS_LOG_FUNCTION.

Member Function Documentation

◆ Install() [1/2]

void ns3::DsrMainHelper::Install ( DsrHelper dsrHelper,
NodeContainer  nodes 
)

Install routing to the nodes.

Parameters
dsrHelperThe DSR helper class
nodesthe collection of nodes

Definition at line 77 of file dsr-main-helper.cc.

References ns3::DsrHelper::Copy(), m_dsrHelper, first::nodes, and NS_LOG_DEBUG.

Referenced by RoutingExperiment::Run(), and RoutingHelper::SetupRoutingProtocol().

◆ Install() [2/2]

void ns3::DsrMainHelper::Install ( Ptr< Node node)
private

Install routing to a node.

Parameters
nodethe node to install DSR routing

Definition at line 89 of file dsr-main-helper.cc.

References ns3::DsrHelper::Create(), m_dsrHelper, NS_LOG_FUNCTION, and ns3::dsr::DsrRouting::SetNode().

◆ operator=()

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

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

Parameters
osource object to assign
Returns
DsrHelper object

Definition at line 66 of file dsr-main-helper.cc.

References ns3::DsrHelper::Copy(), and m_dsrHelper.

◆ SetDsrHelper()

void ns3::DsrMainHelper::SetDsrHelper ( DsrHelper dsrHelper)

Set the helper class.

Parameters
dsrHelperthe DSR helper class

Definition at line 103 of file dsr-main-helper.cc.

References ns3::DsrHelper::Copy(), m_dsrHelper, and NS_LOG_FUNCTION.

Member Data Documentation

◆ m_dsrHelper

const DsrHelper* ns3::DsrMainHelper::m_dsrHelper
private

helper class

Definition at line 87 of file dsr-main-helper.h.

Referenced by DsrMainHelper(), Install(), operator=(), SetDsrHelper(), and ~DsrMainHelper().


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