Private Member Functions | Private Attributes | Friends
SharedVariablesDataRep Class Reference

The representation of a SharedVariablesData instance. This representation, or body, may be shared by multiple SharedVariablesData handle instances. More...

List of all members.

Private Member Functions

 SharedVariablesDataRep (const ProblemDescDB &problem_db, const std::pair< short, short > &view)
 standard constructor
 SharedVariablesDataRep (const std::pair< short, short > &view, const SizetArray &vars_comps_totals)
 lightweight constructor
 ~SharedVariablesDataRep ()
 destructor
void size_all_continuous_labels (bool relax)
 size allContinuousLabels, with or without discrete relaxation
void initialize_all_continuous_types (bool relax)
 initialize allContinuousTypes, with or without discrete relaxation
void initialize_all_continuous_ids (bool relax)
 initialize allContinuousIds, with or without discrete relaxation
void size_all_discrete_int_labels ()
 size allDiscreteIntLabels
void initialize_all_discrete_int_types ()
 initialize allDiscreteIntTypes
void size_all_discrete_real_labels ()
 size allDiscreteRealLabels
void initialize_all_discrete_real_types ()
 initialize allDiscreteRealTypes
size_t vc_lookup (unsigned short key) const
 retrieve the count within variablesComponents corresponding to key

Private Attributes

String idVariables
 variables identifier string from the input file
std::pair< short, short > variablesView
 the variables view pair containing active (first) and inactive (second) view enumerations
std::map< unsigned short, size_t > variablesComponents
 map linking variable types to counts
SizetArray variablesCompsTotals
 totals for variable type counts for {continuous,discrete integer,discrete real} {design,aleatory uncertain,epistemic uncertain,state}
StringMultiArray allContinuousLabels
 array of variable labels for all of the continuous variables
StringMultiArray allDiscreteIntLabels
 array of variable labels for all of the discrete integer variables
StringMultiArray allDiscreteRealLabels
 array of variable labels for all of the discrete real variables
UShortMultiArray allContinuousTypes
 array of variable types for all of the continuous variables
UShortMultiArray allDiscreteIntTypes
 array of variable types for all of the discrete integer variables
UShortMultiArray allDiscreteRealTypes
 array of variable types for all of the discrete real variables
SizetMultiArray allContinuousIds
 array of 1-based position identifiers for the all continuous variables array
SizetArray mergedDiscreteIds
 array of discrete variable identifiers for which the discrete requirement is relaxed by merging them into a continuous array
int referenceCount
 number of handle objects sharing svdRep

Friends

class SharedVariablesData

Detailed Description

The representation of a SharedVariablesData instance. This representation, or body, may be shared by multiple SharedVariablesData handle instances.

The SharedVariablesData/SharedVariablesDataRep pairs utilize a handle-body idiom (Coplien, Advanced C++).


Constructor & Destructor Documentation

SharedVariablesDataRep ( const ProblemDescDB problem_db,
const std::pair< short, short > &  view 
) [private]

standard constructor

This constructor is the one which must build the base class data for all derived classes. get_variables() instantiates a derived class letter and the derived constructor selects this base class constructor in its initialization list (to avoid the recursion of the base class constructor calling get_variables() again). Since the letter IS the representation, its representation pointer is set to NULL (an uninitialized pointer causes problems in ~Variables).

References SharedVariablesDataRep::allContinuousLabels, SharedVariablesDataRep::allDiscreteIntLabels, SharedVariablesDataRep::allDiscreteRealLabels, Dakota::copy_data_partial(), ProblemDescDB::get_dsa(), ProblemDescDB::get_sizet(), SharedVariablesDataRep::initialize_all_continuous_ids(), SharedVariablesDataRep::initialize_all_continuous_types(), SharedVariablesDataRep::initialize_all_discrete_int_types(), SharedVariablesDataRep::initialize_all_discrete_real_types(), SharedVariablesDataRep::variablesComponents, SharedVariablesDataRep::variablesCompsTotals, and SharedVariablesDataRep::variablesView.


Member Data Documentation

SizetMultiArray allContinuousIds [private]

array of 1-based position identifiers for the all continuous variables array

These identifiers define positions of the all continuous variables array within the total variable sequence.

Referenced by SharedVariablesDataRep::initialize_all_continuous_ids().


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