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
spectrum-model-300kHz-300GHz-log.cc
Go to the documentation of this file.
1
/*
2
* Copyright (c) 2009 CTTC
3
*
4
* SPDX-License-Identifier: GPL-2.0-only
5
*
6
* Author: Nicola Baldo <nbaldo@cttc.es>
7
*/
8
9
#include "
spectrum-model-300kHz-300GHz-log.h
"
10
11
namespace
ns3
12
{
13
14
/**
15
* \ingroup spectrum
16
* Spectrum model logger for frequencies between 300 Khz 300 Ghz
17
*/
18
Ptr<SpectrumModel>
SpectrumModel300Khz300GhzLog
;
19
20
/**
21
* \ingroup spectrum
22
*
23
* Static initializer class for Spectrum model logger
24
* for frequencies between 300 Khz 300 Ghz
25
*/
26
class
static_SpectrumModel300Khz300GhzLog_initializer
27
{
28
public
:
29
static_SpectrumModel300Khz300GhzLog_initializer
()
30
{
31
std::vector<double> freqs;
32
for
(
double
f = 3e5; f < 3e11; f = f * 2)
33
{
34
freqs.push_back(f);
35
}
36
SpectrumModel300Khz300GhzLog
=
Create<SpectrumModel>
(freqs);
37
}
38
};
39
40
/**
41
* \ingroup spectrum
42
* Static variable for analyzer initialization
43
*/
44
static_SpectrumModel300Khz300GhzLog_initializer
45
g_static_SpectrumModel300Khz300GhzLog_initializer_instance
;
46
47
}
// namespace ns3
ns3::Ptr
Smart pointer class similar to boost::intrusive_ptr.
Definition
mpi-test-fixtures.h:37
ns3::static_SpectrumModel300Khz300GhzLog_initializer
Static initializer class for Spectrum model logger for frequencies between 300 Khz 300 Ghz.
Definition
spectrum-model-300kHz-300GHz-log.cc:27
ns3::static_SpectrumModel300Khz300GhzLog_initializer::static_SpectrumModel300Khz300GhzLog_initializer
static_SpectrumModel300Khz300GhzLog_initializer()
Definition
spectrum-model-300kHz-300GHz-log.cc:29
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
ns3::g_static_SpectrumModel300Khz300GhzLog_initializer_instance
static_SpectrumModel300Khz300GhzLog_initializer g_static_SpectrumModel300Khz300GhzLog_initializer_instance
Static variable for analyzer initialization.
Definition
spectrum-model-300kHz-300GHz-log.cc:45
ns3::SpectrumModel300Khz300GhzLog
Ptr< SpectrumModel > SpectrumModel300Khz300GhzLog
Spectrum model logger for frequencies between 300 Khz 300 Ghz.
Definition
spectrum-model-300kHz-300GHz-log.cc:18
ns3
Every class exported by the ns3 library is enclosed in the ns3 namespace.
spectrum-model-300kHz-300GHz-log.h
src
spectrum
model
spectrum-model-300kHz-300GHz-log.cc
Generated on Fri Nov 8 2024 13:59:06 for ns-3 by
1.11.0