This class provides a cache for time-zone information.
Declared in <baltzo_zoneinfocache.h>
class ZoneinfoCache;
This class provides an efficient mechanism for retrieving information about a given time zone. The first time a client requests information for some time-zone identifier, that information is loaded (using the Loader supplied at construction), returned to the client (via a const pointer value), and cached for future use. Subsequent requests for the same time-zone return the cached information. The returned values are valid for the lifetime of this object.
This class: * is exception-neutral * is fully thread-safe For terminology see bsldoc_glossary.
| Name | Description |
|---|---|
allocator_type | Allocator type used by this class. |
| Name | Description |
|---|---|
ZoneinfoCache [constructor] | Create an empty cache of time-zone information. |
~ZoneinfoCache [destructor] | Destroy this object. |
getZoneinfo | Return the address of the Zoneinfo for timeZoneId, or 0 on failure. |
get_allocator | Return the allocator used by this object to supply memory. |
lookupZoneinfo | Return the address of the cached Zoneinfo for timeZoneId, or 0. |
operator BloombergLP::bslmf::NestedTraitDeclaration<ZoneinfoCache, UsesBslmaAllocator> | Nested trait declaration for bslma::UsesBslmaAllocator. |