BloombergLP::bdlt::TimetableCache::lookupTimetable

Look up a timetable by name without loading it.

Synopsis

Declared in <bdlt_timetablecache.h>

bsl::shared_ptr<Timetable const>
lookupTimetable(char const* timetableName) const;

Description

Return a shared pointer providing non-modifiable access to the timetable having the specified timetableName in this timetable cache. If the timetable having timetableName is not found in the cache, or if the timetable has expired (i.e., per a timeout optionally supplied at construction), return an empty shared pointer.

Return Value

shared pointer to the timetable, or empty if not found

Parameters

NameDescription
timetableNamename of the timetable to look up