NS-3 based Named Data Networking (NDN) simulator
ndnSIM 2.0: NDN, CCN, CCNx, content centric networks
API Documentation
Main Page
Related Pages
Modules
Namespaces
Classes
Files
File List
File Members
certificate-container.cpp
Go to the documentation of this file.
1
/* -*- Mode:C++; c-file-style:"gnu"; indent-tabs-mode:nil; -*- */
22
#include "
certificate-container.hpp
"
23
#include "
pib-impl.hpp
"
24
25
namespace
ndn
{
26
namespace
security {
27
28
CertificateContainer::const_iterator::const_iterator(std::set<Name>::const_iterator it,
29
shared_ptr<PibImpl> impl)
30
: m_it(it)
31
, m_impl(impl)
32
{
33
}
34
35
IdentityCertificate
36
CertificateContainer::const_iterator::operator*()
37
{
38
return
m_impl->getCertificate(*m_it);
39
}
40
41
CertificateContainer::const_iterator
&
42
CertificateContainer::const_iterator::operator++()
43
{
44
++m_it;
45
return
*
this
;
46
}
47
48
CertificateContainer::const_iterator
49
CertificateContainer::const_iterator::operator++(
int
)
50
{
51
const_iterator
it(m_it, m_impl);
52
++m_it;
53
return
it;
54
}
55
56
bool
57
CertificateContainer::const_iterator::operator==
(
const
const_iterator
& other)
58
{
59
return
(m_impl == other.m_impl && m_it == other.m_it);
60
}
61
62
bool
63
CertificateContainer::const_iterator::operator!=
(
const
const_iterator
& other)
64
{
65
return
!(*
this
== other);
66
}
67
68
CertificateContainer::CertificateContainer()
69
{
70
}
71
72
CertificateContainer::CertificateContainer(std::set<Name>&& certNames,
73
shared_ptr<PibImpl> impl)
74
: m_certNames(certNames)
75
, m_impl(impl)
76
{
77
}
78
79
CertificateContainer::const_iterator
80
CertificateContainer::begin
()
const
81
{
82
return
const_iterator
(m_certNames.begin(), m_impl);
83
}
84
85
CertificateContainer::const_iterator
86
CertificateContainer::end
()
const
87
{
88
return
const_iterator
(m_certNames.end(), m_impl);
89
}
90
91
CertificateContainer::const_iterator
92
CertificateContainer::find
(
const
Name
& certName)
const
93
{
94
return
const_iterator
(m_certNames.find(certName), m_impl);
95
}
96
97
size_t
98
CertificateContainer::size
()
const
99
{
100
return
m_certNames.size();
101
}
102
103
}
// namespace security
104
}
// namespace ndn
ndn
Copyright (c) 2011-2015 Regents of the University of California.
Definition:
ndn-strategy-choice-helper.hpp:34
ndn::security::CertificateContainer::begin
const_iterator begin() const
Definition:
certificate-container.cpp:80
ndn::security::CertificateContainer::end
const_iterator end() const
Definition:
certificate-container.cpp:86
certificate-container.hpp
ndn::security::CertificateContainer::size
size_t size() const
Definition:
certificate-container.cpp:98
ndn::Name
Name abstraction to represent an absolute name.
Definition:
name.hpp:46
ns3::ndn::operator!=
bool operator!=(const GlobalRouter::Incidency &a, const GlobalRouter::Incidency &b)
Definition:
ndn-global-router.hpp:140
ndn::security::CertificateContainer::find
const_iterator find(const Name &certName) const
Definition:
certificate-container.cpp:92
pib-impl.hpp
ndn::security::CertificateContainer::const_iterator
Definition:
certificate-container.hpp:37
ns3::ndn::operator==
bool operator==(const GlobalRouter::Incidency &a, const GlobalRouter::Incidency &b)
Definition:
ndn-global-router.hpp:133
ndnSIM
ndn-cxx
src
security
certificate-container.cpp
Generated on Tue Feb 23 2016 22:18:43 for ndnSIM by
1.8.11