NS-3 based Named Data Networking (NDN) simulator
ndnSIM 2.0: NDN, CCN, CCNx, content centric networks
API Documentation
identity-container.hpp
Go to the documentation of this file.
1
/* -*- Mode:C++; c-file-style:"gnu"; indent-tabs-mode:nil; -*- */
22
#ifndef NDN_SECURITY_IDENTITY_CONTAINER_HPP
23
#define NDN_SECURITY_IDENTITY_CONTAINER_HPP
24
25
#include <set>
26
#include "
identity.hpp
"
27
28
namespace
ndn
{
29
namespace
security {
30
31
class
PibImpl;
32
34
class
IdentityContainer
35
{
36
public
:
37
class
const_iterator
38
{
39
public
:
40
friend
class
IdentityContainer
;
41
42
public
:
43
Identity
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
(std::set<Name>::const_iterator it, shared_ptr<PibImpl> impl);
60
61
private
:
62
Name
m_identity;
63
std::set<Name>::const_iterator m_it;
64
shared_ptr<PibImpl> m_impl;
65
};
66
67
typedef
const_iterator
iterator
;
68
69
public
:
70
IdentityContainer
();
71
72
IdentityContainer
(std::set<Name>&& identities, shared_ptr<PibImpl> impl);
73
74
const_iterator
75
begin
()
const
;
76
77
const_iterator
78
end
()
const
;
79
80
const_iterator
81
find
(
const
Name
& keyId)
const
;
82
83
size_t
84
size
()
const
;
85
86
private
:
87
std::set<Name> m_identities;
88
shared_ptr<PibImpl> m_impl;
89
};
90
91
}
// namespace security
92
}
// namespace ndn
93
94
#endif // NDN_SECURITY_IDENTITY_CONTAINER_HPP
ndn
Copyright (c) 2011-2015 Regents of the University of California.
Definition:
ndn-strategy-choice-helper.hpp:34
ndn::security::Identity
represents an identity
Definition:
identity.hpp:44
ndn::security::IdentityContainer::end
const_iterator end() const
Definition:
identity-container.cpp:86
ndn::security::IdentityContainer
A handler to search or enumerate identities in PIB.
Definition:
identity-container.hpp:34
ndn::security::IdentityContainer::iterator
const_iterator iterator
Definition:
identity-container.hpp:67
ndn::security::IdentityContainer::const_iterator::operator++
const_iterator & operator++()
Definition:
identity-container.cpp:42
ndn::security::IdentityContainer::find
const_iterator find(const Name &keyId) const
Definition:
identity-container.cpp:92
ndn::security::IdentityContainer::const_iterator::operator==
bool operator==(const const_iterator &other)
Definition:
identity-container.cpp:57
ndn::security::IdentityContainer::const_iterator::IdentityContainer
friend class IdentityContainer
Definition:
identity-container.hpp:40
ndn::security::IdentityContainer::const_iterator::operator!=
bool operator!=(const const_iterator &other)
Definition:
identity-container.cpp:63
identity.hpp
ndn::Name
Name abstraction to represent an absolute name.
Definition:
name.hpp:46
ndn::security::IdentityContainer::const_iterator::operator*
Identity operator*()
Definition:
identity-container.cpp:36
ndn::security::IdentityContainer::begin
const_iterator begin() const
Definition:
identity-container.cpp:80
ndn::security::IdentityContainer::size
size_t size() const
Definition:
identity-container.cpp:98
ndn::security::IdentityContainer::const_iterator
Definition:
identity-container.hpp:37
ndnSIM
ndn-cxx
src
security
identity-container.hpp
Generated on Sat Nov 12 2016 16:02:52 for ndnSIM by
1.8.12