Dakota  Version 6.20
Explore and Predict with Confidence
Public Member Functions | Private Member Functions | Private Attributes | List of all members
ResultsEntry< StoredType > Class Template Reference

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
 

Detailed Description

template<typename StoredType>
class Dakota::ResultsEntry< StoredType >

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.

Constructor & Destructor Documentation

◆ ResultsEntry()

ResultsEntry ( )
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


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