Dakota  Version 6.15
Explore and Predict with Confidence
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Pages
Public Member Functions | Private Member Functions | Private Attributes | Static Private Attributes | List of all members
ResultsDBHDF5 Class Reference

Manage interactions between ResultsManager and the low-level HDFIOHelper class. More...

Inheritance diagram for ResultsDBHDF5:
ResultsDBBase

Public Member Functions

 ResultsDBHDF5 (bool in_core, std::shared_ptr< HDF5IOHelper > hdf5_helper_ptr)
 
void flush () const override
 Flush HDF5 cache to disk.
 
void allocate_vector (const StrStrSizet &iterator_id, const StringArray &location, ResultsOutputType stored_type, const int &len, const DimScaleMap &scales=DimScaleMap(), const AttributeArray &attrs=AttributeArray()) override
 Pre-allocate a vector and (optionally) attach dimension scales and attributes. Insert elements using insert_into(...)
 
void allocate_matrix (const StrStrSizet &iterator_id, const StringArray &location, ResultsOutputType stored_type, const int &num_rows, const int &num_cols, const DimScaleMap &scales=DimScaleMap(), const AttributeArray &attrs=AttributeArray()) override
 Pre-allocate a matrix and (optionally) attach dimension scales and attributes. Insert rows or columns using insert_into(...)
 
void insert_into (const StrStrSizet &iterator_id, const StringArray &location, const boost::any &data, const int &index, const bool &row) override
 Insert a row or column into a pre-allocated matrix.
 
void insert (const StrStrSizet &iterator_id, const StringArray &location, const boost::any &data, const DimScaleMap &scales=DimScaleMap(), const AttributeArray &attrs=AttributeArray(), const bool &transpose=false) override
 insert an arbitrary type (eg RealMatrix) with scales
 
void add_metadata_to_method (const StrStrSizet &iterator_id, const AttributeArray &attrs) override
 Add attributes to the HDF5 method group.
 
void add_metadata_to_execution (const StrStrSizet &iterator_id, const AttributeArray &attrs) override
 Add attributes to the HDF5 execution group.
 
void add_metadata_to_object (const StrStrSizet &iterator_id, const StringArray &location, const AttributeArray &attrs) override
 Associate key:value metadata with the object at the location.
 
void add_metadata_to_study (const AttributeArray &attrs) override
 Associate key:value metadata with the study.
 
void insert (const StrStrSizet &iterator_id, const std::string &data_name, const boost::any &result, const MetaDataType &metadata) override
 record addition with metadata map
 
template<typename StoredType >
void array_allocate (const StrStrSizet &iterator_id, const std::string &data_name, size_t array_size, const MetaDataType &metadata)
 allocate an entry with sized array of the StoredType, e.g., array across response functions or optimization results sets
 
template<typename StoredType >
void array_insert (const StrStrSizet &iterator_id, const std::string &data_name, size_t index, const StoredType &stored_data)
 
- Public Member Functions inherited from ResultsDBBase
template<typename StoredType >
void array_allocate (const StrStrSizet &iterator_id, const std::string &data_name, size_t array_size, const MetaDataType &metadata)
 allocate an entry with sized array of the StoredType, e.g., array across response functions or optimization results sets
 
template<typename StoredType >
void array_insert (const StrStrSizet &iterator_id, const std::string &data_name, size_t index, const StoredType &sent_data)
 insert sent_data in specified position in previously allocated array More...
 

Private Member Functions

void attach_scales (const String &dset_name, const StrStrSizet &iterator_id, const StringArray &location, const DimScaleMap &scales)
 Attach a scale to a dataset.
 
void add_attributes (const String &linkname, const AttributeArray &attrs)
 Add attributes to the object with linkname.
 
void add_name_to_method (const StrStrSizet &iterator_id)
 Add the name (Dakota keyword) as metadata to a method group.
 
bool method_in_cache (const StrStrSizet &iterator_id) const
 Check whether the name has already been added to a method group.
 

Private Attributes

std::set< String > methodIdCache
 Cached method Ids; used to know which methods have already had their method_name attribute set. Hopefully faster than querying the HDF5 file.
 
std::shared_ptr< HDF5IOHelperhdf5Stream
 Instance of HDF5IOHelper (must be a pointer because it's shared with the global evaluation store instance.
 

Static Private Attributes

static const std::string outputVersion = "2.1.0"
 Version of the output file. See comments near the definition in ResultsDBHDF5.cpp.
 

Additional Inherited Members

- Protected Attributes inherited from ResultsDBBase
std::map< ResultsKeyType,
ResultsValueType
iteratorData
 core data storage (map from key to value type)
 

Detailed Description

Manage interactions between ResultsManager and the low-level HDFIOHelper class.


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