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
bridge-channel.h
Go to the documentation of this file.
1
/* -*- Mode:C++; c-file-style:"gnu"; indent-tabs-mode:nil; -*- */
2
/*
3
* This program is free software; you can redistribute it and/or modify
4
* it under the terms of the GNU General Public License version 2 as
5
* published by the Free Software Foundation;
6
*
7
* This program is distributed in the hope that it will be useful,
8
* but WITHOUT ANY WARRANTY; without even the implied warranty of
9
* MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
10
* GNU General Public License for more details.
11
*
12
* You should have received a copy of the GNU General Public License
13
* along with this program; if not, write to the Free Software
14
* Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA
15
*
16
* Author: Gustavo Carneiro <gjc@inescporto.pt>
17
*/
18
#ifndef BRIDGE_CHANNEL_H
19
#define BRIDGE_CHANNEL_H
20
21
#include "ns3/net-device.h"
22
#include "ns3/channel.h"
23
#include <vector>
24
25
namespace
ns3 {
26
36
class
BridgeChannel
:
public
Channel
37
{
38
public
:
39
static
TypeId
GetTypeId
(
void
);
40
BridgeChannel
();
41
virtual
~BridgeChannel
();
42
43
void
AddChannel
(
Ptr<Channel>
bridgedChannel);
44
45
// virtual methods implementation, from Channel
46
virtual
uint32_t
GetNDevices
(
void
)
const
;
47
virtual
Ptr<NetDevice>
GetDevice
(uint32_t i)
const
;
48
49
private
:
50
51
BridgeChannel
(
const
BridgeChannel
&);
52
BridgeChannel
&
operator =
(
const
BridgeChannel
&);
53
54
std::vector< Ptr<Channel> >
m_bridgedChannels
;
55
56
};
57
58
}
// namespace ns3
59
60
#endif
/* BRIDGE_CHANNEL_H */
src
bridge
model
bridge-channel.h
Generated on Fri Dec 21 2012 19:00:31 for ns-3 by
1.8.1.2