Dakota
Version 6.21
Explore and Predict with Confidence
|
Public Member Functions | |
virtual void | flush () const |
If supported, flush data to the database or disk. | |
virtual void | allocate_vector (const StrStrSizet &iterator_id, const StringArray &location, ResultsOutputType stored_type, const int &len, const DimScaleMap &scales=DimScaleMap(), const AttributeArray &attrs=AttributeArray())=0 |
Pre-allocate a vector and (optionally) attach dimension scales and attributes. Insert elements using insert_into(...) | |
virtual 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())=0 |
Pre-allocate a matrix and (optionally) attach dimension scales and attributes. Insert rows or columns using insert_into(...) | |
virtual 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)=0 |
addition with dimension scales and attributes | |
virtual void | insert_into (const StrStrSizet &iterator_id, const StringArray &location, const boost::any &data, const int &index, const bool &row)=0 |
Insert a row or column into a pre-allocated matrix. | |
virtual void | add_metadata_to_method (const StrStrSizet &iterator_id, const AttributeArray &attrs)=0 |
Add key:value metadata to a method. | |
virtual void | add_metadata_to_execution (const StrStrSizet &iterator_id, const AttributeArray &attrs)=0 |
Add key:value metadata to an execution. | |
virtual void | add_metadata_to_object (const StrStrSizet &iterator_id, const StringArray &location, const AttributeArray &attrs)=0 |
Associate key:value metadata with the object at the location. | |
virtual void | add_metadata_to_study (const AttributeArray &attrs)=0 |
Associate key:value metadata to the study. | |
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... | |
virtual void | insert (const StrStrSizet &iterator_id, const std::string &data_name, const boost::any &result, const MetaDataType &metadata)=0 |
record addition with metadata map | |
Protected Attributes | |
std::map< ResultsKeyType, ResultsValueType > | iteratorData |
core data storage (map from key to value type) | |
Class: ResultsDBBase
Description: A map-based container to store DAKOTA Iterator results in underlying boost::anys, with optional metadata
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
insert requires previous allocation, and does not allow metadata update
References Dakota::abort_handler(), ResultsDBBase::iteratorData, and Dakota::make_key().