Container of identities of a PIB. More...
#include <ndn-cxx/security/pib/identity-container.hpp>
Classes | |
class | const_iterator |
Public Types | |
using | iterator = const_iterator |
Public Member Functions | |
Identity | add (const Name &identity) |
Add identity into the container. More... | |
const_iterator | begin () const noexcept |
bool | empty () const noexcept |
Check whether the container is empty. More... | |
const_iterator | end () const noexcept |
const_iterator | find (const Name &identity) const |
Identity | get (const Name &identity) const |
Return an identity by name. More... | |
bool | isConsistent () const |
Check if the container is consistent with the backend storage. More... | |
void | remove (const Name &identity) |
Remove identity from the container. More... | |
void | reset () |
Reset the state of the container. More... | |
size_t | size () const noexcept |
Return the number of identities in the container. More... | |
Friends | |
class | Pib |
Container of identities of a PIB.
The container is used to search/enumerate the identities in a PIB. It can be created only by the Pib class.
Definition at line 42 of file identity-container.hpp.
Definition at line 90 of file identity-container.hpp.
Add identity
into the container.
Definition at line 55 of file identity-container.cpp.
|
inlinenoexcept |
Definition at line 94 of file identity-container.hpp.
|
inlinenoexcept |
Check whether the container is empty.
Definition at line 112 of file identity-container.hpp.
|
inlinenoexcept |
Definition at line 100 of file identity-container.hpp.
IdentityContainer::const_iterator ndn::security::pib::IdentityContainer::find | ( | const Name & | identity | ) | const |
Definition at line 49 of file identity-container.cpp.
Return an identity by name.
Pib::Error | The identity does not exist. |
Definition at line 88 of file identity-container.cpp.
bool ndn::security::pib::IdentityContainer::isConsistent | ( | ) | const |
Check if the container is consistent with the backend storage.
Definition at line 113 of file identity-container.cpp.
void ndn::security::pib::IdentityContainer::remove | ( | const Name & | identity | ) |
Remove identity
from the container.
Definition at line 74 of file identity-container.cpp.
void ndn::security::pib::IdentityContainer::reset | ( | ) |
Reset the state of the container.
This clears all cached information and reloads the identity names from the PIB backend.
Definition at line 105 of file identity-container.cpp.
|
inlinenoexcept |
Return the number of identities in the container.
Definition at line 121 of file identity-container.hpp.
|
friend |
Definition at line 176 of file identity-container.hpp.