HAN-FUN API  1.5.3
This project provides the common implementation of ULE Alliance's HAN-FUN application protocol.
HF::Core::BindManagement::Entries Struct Reference

Default implementation of the bind entries container. More...

#include <bind_management.h>

+ Inheritance diagram for HF::Core::BindManagement::Entries:
+ Collaboration diagram for HF::Core::BindManagement::Entries:

Public Member Functions

uint16_t size () const
 Return the number of entries in the container. More...
 
Common::Result destroy (const Entry &entry)
 Destroy the given entry in the persistent storage. More...
 
Common::Result destroy (uint16_t address, Protocol::Address::Type type=Protocol::Address::DEVICE)
 Destroy the entries in the persistent storage, that refer to the the given address. More...
 
EntryPtr find (const Protocol::Address &source, const Common::Interface &itf, const Protocol::Address &destination) const
 Return the Bind entry for the given parameters. More...
 
bool any_of (Protocol::Address const &source, Common::Interface const &itf) const
 Check if entries for the device with given source address and for the given interface ifc exist. More...
 
void for_each (Protocol::Address const &source, Common::Interface const &itf, std::function< void(const Entry &)> func) const
 Call the given function for all the entries with given source address and for the given interface ifc. More...
 
std::pair< iterator, iterator > find (Protocol::Address const &source, Common::Interface const &itf) const
 Return a pair of iterators for the entries that match the given search criteria. More...
 
template<typename Func >
Common::Result destroy (Func func)
 Destroy the entries in the persistent storage, for which the given predicate function returns true. More...
 
- Public Member Functions inherited from HF::Common::IEntries< Entry >
virtual Result save (const Entry &entry)=0
 Store the given entry to persistent storage. More...
 
virtual Result destroy (const Entry &entry)=0
 Destroy the given entry in the persistent storage. More...
 

Protected Attributes

Container db
 Container for the bind entries.
 

Detailed Description

Default implementation of the bind entries container.

Definition at line 546 of file bind_management.h.


The documentation for this struct was generated from the following file: