LEFT | RIGHT |
1 /* -*- Mode: C++; c-file-style: "gnu"; indent-tabs-mode:nil; -*- */ | 1 /* -*- Mode: C++; c-file-style: "gnu"; indent-tabs-mode:nil; -*- */ |
2 /* | 2 /* |
3 * Copyright (c) 2008,2009 IITP RAS | 3 * Copyright (c) 2008,2009 IITP RAS |
4 * | 4 * |
5 * This program is free software; you can redistribute it and/or modify | 5 * This program is free software; you can redistribute it and/or modify |
6 * it under the terms of the GNU General Public License version 2 as | 6 * it under the terms of the GNU General Public License version 2 as |
7 * published by the Free Software Foundation; | 7 * published by the Free Software Foundation; |
8 * | 8 * |
9 * This program is distributed in the hope that it will be useful, | 9 * This program is distributed in the hope that it will be useful, |
10 * but WITHOUT ANY WARRANTY; without even the implied warranty of | 10 * but WITHOUT ANY WARRANTY; without even the implied warranty of |
(...skipping 15 matching lines...) Expand all Loading... |
26 NS_LOG_COMPONENT_DEFINE ("MeshL2RoutingProtocol"); | 26 NS_LOG_COMPONENT_DEFINE ("MeshL2RoutingProtocol"); |
27 | 27 |
28 namespace ns3 { | 28 namespace ns3 { |
29 | 29 |
30 NS_OBJECT_ENSURE_REGISTERED (MeshL2RoutingProtocol); | 30 NS_OBJECT_ENSURE_REGISTERED (MeshL2RoutingProtocol); |
31 | 31 |
32 TypeId | 32 TypeId |
33 MeshL2RoutingProtocol::GetTypeId (void) | 33 MeshL2RoutingProtocol::GetTypeId (void) |
34 { | 34 { |
35 static TypeId tid = TypeId ("ns3::MeshL2RoutingProtocol") | 35 static TypeId tid = TypeId ("ns3::MeshL2RoutingProtocol") |
36 .SetParent<Object> (); | 36 .SetParent<Object> (); |
37 return tid; | 37 return tid; |
38 } | 38 } |
39 | 39 |
40 MeshL2RoutingProtocol::~MeshL2RoutingProtocol () | 40 MeshL2RoutingProtocol::~MeshL2RoutingProtocol () |
41 { | 41 { |
42 } | 42 } |
43 | 43 |
44 void | 44 void |
45 MeshL2RoutingProtocol::SetMeshPoint (Ptr<MeshPointDevice> mp) | 45 MeshL2RoutingProtocol::SetMeshPoint (Ptr<MeshPointDevice> mp) |
46 { | 46 { |
47 m_mp = mp; | 47 m_mp = mp; |
48 } | 48 } |
49 | 49 |
50 Ptr<MeshPointDevice> MeshL2RoutingProtocol::GetMeshPoint () const | 50 Ptr<MeshPointDevice> |
| 51 MeshL2RoutingProtocol::GetMeshPoint () const |
51 { | 52 { |
52 return m_mp; | 53 return m_mp; |
53 } | 54 } |
54 | 55 |
55 } // namespace ns3 | 56 } // namespace ns3 |
LEFT | RIGHT |