NS-3 based Named Data Networking (NDN) simulator
ndnSIM: NDN, CCN, CCNx, content centric networks
API Documentation
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Groups Pages
ns3::ndn::GlobalRouter Class Reference

Class representing global router interface for ndnSIM. More...

#include <ndn-global-router.h>

Inheritance diagram for ns3::ndn::GlobalRouter:
Collaboration diagram for ns3::ndn::GlobalRouter:

Public Types

typedef boost::tuple< Ptr
< GlobalRouter >, Ptr< Face >
, Ptr< GlobalRouter > > 
Incidency
 Graph edge.
 
typedef std::list< IncidencyIncidencyList
 List of graph edges.
 
typedef std::list< Ptr< Name > > LocalPrefixList
 List of locally exported prefixes.
 

Public Member Functions

 GlobalRouter ()
 Default constructor.
 
uint32_t GetId () const
 Get numeric ID of the node (internally assigned)
 
Ptr< L3ProtocolGetL3Protocol () const
 Helper function to get smart pointer to ndn::L3Protocol object (basically, self)
 
void AddLocalPrefix (Ptr< Name > prefix)
 Add new locally exported prefix. More...
 
void AddIncidency (Ptr< Face > face, Ptr< GlobalRouter > ndn)
 Add edge to the node. More...
 
IncidencyListGetIncidencies ()
 Get list of edges that are connected to this node.
 
const LocalPrefixListGetLocalPrefixes () const
 Get list of locally exported prefixes.
 

Static Public Member Functions

static TypeId GetTypeId ()
 Interface ID. More...
 

Protected Member Functions

virtual void NotifyNewAggregate ()
 Notify when the object is aggregated to another object (e.g., Node)
 

Detailed Description

Class representing global router interface for ndnSIM.

Doxygen introspection did not find any typical Config paths.
No Attributes are defined for this type.
No TraceSources are defined for this type.

Definition at line 46 of file ndn-global-router.h.

Member Function Documentation

void ns3::ndn::GlobalRouter::AddIncidency ( Ptr< Face face,
Ptr< GlobalRouter ndn 
)

Add edge to the node.

Parameters
faceFace of the edge
ndnGlobalRouter of another node

Definition at line 83 of file ndn-global-router.cc.

Referenced by ns3::ndn::GlobalRoutingHelper::Install().

void ns3::ndn::GlobalRouter::AddLocalPrefix ( Ptr< Name prefix)

Add new locally exported prefix.

Parameters
prefixPrefix

Definition at line 77 of file ndn-global-router.cc.

TypeId ns3::ndn::GlobalRouter::GetTypeId ( void  )
static

Interface ID.

Returns
interface ID

Definition at line 39 of file ndn-global-router.cc.


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