AceTime
2.1.0
Date and time classes for Arduino that support timezones from the TZ Database.
|
The template class of BasicZoneProcessorCacheBase or ExtendedZoneProcessorCacheBase. More...
#include <ZoneProcessorCache.h>
Public Member Functions | |
ZoneProcessorCacheBaseTemplate (ZP *zoneProcessors, uint8_t size) | |
uint8_t | size () const |
Return the size of the cache. | |
ZP * | getZoneProcessorAtIndex (uint8_t i) |
Get the ZoneProcessor at index i. | |
ZP * | getZoneProcessor (uintptr_t zoneKey) |
Get ZoneProcessor from either a ZoneKey, either a basic::ZoneInfo or an extended::ZoneInfo. More... | |
void | resetZoneProcessors () |
Reset the transition cache of all zone processors in the cache. More... | |
The template class of BasicZoneProcessorCacheBase or ExtendedZoneProcessorCacheBase.
The common implementation BasicZoneProcessorCache<SIZE> and ExtendedZoneProcessorCacheBase<SIZE> creates the caches inside the class itself, which will normally be created at static initialization time. An alternative implementation would create the cache on the heap.
Definition at line 26 of file ZoneProcessorCache.h.
|
inline |
Get ZoneProcessor from either a ZoneKey, either a basic::ZoneInfo or an extended::ZoneInfo.
This will never return nullptr.
zoneKey | an opaque Zone primary key (e.g. const ZoneInfo*, or a uint16_t index into a database table of ZoneInfo records) |
Definition at line 46 of file ZoneProcessorCache.h.
|
inline |
Reset the transition cache of all zone processors in the cache.
Useful when Epoch::currentEpochYear() is changed at runtime.
Definition at line 62 of file ZoneProcessorCache.h.