A Discrete-Event Network Simulator
API
Loading...
Searching...
No Matches
mesh-l2-routing-protocol.cc
Go to the documentation of this file.
1/*
2 * Copyright (c) 2008,2009 IITP RAS
3 *
4 * SPDX-License-Identifier: GPL-2.0-only
5 *
6 * Authors: Kirill Andreev <andreev@iitp.ru>
7 * Pavel Boyko <boyko@iitp.ru>
8 */
9
11
12#include "mesh-point-device.h"
13
14#include "ns3/log.h"
15
16namespace ns3
17{
18
19NS_LOG_COMPONENT_DEFINE("MeshL2RoutingProtocol");
20
21NS_OBJECT_ENSURE_REGISTERED(MeshL2RoutingProtocol);
22
23TypeId
25{
26 static TypeId tid =
27 TypeId("ns3::MeshL2RoutingProtocol").SetParent<Object>().SetGroupName("Mesh");
28 return tid;
29}
30
35
36void
41
44{
45 return m_mp;
46}
47
48} // namespace ns3
~MeshL2RoutingProtocol() override
virtual D-tor for subclasses
void SetMeshPoint(Ptr< MeshPointDevice > mp)
Set host mesh point, analog of SetNode (...) methods for upper layer protocols.
static TypeId GetTypeId()
Get the type ID.
Ptr< MeshPointDevice > GetMeshPoint() const
Each mesh protocol must be installed on the mesh point to work.
Ptr< MeshPointDevice > m_mp
Host mesh point.
A base class which provides memory management and object aggregation.
Definition object.h:78
Smart pointer class similar to boost::intrusive_ptr.
a unique identifier for an interface.
Definition type-id.h:48
TypeId SetParent(TypeId tid)
Set the parent TypeId.
Definition type-id.cc:1001
#define NS_LOG_COMPONENT_DEFINE(name)
Define a Log component with a specific name.
Definition log.h:191
#define NS_OBJECT_ENSURE_REGISTERED(type)
Register an Object subclass with the TypeId system.
Definition object-base.h:35
Every class exported by the ns3 library is enclosed in the ns3 namespace.