Class representing global router interface for ndnSIM. More...
#include <ndn-global-router.h>
Public Types | |
typedef boost::tuple< Ptr < GlobalRouter >, Ptr< Face > , Ptr< GlobalRouter > > | Incidency |
Graph edge. | |
typedef std::list< Incidency > | IncidencyList |
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< L3Protocol > | GetL3Protocol () 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... | |
IncidencyList & | GetIncidencies () |
Get list of edges that are connected to this node. | |
const LocalPrefixList & | GetLocalPrefixes () 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) | |
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.
void ns3::ndn::GlobalRouter::AddIncidency | ( | Ptr< Face > | face, |
Ptr< GlobalRouter > | ndn | ||
) |
Add edge to the node.
face | Face of the edge |
ndn | GlobalRouter 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.
prefix | Prefix |
Definition at line 77 of file ndn-global-router.cc.
|
static |