AceTime  1.6
Date and time classes for Arduino that support timezones from the TZ Database, and a system clock that can synchronize from an NTP server or an RTC chip.
Public Member Functions | List of all members
ace_time::basic::LinkRegistrar Class Reference

Concrete template instantiation of LinkRegistrarTemplate for basic::LinkEntry. More...

#include <LinkRegistrar.h>

Inheritance diagram for ace_time::basic::LinkRegistrar:
Inheritance graph
[legend]
Collaboration diagram for ace_time::basic::LinkRegistrar:
Collaboration graph
[legend]

Public Member Functions

 LinkRegistrar (uint16_t linkRegistrySize, const basic::LinkEntry *linkRegistry)
 
- Public Member Functions inherited from ace_time::internal::LinkRegistrarTemplate< basic::LinkEntry, basic::LinkEntryBroker, basic::LinkRegistryBroker >
 LinkRegistrarTemplate (uint16_t linkRegistrySize, const basic::LinkEntry *linkRegistry)
 Constructor.
 
uint16_t linkRegistrySize () const
 Return the number of (thin) links.
 
const basic::LinkEntry * getLinkEntryForIndex (uint16_t i) const
 Return the LinkEntry at index i. More...
 
const basic::LinkEntry * getLinkEntryForId (uint32_t linkId) const
 Return the LinkEntry using the linkId. More...
 
uint16_t findIndexForId (uint32_t linkId) const
 Find the index for linkId. More...
 

Additional Inherited Members

- Static Public Attributes inherited from ace_time::internal::LinkRegistrarTemplate< basic::LinkEntry, basic::LinkEntryBroker, basic::LinkRegistryBroker >
static const uint16_t kInvalidIndex
 Invalid index to indicate error or not found.
 
- Protected Member Functions inherited from ace_time::internal::LinkRegistrarTemplate< basic::LinkEntry, basic::LinkEntryBroker, basic::LinkRegistryBroker >
uint16_t findIndexForIdLinear (uint32_t linkId) const
 Exposed only for benchmarking purposes.
 
uint16_t findIndexForIdBinary (uint32_t linkId) const
 Exposed only for benchmarking purposes.
 
- Static Protected Member Functions inherited from ace_time::internal::LinkRegistrarTemplate< basic::LinkEntry, basic::LinkEntryBroker, basic::LinkRegistryBroker >
static bool isSorted (const basic::LinkEntry *registry, uint16_t registrySize)
 Determine if the given link registry is sorted by id.
 
static uint16_t linearSearchById (const basic::LinkEntry *registry, uint16_t registrySize, uint32_t linkId)
 Find the registry index corresponding to linkId using linear search. More...
 
static uint16_t binarySearchById (const basic::LinkEntry *registry, uint16_t registrySize, uint32_t linkId)
 Find the registry index corresponding to linkId using a binary search. More...
 
- Static Protected Attributes inherited from ace_time::internal::LinkRegistrarTemplate< basic::LinkEntry, basic::LinkEntryBroker, basic::LinkRegistryBroker >
static const uint8_t kBinarySearchThreshold
 Use binarySearchById() if linkRegistrySize >= threshold.
 

Detailed Description

Concrete template instantiation of LinkRegistrarTemplate for basic::LinkEntry.

Definition at line 170 of file LinkRegistrar.h.


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