BDE 4.39.x Production Release
Loading...
Searching...
No Matches
bdlt::TimeTzFormatter_Cache Class Reference

#include <bdlt_timetzformatter.h>

Detailed Description

This class facilitates faster access to a TimeTz object during printing by batching access to several fields in a single call during construction and caching them for quick access later.

See bdlt_timetzformatter

Public Member Functions

 TimeTzFormatter_Cache (const Time &localTime, int offset)
 
const TimeFormatter_Cachetime () const
 
int offset () const
 

Constructor & Destructor Documentation

◆ TimeTzFormatter_Cache()

bdlt::TimeTzFormatter_Cache::TimeTzFormatter_Cache ( const Time localTime,
int  offset 
)
inline

Populate the time format cache with the time portion of the specified value and cache the timezone offset.

Member Function Documentation

◆ offset()

int bdlt::TimeTzFormatter_Cache::offset ( ) const
inline

Return the offset.

◆ time()

const TimeFormatter_Cache & bdlt::TimeTzFormatter_Cache::time ( ) const
inline

Return the time format cache.


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