Container class encapsulating variables data that can be shared among a set of Variables instances. More...
Public Member Functions | |
| SharedVariablesData () | |
| default constructor | |
| SharedVariablesData (const ProblemDescDB &problem_db, const std::pair< short, short > &view) | |
| standard constructor | |
| SharedVariablesData (const std::pair< short, short > &view, const SizetArray &vars_comps_totals) | |
| lightweight constructor | |
| SharedVariablesData (const SharedVariablesData &svd) | |
| copy constructor | |
| ~SharedVariablesData () | |
| destructor | |
| SharedVariablesData & | operator= (const SharedVariablesData &svd) |
| assignment operator | |
| void | size_all_continuous_labels (bool relax) |
| size labels for all of the continuous variables, with or without discrete relaxation | |
| void | initialize_all_continuous_types (bool relax) |
| initialize types for all of the continuous variables, with or without discrete relaxation | |
| void | initialize_all_continuous_ids (bool relax) |
| initialize ids for all of the continuous variables, with or without discrete relaxation | |
| void | size_all_discrete_int_labels () |
| size labels for all of the discrete integer variables | |
| void | initialize_all_discrete_int_types () |
| initialize types for all of the discrete integer variables | |
| void | size_all_discrete_real_labels () |
| size labels for all of the discrete real variables | |
| void | initialize_all_discrete_real_types () |
| initialize types for all of the discrete real variables | |
| StringMultiArrayView | all_continuous_labels (size_t start, size_t num_items) const |
| get num_items continuous labels beginning at index start | |
| void | all_continuous_labels (StringMultiArrayConstView cv_labels, size_t start, size_t num_items) |
| set num_items continuous labels beginning at index start | |
| void | all_continuous_label (const String &cv_label, size_t index) |
| set continuous label at index start | |
| StringMultiArrayView | all_discrete_int_labels (size_t start, size_t num_items) const |
| get num_items discrete integer labels beginning at index start | |
| void | all_discrete_int_labels (StringMultiArrayConstView div_labels, size_t start, size_t num_items) |
| set num_items discrete integer labels beginning at index start | |
| void | all_discrete_int_label (const String &div_label, size_t index) |
| set discrete integer label at index start | |
| StringMultiArrayView | all_discrete_real_labels (size_t start, size_t num_items) const |
| get num_items discrete real labels beginning at index start | |
| void | all_discrete_real_labels (StringMultiArrayConstView drv_labels, size_t start, size_t num_items) |
| set num_items discrete real labels beginning at index start | |
| void | all_discrete_real_label (const String &drv_label, size_t index) |
| set discrete real label at index start | |
| UShortMultiArrayConstView | all_continuous_types (size_t start, size_t num_items) const |
| get num_items continuous types beginning at index start | |
| UShortMultiArrayConstView | all_discrete_int_types (size_t start, size_t num_items) const |
| get num_items discrete integer types beginning at index start | |
| UShortMultiArrayConstView | all_discrete_real_types (size_t start, size_t num_items) const |
| get num_items discrete real types beginning at index start | |
| SizetMultiArrayConstView | all_continuous_ids (size_t start, size_t num_items) const |
| get num_items continuous ids beginning at index start | |
| const SizetArray & | merged_discrete_ids () const |
| get ids of discrete variables that have been merged into continuous arrays | |
| const std::pair< short, short > & | view () const |
| retreive the Variables view | |
| void | inactive_view (short view2) |
| set the inactive Variables view | |
| const String & | id () const |
| return the user-provided or default Variables identifier | |
| const SizetArray & | components_totals () const |
| return variable type counts for {continuous,discrete integer,discrete real} {design,aleatory uncertain,epistemic uncertain,state} | |
| size_t | vc_lookup (unsigned short key) const |
| retrieve the variables type count within svdRep->variablesComponents corresponding to (a fine-grain variables type) key | |
Private Attributes | |
| SharedVariablesDataRep * | svdRep |
| pointer to the body (handle-body idiom) | |
Container class encapsulating variables data that can be shared among a set of Variables instances.
An array of Variables objects (e.g., Analyzer::allVariables) contains repeated configuration data (id's, labels, counts). SharedVariablesData employs a handle-body idiom to allow this shared data to be managed in a single object with many references to it, one per Variables object in the array. This allows scaling to larger sample sets.
1.7.6.1