AceTime  0.5.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::ZoneProcessorCacheImpl< SIZE, TYPE, ZS, ZI, ZIB > Class Template Reference

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

#include <ZoneProcessorCache.h>

Inheritance diagram for ace_time::ZoneProcessorCacheImpl< SIZE, TYPE, ZS, ZI, ZIB >:
Inheritance graph
[legend]
Collaboration diagram for ace_time::ZoneProcessorCacheImpl< SIZE, TYPE, ZS, ZI, ZIB >:
Collaboration graph
[legend]

Public Member Functions

uint8_t getType () override
 Return the type of this cache. More...
 
ZoneProcessorgetZoneProcessor (const void *zoneInfo) override
 Get the ZoneProcessor from the zoneInfo. More...
 

Additional Inherited Members

- Static Public Attributes inherited from ace_time::ZoneProcessorCache
static const uint8_t kTypeBasicManaged = ZoneProcessor::kTypeBasic + 2
 
static const uint8_t kTypeExtendedManaged
 

Detailed Description

template<uint8_t SIZE, uint8_t TYPE, typename ZS, typename ZI, typename ZIB>
class ace_time::ZoneProcessorCacheImpl< SIZE, TYPE, ZS, ZI, ZIB >

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

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.
ZStype of ZoneProcessor (BasicZoneProcessor or ExtendedZoneProcessor)
ZItype of ZoneInfo (basic::ZoneInfo or extended::ZoneInfo)
ZIBtype of ZoneInfoBroker (basic::ZoneInfoBroker or extended::ZoneInfoBroker)

Definition at line 30 of file BasicZoneProcessor.h.

Member Function Documentation

◆ getType()

template<uint8_t SIZE, uint8_t TYPE, typename ZS, typename ZI, typename ZIB>
uint8_t ace_time::ZoneProcessorCacheImpl< SIZE, TYPE, ZS, ZI, ZIB >::getType ( )
inlineoverridevirtual

Return the type of this cache.

Implements ace_time::ZoneProcessorCache.

Definition at line 61 of file ZoneProcessorCache.h.

◆ getZoneProcessor()

template<uint8_t SIZE, uint8_t TYPE, typename ZS, typename ZI, typename ZIB>
ZoneProcessor* ace_time::ZoneProcessorCacheImpl< SIZE, TYPE, ZS, ZI, ZIB >::getZoneProcessor ( const void *  zoneInfo)
inlineoverridevirtual

Get the ZoneProcessor from the zoneInfo.

Will never return nullptr.

Implements ace_time::ZoneProcessorCache.

Definition at line 64 of file ZoneProcessorCache.h.


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