Class representing global router interface for ndnSIM. More...
#include <ndn-global-router.hpp>
Public Types | |
typedef std::tuple< Ptr< GlobalRouter >, shared_ptr< Face >, Ptr< GlobalRouter > > | Incidency |
Graph edge. More... | |
typedef std::list< Incidency > | IncidencyList |
List of graph edges. More... | |
typedef std::list< shared_ptr< Name > > | LocalPrefixList |
List of locally exported prefixes. More... | |
Public Member Functions | |
GlobalRouter () | |
Default constructor. More... | |
uint32_t | GetId () const |
Get numeric ID of the node (internally assigned) More... | |
Ptr< L3Protocol > | GetL3Protocol () const |
Helper function to get smart pointer to ndn::L3Protocol object (basically, self) More... | |
void | AddLocalPrefix (shared_ptr< Name > prefix) |
Add new locally exported prefix. More... | |
void | AddIncidency (shared_ptr< Face > face, Ptr< GlobalRouter > ndn) |
Add edge to the node. More... | |
IncidencyList & | GetIncidencies () |
Get list of edges that are connected to this node. More... | |
const LocalPrefixList & | GetLocalPrefixes () const |
Get list of locally exported prefixes. More... | |
Static Public Member Functions | |
static TypeId | GetTypeId () |
Interface ID. More... | |
static void | clear () |
Clear global state. More... | |
Protected Member Functions | |
virtual void | NotifyNewAggregate () |
Notify when the object is aggregated to another object (e.g., Node) More... | |
Class representing global router interface for ndnSIM.
Introspection did not find any typical Config paths.
No Attributes are defined for this type.
No TraceSources are defined for this type.
Size of this type is 88 bytes (on a 64-bit architecture).
Definition at line 44 of file ndn-global-router.hpp.
typedef std::tuple<Ptr<GlobalRouter>, shared_ptr<Face>, Ptr<GlobalRouter> > ns3::ndn::GlobalRouter::Incidency |
Graph edge.
Definition at line 49 of file ndn-global-router.hpp.
typedef std::list<Incidency> ns3::ndn::GlobalRouter::IncidencyList |
List of graph edges.
Definition at line 53 of file ndn-global-router.hpp.
typedef std::list<shared_ptr<Name> > ns3::ndn::GlobalRouter::LocalPrefixList |
List of locally exported prefixes.
Definition at line 57 of file ndn-global-router.hpp.
ns3::ndn::GlobalRouter::GlobalRouter | ( | ) |
Default constructor.
Definition at line 41 of file ndn-global-router.cpp.
|
static |
uint32_t ns3::ndn::GlobalRouter::GetId | ( | ) | const |
Get numeric ID of the node (internally assigned)
Definition at line 57 of file ndn-global-router.cpp.
Ptr< L3Protocol > ns3::ndn::GlobalRouter::GetL3Protocol | ( | ) | const |
Helper function to get smart pointer to ndn::L3Protocol object (basically, self)
Definition at line 63 of file ndn-global-router.cpp.
void ns3::ndn::GlobalRouter::AddLocalPrefix | ( | shared_ptr< Name > | prefix | ) |
Add new locally exported prefix.
prefix | Prefix |
Definition at line 69 of file ndn-global-router.cpp.
void ns3::ndn::GlobalRouter::AddIncidency | ( | shared_ptr< Face > | face, |
Ptr< GlobalRouter > | ndn | ||
) |
Add edge to the node.
face | Face of the edge |
ndn | GlobalRouter of another node |
Definition at line 75 of file ndn-global-router.cpp.
Referenced by ns3::ndn::GlobalRoutingHelper::Install().
GlobalRouter::IncidencyList & ns3::ndn::GlobalRouter::GetIncidencies | ( | ) |
Get list of edges that are connected to this node.
Definition at line 81 of file ndn-global-router.cpp.
const GlobalRouter::LocalPrefixList & ns3::ndn::GlobalRouter::GetLocalPrefixes | ( | ) | const |
Get list of locally exported prefixes.
Definition at line 87 of file ndn-global-router.cpp.
|
static |
Clear global state.
Definition at line 93 of file ndn-global-router.cpp.
|
protectedvirtual |
Notify when the object is aggregated to another object (e.g., Node)
Definition at line 48 of file ndn-global-router.cpp.