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;
104 remove(
const Name& identity);
111 get(
const Name& identity)
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-2016 Regents of the University of California.
void reset()
Reset state of the container.
#define NDN_CXX_PUBLIC_WITH_TESTS_ELSE_PRIVATE
const_iterator begin() const
bool operator==(const const_iterator &other)
Identity add(const Name &identityName)
Add identity into the container.
const_iterator end() const
const_iterator find(const Name &keyId) const
bool isConsistent() const
Check if the container is consistent with the backend storage.
bool operator!=(const const_iterator &other)
Name abstraction to represent an absolute name.
const_iterator & operator++()
Container of identities of a Pib.
A frontend handle of an Identity.