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

#include <dsr-helper.h>

+ Collaboration diagram for ns3::DsrHelper:

Public Member Functions

 DsrHelper ()
 Create an DsrHelper that makes life easier for people who want to install Dsr routing to nodes. More...
 
 DsrHelper (const DsrHelper &)
 Construct an DsrHelper from another previously initialized instance (Copy Constructor). More...
 
 ~DsrHelper ()
 
DsrHelperCopy (void) const
 
Ptr< ns3::dsr::DsrRoutingCreate (Ptr< Node > node) const
 
void Set (std::string name, const AttributeValue &value)
 

Private Member Functions

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

Private Attributes

ObjectFactory m_agentFactory
 
NodeContainer m_nodes
 

Detailed Description

Definition at line 44 of file dsr-helper.h.

Constructor & Destructor Documentation

ns3::DsrHelper::DsrHelper ( )

Create an DsrHelper that makes life easier for people who want to install Dsr routing to nodes.

Definition at line 50 of file dsr-helper.cc.

References m_agentFactory, NS_LOG_FUNCTION, and ns3::ObjectFactory::SetTypeId().

Referenced by Copy().

+ Here is the call graph for this function:

+ Here is the caller graph for this function:

ns3::DsrHelper::~DsrHelper ( )

Definition at line 62 of file dsr-helper.cc.

References NS_LOG_FUNCTION.

ns3::DsrHelper::DsrHelper ( const DsrHelper o)

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

Definition at line 56 of file dsr-helper.cc.

References NS_LOG_FUNCTION.

Member Function Documentation

DsrHelper * ns3::DsrHelper::Copy ( void  ) const
Internal:
Returns
pointer to clone of this DsrHelper

This method is mainly for internal use by the other helpers; clients are expected to free the dynamic memory allocated by this method

Definition at line 68 of file dsr-helper.cc.

References DsrHelper(), and NS_LOG_FUNCTION.

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

+ Here is the call graph for this function:

+ Here is the caller graph for this function:

Ptr< ns3::dsr::DsrRouting > ns3::DsrHelper::Create ( Ptr< Node node) const
Parameters
nodethe node on which the routing protocol will run
Returns
a newly-created L4 protocol

Definition at line 75 of file dsr-helper.cc.

References ns3::Object::AggregateObject(), ns3::ObjectFactory::Create(), ns3::Object::GetObject(), m_agentFactory, ns3::MakeCallback(), NS_LOG_FUNCTION, ns3::dsr::DsrRouting::Send(), and ns3::dsr::DsrRouting::SetDownTarget().

Referenced by ns3::DsrMainHelper::Install().

+ Here is the call graph for this function:

+ Here is the caller graph for this function:

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

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

Internal:
void ns3::DsrHelper::Set ( std::string  name,
const AttributeValue value 
)

Definition at line 92 of file dsr-helper.cc.

References m_agentFactory, and ns3::ObjectFactory::Set().

+ Here is the call graph for this function:

Member Data Documentation

ObjectFactory ns3::DsrHelper::m_agentFactory
private

Definition at line 79 of file dsr-helper.h.

Referenced by Create(), DsrHelper(), and Set().

NodeContainer ns3::DsrHelper::m_nodes
private

Definition at line 80 of file dsr-helper.h.


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