A Discrete-Event Network Simulator
Home
Tutorials ▼
English
Documentation ▼
Manual
Models
Contributing
Wiki
Development ▼
API Docs
Issue Tracker
Merge Requests
API
qkd-encryptor-manager.h
Go to the documentation of this file.
1
/* -*- Mode:C++; c-file-style:"gnu"; indent-tabs-mode:nil; -*- */
2
/*
3
* Copyright (c) 2020 DOTFEESA www.tk.etf.unsa.ba
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: Miralem Mehic <miralem.mehic@ieee.org>
19
*/
20
21
#ifndef QKD_ENCRYPTOR_MANAGER_H
22
#define QKD_ENCRYPTOR_MANAGER_H
23
24
#include <fstream>
25
#include <sstream>
26
#include <vector>
27
#include "ns3/object.h"
28
#include "ns3/core-module.h"
29
#include "ns3/node-list.h"
30
#include "
qkd-encryptor.h
"
31
32
namespace
ns3
{
33
44
class
QKDEncryptor;
45
46
class
QKDEncryptorManager
:
public
Object
47
{
48
public
:
49
54
static
TypeId
GetTypeId
(
void
);
55
59
QKDEncryptorManager
();
60
64
virtual
~QKDEncryptorManager
();
65
73
uint32_t
AddQKDEncryptor
(
Ptr<QKDEncryptor>
device);
74
81
Ptr<QKDEncryptor>
GetQKDEncryptor
(uint32_t index)
const
;
82
88
uint32_t
GetNQKDEncryptors
(
void
)
const
;
89
90
91
private
:
92
93
std::vector<Ptr<QKDEncryptor> >
m_qkdencryptors
;
94
95
};
96
}
97
#endif
/* QKD_ENCRYPTOR_MANAGER_H */
ns3::Object
A base class which provides memory management and object aggregation.
Definition:
object.h:88
ns3::Ptr
Smart pointer class similar to boost::intrusive_ptr.
Definition:
ptr.h:74
ns3::QKDEncryptorManager
QKDEncryptorManager.
Definition:
qkd-encryptor-manager.h:47
ns3::QKDEncryptorManager::GetNQKDEncryptors
uint32_t GetNQKDEncryptors(void) const
Get a number of the associated QKDEncryptors.
Definition:
qkd-encryptor-manager.cc:64
ns3::QKDEncryptorManager::~QKDEncryptorManager
virtual ~QKDEncryptorManager()
Destructor.
Definition:
qkd-encryptor-manager.cc:42
ns3::QKDEncryptorManager::AddQKDEncryptor
uint32_t AddQKDEncryptor(Ptr< QKDEncryptor > device)
Associate a QKDEncryptor to this node.
Definition:
qkd-encryptor-manager.cc:46
ns3::QKDEncryptorManager::m_qkdencryptors
std::vector< Ptr< QKDEncryptor > > m_qkdencryptors
QKDEncryptors associated to this node.
Definition:
qkd-encryptor-manager.h:93
ns3::QKDEncryptorManager::GetQKDEncryptor
Ptr< QKDEncryptor > GetQKDEncryptor(uint32_t index) const
Retrieve the index-th QKDEncryptor associated to this node.
Definition:
qkd-encryptor-manager.cc:56
ns3::QKDEncryptorManager::GetTypeId
static TypeId GetTypeId(void)
Get the type ID.
Definition:
qkd-encryptor-manager.cc:29
ns3::QKDEncryptorManager::QKDEncryptorManager
QKDEncryptorManager()
Constructor.
Definition:
qkd-encryptor-manager.cc:37
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.
qkd-encryptor.h
src
qkd
model
qkd-encryptor-manager.h
Generated on Tue Feb 6 2024 19:21:26 for ns-3 by
1.9.1