NS-3 based Named Data Networking (NDN) simulator
ndnSIM 2.3: NDN, CCN, CCNx, content centric networks
API Documentation
key-container.hpp
Go to the documentation of this file.
1
/* -*- Mode:C++; c-file-style:"gnu"; indent-tabs-mode:nil; -*- */
22
#ifndef NDN_SECURITY_KEY_CONTAINER_HPP
23
#define NDN_SECURITY_KEY_CONTAINER_HPP
24
25
#include <set>
26
#include "
key.hpp
"
27
28
namespace
ndn
{
29
namespace
security
{
30
31
class
PibImpl;
32
34
class
KeyContainer
35
{
36
public
:
37
class
const_iterator
38
{
39
public
:
40
friend
class
KeyContainer
;
41
42
public
:
43
Key
44
operator*
();
45
46
const_iterator
&
47
operator++
();
48
49
const_iterator
50
operator++
(
int
);
51
52
bool
53
operator==
(
const
const_iterator
& other);
54
55
bool
56
operator!=
(
const
const_iterator
& other);
57
58
private
:
59
const_iterator
(
const
Name
& identity,
60
std::set<name::Component>::const_iterator it,
61
shared_ptr<PibImpl> impl);
62
63
private
:
64
Name
m_identity;
65
std::set<name::Component>::const_iterator m_it;
66
shared_ptr<PibImpl> m_impl;
67
};
68
69
typedef
const_iterator
iterator
;
70
71
public
:
72
KeyContainer
();
73
74
KeyContainer
(
const
Name
& identity,
75
std::set<name::Component>&& keyIds,
76
shared_ptr<PibImpl> impl);
77
78
const_iterator
79
begin
()
const
;
80
81
const_iterator
82
end
()
const
;
83
84
const_iterator
85
find
(
const
name::Component
& keyId)
const
;
86
87
size_t
88
size
()
const
;
89
90
private
:
91
Name
m_identity;
92
std::set<name::Component> m_keyIds;
93
shared_ptr<PibImpl> m_impl;
94
};
95
96
}
// namespace security
97
}
// namespace ndn
98
99
#endif // NDN_SECURITY_KEY_CONTAINER_HPP
ndn
Copyright (c) 2011-2015 Regents of the University of California.
Definition:
ndn-strategy-choice-helper.hpp:34
ndn::security::KeyContainer::const_iterator::operator==
bool operator==(const const_iterator &other)
Definition:
key-container.cpp:59
key.hpp
ndn::security::KeyContainer::const_iterator::operator*
Key operator*()
Definition:
key-container.cpp:38
ndn::security::Key
represents a key
Definition:
key.hpp:45
ndn::security::KeyContainer
A handler to search or enumerate keys of an identity.
Definition:
key-container.hpp:34
ndn::security::KeyContainer::size
size_t size() const
Definition:
key-container.cpp:102
ndn::security::KeyContainer::end
const_iterator end() const
Definition:
key-container.cpp:90
ndn::security::KeyContainer::begin
const_iterator begin() const
Definition:
key-container.cpp:84
ndn::security::KeyContainer::const_iterator::operator++
const_iterator & operator++()
Definition:
key-container.cpp:44
ndn::Name
Name abstraction to represent an absolute name.
Definition:
name.hpp:46
ndn::security::KeyContainer::iterator
const_iterator iterator
Definition:
key-container.hpp:69
ndn::security::KeyContainer::find
const_iterator find(const name::Component &keyId) const
Definition:
key-container.cpp:96
ndn::security::KeyContainer::const_iterator
Definition:
key-container.hpp:37
ndn::name::Component
Component holds a read-only name component value.
Definition:
name-component.hpp:47
ndn::security::KeyContainer::const_iterator::operator!=
bool operator!=(const const_iterator &other)
Definition:
key-container.cpp:65
ndn::security::KeyContainer::const_iterator::KeyContainer
friend class KeyContainer
Definition:
key-container.hpp:40
security
ndnSIM
ndn-cxx
src
security
key-container.hpp
Generated on Wed Jan 11 2017 18:17:14 for ndnSIM by
1.8.13