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

#include <bdlt_dateformatter.h>

Detailed Description

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

See bdlt_dateformatter

Public Member Functions

 DateFormatter_Cache (const Date &value)
 
int year () const
 
int month () const
 
int day () const
 
int dayOfWeek () const
 
int dayOfYear () const
 

Constructor & Destructor Documentation

◆ DateFormatter_Cache()

bdlt::DateFormatter_Cache::DateFormatter_Cache ( const Date value)
inline

Cache a copy the specified value and its year, month, and day fields.

Member Function Documentation

◆ day()

int bdlt::DateFormatter_Cache::day ( ) const
inline

Return the cached day field.

◆ dayOfWeek()

int bdlt::DateFormatter_Cache::dayOfWeek ( ) const
inline

Call the dayOfWeek accessor of the cached date and return the value.

◆ dayOfYear()

int bdlt::DateFormatter_Cache::dayOfYear ( ) const
inline

Call the dayOfYear accessor of the cached date and return the value.

◆ month()

int bdlt::DateFormatter_Cache::month ( ) const
inline

Return the cached month field.

◆ year()

int bdlt::DateFormatter_Cache::year ( ) const
inline

Return the cached year field.


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