22 #ifndef NDN_SECURITY_PIB_IDENTITY_CONTAINER_HPP 23 #define NDN_SECURITY_PIB_IDENTITY_CONTAINER_HPP 28 #include <unordered_map> 49 class const_iterator :
public std::iterator<std::forward_iterator_tag, const Identity>
73 std::set<Name>::const_iterator m_it;
89 find(
const Name& keyId)
const;
98 add(
const Name& identityName);
104 remove(
const Name& identity);
111 get(
const Name& identity)
const;
128 isConsistent()
const;
138 const std::set<Name>&
139 getIdentityNames()
const 141 return m_identityNames;
144 const std::unordered_map<Name, shared_ptr<detail::IdentityImpl>>&
145 getLoadedIdentities()
const 151 std::set<Name> m_identityNames;
153 mutable std::unordered_map<Name, shared_ptr<detail::IdentityImpl>> m_identities;
155 shared_ptr<PibImpl> m_pibImpl;
167 #endif // NDN_SECURITY_PIB_IDENTITY_CONTAINER_HPP Copyright (c) 2013-2017 Regents of the University of California.
bool operator==(const Identity &lhs, const Identity &rhs)
#define NDN_CXX_PUBLIC_WITH_TESTS_ELSE_PRIVATE
Represents an absolute name.
Container of identities of a Pib.
bool operator!=(const Identity &lhs, const Identity &rhs)
A frontend handle of an Identity.