A Discrete-Event Network Simulator
Home
Tutorials ▼
English
Documentation ▼
Manual
Models
Contributing
Wiki
Development ▼
API Docs
Issue Tracker
Merge Requests
API
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
17
#ifndef NS3_CHANNEL_H
18
#define NS3_CHANNEL_H
19
20
#include <string>
21
#include <stdint.h>
22
#include "ns3/object.h"
23
#include "ns3/ptr.h"
24
25
namespace
ns3
{
26
27
class
NetDevice;
28
43
class
Channel
:
public
Object
44
{
45
public
:
50
static
TypeId
GetTypeId
(
void
);
51
52
Channel
();
53
virtual
~Channel
();
54
61
uint32_t
GetId
(
void
)
const
;
62
68
virtual
std::size_t
GetNDevices
(
void
)
const
= 0;
75
virtual
Ptr<NetDevice>
GetDevice
(std::size_t i)
const
= 0;
76
77
private
:
78
uint32_t
m_id
;
79
};
80
81
}
// namespace ns3
82
83
#endif
/* NS3_CHANNEL_H */
ns3::Channel
Abstract Channel Base Class.
Definition:
channel.h:44
ns3::Channel::GetTypeId
static TypeId GetTypeId(void)
Get the type ID.
Definition:
channel.cc:33
ns3::Channel::GetDevice
virtual Ptr< NetDevice > GetDevice(std::size_t i) const =0
ns3::Channel::m_id
uint32_t m_id
Channel id for this channel.
Definition:
channel.h:78
ns3::Channel::Channel
Channel()
Definition:
channel.cc:46
ns3::Channel::GetNDevices
virtual std::size_t GetNDevices(void) const =0
ns3::Channel::GetId
uint32_t GetId(void) const
Definition:
channel.cc:59
ns3::Channel::~Channel
virtual ~Channel()
Definition:
channel.cc:53
ns3::Object
A base class which provides memory management and object aggregation.
Definition:
object.h:88
ns3::Ptr< NetDevice >
ns3::TypeId
a unique identifier for an interface.
Definition:
type-id.h:59
ns3
Every class exported by the ns3 library is enclosed in the ns3 namespace.
src
network
model
channel.h
Generated on Tue Feb 6 2024 19:21:25 for ns-3 by
1.9.1