22 #ifndef NDN_CXX_SECURITY_PIB_IDENTITY_CONTAINER_HPP
23 #define NDN_CXX_SECURITY_PIB_IDENTITY_CONTAINER_HPP
29 #include <unordered_map>
80 std::set<Name>::const_iterator m_it;
118 get(
const Name& identity)
const;
145 const std::set<Name>&
146 getIdentityNames()
const
148 return m_identityNames;
151 const std::unordered_map<Name, shared_ptr<detail::IdentityImpl>>&
152 getLoadedIdentities()
const
158 std::set<Name> m_identityNames;
160 mutable std::unordered_map<Name, shared_ptr<detail::IdentityImpl>> m_identities;
162 shared_ptr<PibImpl> m_pibImpl;
Represents an absolute name.
const_iterator & operator++()
std::forward_iterator_tag iterator_category
bool operator==(const const_iterator &other)
bool operator!=(const const_iterator &other)
std::ptrdiff_t difference_type
Container of identities of a Pib.
const_iterator find(const Name &keyId) const
Identity get(const Name &identity) const
Get identity from the container.
const_iterator begin() const
const_iterator end() const
void remove(const Name &identity)
Remove identity from the container.
bool isConsistent() const
Check if the container is consistent with the backend storage.
void reset()
Reset state of the container.
Identity add(const Name &identityName)
Add identity into the container.
A frontend handle of an Identity.
#define NDN_CXX_PUBLIC_WITH_TESTS_ELSE_PRIVATE