$extrastylesheet
Dakota
Version 6.2
|
Container class for response functions and their derivatives. SimulationResponse provides the body class. More...
Public Member Functions | |
SimulationResponse () | |
default constructor | |
SimulationResponse (const Variables &vars, const ProblemDescDB &problem_db) | |
standard constructor built from problem description database | |
SimulationResponse (const SharedResponseData &srd, const ActiveSet &set) | |
alternate constructor that shares a SharedResponseData instance | |
SimulationResponse (const SharedResponseData &srd) | |
alternate constructor that shares a SharedResponseData instance | |
SimulationResponse (const ActiveSet &set) | |
alternate constructor using limited data | |
~SimulationResponse () | |
destructor |
Container class for response functions and their derivatives. SimulationResponse provides the body class.
The SimulationResponse class is the "representation" of the response container class. It is the "body" portion of the "handle-body idiom" (see Coplien "Advanced C++", p. 58). The handle class (Response) provides for memory efficiency in management of multiple response objects through reference counting and representation sharing. The body class (SimulationResponse) actually contains the response data (functionValues, functionGradients, functionHessians, etc.). The representation is hidden in that an instance of SimulationResponse may only be created by Response. Therefore, programmers create instances of the Response handle class, and only need to be aware of the handle/body mechanisms when it comes to managing shallow copies (shared representation) versus deep copies (separate representation used for history mechanisms).