Public Member Functions | Protected Member Functions
MixedVariables Class Reference

Derived class within the Variables hierarchy which employs the default data view (no variable or domain type array merging). More...

Inheritance diagram for MixedVariables:
Variables

List of all members.

Public Member Functions

 MixedVariables (const ProblemDescDB &problem_db, const std::pair< short, short > &view)
 standard constructor
 MixedVariables (const SharedVariablesData &svd)
 lightweight constructor
 ~MixedVariables ()
 destructor

Protected Member Functions

void read (std::istream &s)
 read a variables object from an std::istream
void write (std::ostream &s) const
 write a variables object to an std::ostream
void write_aprepro (std::ostream &s) const
 write a variables object to an std::ostream in aprepro format
void read_tabular (std::istream &s)
void write_tabular (std::ostream &s) const
 write a variables object in tabular format to an std::ostream
void reshape (const SizetArray &vc_totals)
 reshapes an existing Variables object based on the incoming variablesComponents
void build_active_views ()
 construct active views of all variables arrays
void build_inactive_views ()
 construct inactive views of all variables arrays

Detailed Description

Derived class within the Variables hierarchy which employs the default data view (no variable or domain type array merging).

Derived variables classes take different views of the design, uncertain, and state variable types and the continuous and discrete domain types. The MixedVariables derived class separates the design, uncertain, and state variable types as well as the continuous and discrete domain types. The result is separate arrays for continuous design, discrete design, uncertain, continuous state, and discrete state variables. This is the default approach, so all iterators and strategies not specifically utilizing the All or Merged views use this approach (see Variables::get_variables(problem_db)).


Constructor & Destructor Documentation

MixedVariables ( const ProblemDescDB problem_db,
const std::pair< short, short > &  view 
)

standard constructor

In this class, the distinct approach is used (design, uncertain, and state variable types and continuous and discrete domain types are distinct). Most iterators/strategies use this approach.

References Variables::allContinuousVars, Variables::allDiscreteIntVars, Variables::allDiscreteRealVars, Variables::build_views(), SharedVariablesData::components_totals(), Dakota::copy_data_partial(), ProblemDescDB::get_idv(), ProblemDescDB::get_rdv(), Variables::sharedVarsData, and SharedVariablesData::vc_lookup().


Member Function Documentation

void read_tabular ( std::istream &  s) [protected, virtual]

Presumes variables object is already appropriately sized to receive!

Reimplemented from Variables.

References Variables::allContinuousVars, Variables::allDiscreteIntVars, Variables::allDiscreteRealVars, and Dakota::read_data_tabular().


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