A Discrete-Event Network Simulator
API
dot11s-installer.h
Go to the documentation of this file.
1 /*
2  * Copyright (c) 2008,2009 IITP RAS
3  *
4  * This program is free software; you can redistribute it and/or modify
5  * it under the terms of the GNU General Public License version 2 as
6  * published by the Free Software Foundation;
7  *
8  * This program is distributed in the hope that it will be useful,
9  * but WITHOUT ANY WARRANTY; without even the implied warranty of
10  * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
11  * GNU General Public License for more details.
12  *
13  * You should have received a copy of the GNU General Public License
14  * along with this program; if not, write to the Free Software
15  * Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA
16  *
17  * Authors: Kirill Andreev <andreev@iitp.ru>
18  */
19 
20 #ifndef DOT11S_STACK_INSTALLER_H
21 #define DOT11S_STACK_INSTALLER_H
22 
23 #include "ns3/mesh-stack-installer.h"
24 
25 namespace ns3
26 {
27 
32 class Dot11sStack : public MeshStack
33 {
34  public:
39  static TypeId GetTypeId();
40 
44  Dot11sStack();
45 
49  ~Dot11sStack() override;
50 
55  void DoDispose() override;
56 
62  bool InstallStack(Ptr<MeshPointDevice> mp) override;
63 
70  void Report(const Ptr<MeshPointDevice> mp, std::ostream&) override;
71 
76  void ResetStats(const Ptr<MeshPointDevice> mp) override;
77 
78  private:
80 };
81 
82 } // namespace ns3
83 
84 #endif
Helper class to allow easy installation of 802.11s stack.
static TypeId GetTypeId()
Get the type ID.
~Dot11sStack() override
Destroy a Dot11sStack() installer helper.
void DoDispose() override
Break any reference cycles in the installer helper.
void Report(const Ptr< MeshPointDevice > mp, std::ostream &) override
Iterate through the referenced devices and protocols and print their statistics.
void ResetStats(const Ptr< MeshPointDevice > mp) override
Reset the statistics on the referenced devices and protocols.
bool InstallStack(Ptr< MeshPointDevice > mp) override
Install an 802.11s stack.
Dot11sStack()
Create a Dot11sStack() installer helper.
Mac48Address m_root
root
an EUI-48 address
Definition: mac48-address.h:46
Prototype for class, which helps to install MAC-layer routing stack to ns3::MeshPointDevice.
Smart pointer class similar to boost::intrusive_ptr.
Definition: ptr.h:78
a unique identifier for an interface.
Definition: type-id.h:60
Every class exported by the ns3 library is enclosed in the ns3 namespace.