$extrastylesheet
Dakota
Version 6.2
|
Container class encapsulating variables data that can be shared among a set of Response instances. More...
Public Member Functions | |
SharedResponseData () | |
default constructor | |
SharedResponseData (const ProblemDescDB &problem_db) | |
standard constructor | |
SharedResponseData (const ActiveSet &set) | |
alternate on-the-fly constructor (explicit disallows its use for implicit type conversion so that instantiations of Response(set) are invalid) | |
SharedResponseData (const SharedResponseData &srd) | |
copy constructor | |
~SharedResponseData () | |
destructor | |
SharedResponseData & | operator= (const SharedResponseData &srd) |
assignment operator | |
bool | operator== (const SharedResponseData &other) |
experimental operator== for use in unit testing | |
size_t | num_scalar_responses () const |
number of scalar responses | |
size_t | num_field_response_groups () const |
number of field response groups | |
size_t | num_response_groups () const |
total number of response groups (scalars + field groups) | |
size_t | num_field_functions () const |
total number of field functions (1-norm of fieldRespGroupLengths) | |
size_t | num_functions () const |
total number of response functions (scalars + 1-norm of fieldRespGroupLengths) | |
const IntVector & | field_lengths () const |
index of field lengths for field data | |
void | field_lengths (const IntVector &field_lengths) |
set field lengths (if experiment different from simulation) | |
const IntVector & | num_coords_per_field () const |
dimensions of each function | |
const String & | function_label (size_t i) const |
return a response function identifier string | |
const StringArray & | function_labels () const |
return the response function identifier strings | |
StringArray & | function_labels () |
return the response function identifier strings | |
void | function_label (const String &label, size_t i) |
set a response function identifier string | |
void | function_labels (const StringArray &labels) |
set the response function identifier strings | |
const StringArray & | field_group_labels () |
return the coarse (per-group) field response labels | |
void | field_group_labels (const StringArray &field_labels) |
set the coarse field group labels (must agree with number fields) | |
const String & | responses_id () const |
return the response identifier | |
short | response_type () const |
return the response type: {BASE,SIMULATION,EXPERIMENT}_RESPONSE | |
void | response_type (short type) |
set the response type: {BASE,SIMULATION,EXPERIMENT}_RESPONSE | |
short | primary_fn_type () const |
get the primary function type (generic, objective, calibration) | |
void | primary_fn_type (short type) |
set the primary function type (generic, objective, calibration) | |
SharedResponseData | copy () const |
create a deep copy of the current object and return by value | |
void | reshape (size_t num_fns) |
reshape the data, disconnecting a shared rep if necessary | |
bool | is_null () const |
return true if empty handle with null representation | |
long | reference_count () const |
how many handles (including this) are sharing this representation (body); for debugging/testing only | |
Private Member Functions | |
template<class Archive > | |
void | serialize (Archive &ar, const unsigned int version) |
serialize through the pointer, which requires object tracking: write and read are symmetric for this class | |
Private Attributes | |
boost::shared_ptr < SharedResponseDataRep > | srdRep |
pointer to the body (handle-body idiom) | |
Friends | |
class | boost::serialization::access |
allow boost access to serialize this class |
Container class encapsulating variables data that can be shared among a set of Response instances.
An array of Response objects (e.g., Analyzer::allResponse) contains repeated configuration data (id's, labels, counts). SharedResponseData employs a handle-body idiom to allow this shared data to be managed in a single object with many references to it, one per Response object in the array. This allows scaling to larger sample sets.