Dakota
Version 6.19
Explore and Predict with Confidence
|
Class to manage in-core vs. file database lookups. More...
Public Member Functions | |
ResultsEntry (const ResultsManager &results_mgr, const StrStrSizet &iterator_id, const std::string &data_name) | |
Construct ResultsEntry containing retrieved item of StoredType. | |
ResultsEntry (const ResultsManager &results_mgr, const StrStrSizet &iterator_id, const std::string &data_name, size_t array_index) | |
Construct ResultsEntry to retrieve item array_index from array of StoredType. | |
Private Member Functions | |
ResultsEntry () | |
return a reference to the stored data, whether from core or file More... | |
Private Attributes | |
bool | coreActive |
whether the ResultsManager has an active in-core database | |
StoredType | dbData |
data retrieved from file data base | |
const StoredType * | dbDataPtr |
non-const pointer to const data we don't own in the core case | |
Class to manage in-core vs. file database lookups.
ResultsEntry manages database lookups. If a core database is available, will return a reference directly to the stored data; if disk, will return reference to a local copy contained in this class. Allows disk-stored data to persist for minimum time during lookup to support true out-of-core use cases.
|
private |
return a reference to the stored data, whether from core or file
default construction disallowed: data must be initialized from DB lookup if needed