Constructors

Synopses

Declared in <bdlt_timetablecache.h>

Create an empty timetable cache with no timeout.

explicit
TimetableCache(
    TimetableLoader* loader,
    bslma::Allocator* basicAllocator = 0);

Create a timetable cache with the specified loader and timeout.

TimetableCache(
    TimetableLoader* loader,
    bsls::TimeInterval const& timeout,
    bslma::Allocator* basicAllocator = 0);

Parameters

Name

Description

loader

loader used to load timetables on demand

basicAllocator

allocator used to supply memory

timeout

interval after which cached timetables expire

Created with MrDocs