AceTime  1.7.1
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::ZoneProcessorCacheTemplate< SIZE, ZP > Class Template Reference

A cache of ZoneProcessors that provides a ZoneProcessor to the TimeZone upon request by the ZoneManager. More...

#include <ZoneProcessorCache.h>

Public Member Functions

ZP * getZoneProcessor (uintptr_t zoneKey)
 Get ZoneProcessor from either a ZoneKey, either a basic::ZoneInfo or an extended::ZoneInfo. More...
 
ZP * getZoneProcessor (uint8_t i)
 Return the ZoneProcessor at position i. More...
 

Detailed Description

template<uint8_t SIZE, typename ZP>
class ace_time::ZoneProcessorCacheTemplate< SIZE, ZP >

A cache of ZoneProcessors that provides a ZoneProcessor to the TimeZone upon request by the ZoneManager.

Template Parameters
SIZEnumber of zone processors, should be approximate the number zones concurrently used in the app. It is expected that this will be small. It can be 1 if the app never changes the TimeZone. It should be 2 if the user is able to select different timezones from a menu.
ZPtype of ZoneProcessor (BasicZoneProcessor or ExtendedZoneProcessor)

Definition at line 29 of file ZoneProcessorCache.h.

Member Function Documentation

◆ getZoneProcessor() [1/2]

template<uint8_t SIZE, typename ZP >
ZP* ace_time::ZoneProcessorCacheTemplate< SIZE, ZP >::getZoneProcessor ( uint8_t  i)
inline

Return the ZoneProcessor at position i.

Used for initialization.

Definition at line 50 of file ZoneProcessorCache.h.

◆ getZoneProcessor() [2/2]

template<uint8_t SIZE, typename ZP >
ZP* ace_time::ZoneProcessorCacheTemplate< SIZE, ZP >::getZoneProcessor ( uintptr_t  zoneKey)
inline

Get ZoneProcessor from either a ZoneKey, either a basic::ZoneInfo or an extended::ZoneInfo.

This will never return nullptr.

Definition at line 37 of file ZoneProcessorCache.h.


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