A Discrete-Event Network Simulator
API
Loading...
Searching...
No Matches
buildings-helper.h
Go to the documentation of this file.
1/*
2 * Copyright (c) 2012 CTTC
3 *
4 * SPDX-License-Identifier: GPL-2.0-only
5 *
6 * Author: Nicola Baldo <nbaldo@cttc.es>
7 */
8
9#ifndef BUILDINGS_HELPER_H
10#define BUILDINGS_HELPER_H
11
12#include "ns3/attribute.h"
13#include "ns3/node-container.h"
14#include "ns3/object-factory.h"
15#include "ns3/ptr.h"
16
17#include <string>
18
19namespace ns3
20{
21
22class MobilityModel;
23class Building;
24
25/**
26 * @ingroup buildings
27 *
28 * Helper used to install a MobilityBuildingInfo into a set of nodes.
29 */
31{
32 public:
33 /**
34 * Install the MobilityBuildingInfo to a node
35 *
36 * @param node the mobility model of the node to be updated
37 */
38 static void Install(Ptr<Node> node); // for any nodes
39 /**
40 * Install the MobilityBuildingInfo to the set of nodes in a NodeContainer
41 *
42 * @param c the NodeContainer including the nodes to be updated
43 */
44 static void Install(NodeContainer c); // for any nodes
45};
46
47} // namespace ns3
48
49#endif /* BUILDINGS_HELPER_H */
Helper used to install a MobilityBuildingInfo into a set of nodes.
static void Install(Ptr< Node > node)
Install the MobilityBuildingInfo to a node.
keep track of a set of node pointers.
Smart pointer class similar to boost::intrusive_ptr.
Every class exported by the ns3 library is enclosed in the ns3 namespace.