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

#include <bdlt_timeformatter.h>

Detailed Description

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

See bdlt_timeformatter

Public Member Functions

 TimeFormatter_Cache (const Time &value)
 
int hour () const
 
int minute () const
 
int second () const
 
int millisecond () const
 
int microsecond () const
 

Constructor & Destructor Documentation

◆ TimeFormatter_Cache()

bdlt::TimeFormatter_Cache::TimeFormatter_Cache ( const Time value)
inlineexplicit

Populate all the data members of this class with a call to getTime on the specified value.

Member Function Documentation

◆ hour()

int bdlt::TimeFormatter_Cache::hour ( ) const
inline

Return the cached hour field.

◆ microsecond()

int bdlt::TimeFormatter_Cache::microsecond ( ) const
inline

Return the cached microsecond field.

◆ millisecond()

int bdlt::TimeFormatter_Cache::millisecond ( ) const
inline

Return the cached millisecone field.

◆ minute()

int bdlt::TimeFormatter_Cache::minute ( ) const
inline

Return the cached minute field.

◆ second()

int bdlt::TimeFormatter_Cache::second ( ) const
inline

Return the cached second field.


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