A Discrete-Event Network Simulator
Home
Tutorials ▼
English
Documentation ▼
Installation
Manual
Models
Contributing
Wiki
Development ▼
API Docs
Issue Tracker
Merge Requests
API
Loading...
Searching...
No Matches
half-duplex-ideal-phy-signal-parameters.cc
Go to the documentation of this file.
1
/*
2
* Copyright (c) 2011 CTTC
3
*
4
* SPDX-License-Identifier: GPL-2.0-only
5
*
6
* Author: Nicola Baldo <nbaldo@cttc.es>
7
*/
8
9
#include "
half-duplex-ideal-phy-signal-parameters.h
"
10
11
#include <ns3/log.h>
12
#include <ns3/packet.h>
13
14
namespace
ns3
15
{
16
17
NS_LOG_COMPONENT_DEFINE
(
"HalfDuplexIdealPhySignalParameters"
);
18
19
HalfDuplexIdealPhySignalParameters::HalfDuplexIdealPhySignalParameters
()
20
{
21
NS_LOG_FUNCTION
(
this
);
22
}
23
24
HalfDuplexIdealPhySignalParameters::HalfDuplexIdealPhySignalParameters
(
25
const
HalfDuplexIdealPhySignalParameters
& p)
26
:
SpectrumSignalParameters
(p)
27
{
28
NS_LOG_FUNCTION
(
this
<< &p);
29
data
= p.
data
->
Copy
();
30
}
31
32
Ptr<SpectrumSignalParameters>
33
HalfDuplexIdealPhySignalParameters::Copy
()
const
34
{
35
NS_LOG_FUNCTION
(
this
);
36
return
Create<HalfDuplexIdealPhySignalParameters>
(*
this
);
37
}
38
39
}
// namespace ns3
ns3::Packet::Copy
Ptr< Packet > Copy() const
performs a COW copy of the packet.
Definition
packet.cc:120
ns3::Ptr
Smart pointer class similar to boost::intrusive_ptr.
Definition
mpi-test-fixtures.h:37
NS_LOG_COMPONENT_DEFINE
#define NS_LOG_COMPONENT_DEFINE(name)
Define a Log component with a specific name.
Definition
log.h:191
NS_LOG_FUNCTION
#define NS_LOG_FUNCTION(parameters)
If log level LOG_FUNCTION is enabled, this macro will output all input parameters separated by ",...
Definition
log-macros-enabled.h:229
ns3::Create
Ptr< T > Create(Ts &&... args)
Create class instances by constructors with varying numbers of arguments and return them by Ptr.
Definition
ptr.h:436
half-duplex-ideal-phy-signal-parameters.h
ns3
Every class exported by the ns3 library is enclosed in the ns3 namespace.
ns3::HalfDuplexIdealPhySignalParameters
Signal parameters for HalfDuplexIdealPhy.
Definition
half-duplex-ideal-phy-signal-parameters.h:25
ns3::HalfDuplexIdealPhySignalParameters::Copy
Ptr< SpectrumSignalParameters > Copy() const override
make a "virtual" copy of this class, where "virtual" refers to the fact that if the actual object is ...
Definition
half-duplex-ideal-phy-signal-parameters.cc:33
ns3::HalfDuplexIdealPhySignalParameters::data
Ptr< Packet > data
The data packet being transmitted with this signal.
Definition
half-duplex-ideal-phy-signal-parameters.h:42
ns3::HalfDuplexIdealPhySignalParameters::HalfDuplexIdealPhySignalParameters
HalfDuplexIdealPhySignalParameters()
default constructor
Definition
half-duplex-ideal-phy-signal-parameters.cc:19
ns3::SpectrumSignalParameters
This struct provides the generic signal representation to be used by all wireless technologies.
Definition
spectrum-signal-parameters.h:42
src
spectrum
model
half-duplex-ideal-phy-signal-parameters.cc
Generated on Fri Nov 8 2024 13:59:06 for ns-3 by
1.11.0