22 #ifndef NDN_SECURITY_PIB_KEY_CONTAINER_HPP
23 #define NDN_SECURITY_PIB_KEY_CONTAINER_HPP
26 #include <unordered_map>
49 class const_iterator :
public std::iterator<std::forward_iterator_tag, const Key>
73 std::set<Name>::const_iterator m_it;
99 add(
const uint8_t* key,
size_t keyLen,
const Name& keyName);
106 remove(
const Name& keyName);
114 get(
const Name& keyName)
const;
131 const std::set<Name>&
137 const std::unordered_map<Name, shared_ptr<detail::KeyImpl>>&
138 getLoadedKeys()
const
145 std::set<Name> m_keyNames;
147 mutable std::unordered_map<Name, shared_ptr<detail::KeyImpl>> m_keys;
149 shared_ptr<PibImpl> m_impl;
160 #endif // NDN_SECURITY_PIB_KEY_CONTAINER_HPP
const_iterator find(const Name &keyName) const
Backend instance of Identity.
const_iterator begin() const
Copyright (c) 2013-2016 Regents of the University of California.
#define NDN_CXX_PUBLIC_WITH_TESTS_ELSE_PRIVATE
bool operator==(const const_iterator &other)
bool isConsistent() const
Check if the container is consistent with the backend storage.
bool operator!=(const const_iterator &other)
Container of keys of an identity.
A frontend handle of a key instance.
Key add(const uint8_t *key, size_t keyLen, const Name &keyName)
Add key of keyLen bytes with keyName into the container.
Name abstraction to represent an absolute name.
const_iterator & operator++()
const_iterator end() const