A Discrete-Event Network Simulator
Home
Tutorials ▼
English
Portuguese
Docs ▼
Wiki
Manual
Models
Develop ▼
API
Bugs
API
Main Page
Related Pages
Modules
Namespaces
Classes
Files
File List
File Members
All
Classes
Namespaces
Files
Functions
Variables
Typedefs
Enumerations
Enumerator
Properties
Friends
Macros
Groups
Pages
node-container.h
Go to the documentation of this file.
1
/* -*- Mode:C++; c-file-style:"gnu"; indent-tabs-mode:nil; -*- */
2
/*
3
* Copyright (c) 2008 INRIA
4
*
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
7
* published by the Free Software Foundation;
8
*
9
* This program is distributed in the hope that it will be useful,
10
* but WITHOUT ANY WARRANTY; without even the implied warranty of
11
* MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
12
* GNU General Public License for more details.
13
*
14
* You should have received a copy of the GNU General Public License
15
* along with this program; if not, write to the Free Software
16
* Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA
17
*
18
* Author: Mathieu Lacage <mathieu.lacage@sophia.inria.fr>
19
*/
20
#ifndef NODE_CONTAINER_H
21
#define NODE_CONTAINER_H
22
23
#include <stdint.h>
24
#include <vector>
25
#include "ns3/node.h"
26
27
namespace
ns3 {
28
38
class
NodeContainer
39
{
40
public
:
41
typedef
std::vector<Ptr<Node> >::const_iterator
Iterator
;
42
46
NodeContainer
();
47
54
NodeContainer
(
Ptr<Node>
node);
55
63
NodeContainer
(std::string nodeName);
64
80
NodeContainer
(
const
NodeContainer
&a,
const
NodeContainer
&b);
81
98
NodeContainer
(
const
NodeContainer
&a,
const
NodeContainer
&b,
const
NodeContainer
&c);
99
117
NodeContainer
(
const
NodeContainer
&a,
const
NodeContainer
&b,
const
NodeContainer
&c,
const
NodeContainer
&d);
118
137
NodeContainer
(
const
NodeContainer
&a,
const
NodeContainer
&b,
const
NodeContainer
&c,
const
NodeContainer
&d,
138
const
NodeContainer
&e);
139
159
Iterator
Begin
(
void
)
const
;
160
180
Iterator
End
(
void
)
const
;
181
202
uint32_t
GetN
(
void
)
const
;
203
225
Ptr<Node>
Get
(uint32_t i)
const
;
226
237
void
Create
(uint32_t n);
238
251
void
Create
(uint32_t n, uint32_t systemId);
252
259
void
Add
(
NodeContainer
other);
260
266
void
Add
(
Ptr<Node>
node);
267
274
void
Add
(std::string nodeName);
275
288
static
NodeContainer
GetGlobal
(
void
);
289
290
private
:
291
std::vector<Ptr<Node> >
m_nodes
;
292
};
293
294
}
// namespace ns3
295
296
#endif
/* NODE_CONTAINER_H */
src
network
helper
node-container.h
Generated on Tue Nov 13 2012 10:32:19 for ns-3 by
1.8.1.2