ROL
Public Member Functions | Protected Member Functions | Private Attributes | List of all members
ROL::Parametrize< Real > Class Template Reference

Provides the mix-in interface for making objects parametrized. More...

#include <ROL_Parametrize.hpp>

+ Inheritance diagram for ROL::Parametrize< Real >:

Public Member Functions

virtual ~Parametrize (void)
 
virtual void setParameter (const std::vector< Real > &param)
 Set the parameter. More...
 

Protected Member Functions

const std::vector< Real > getParameter (void) const
 Return the parameter. More...
 

Private Attributes

std::vector< Real > param_
 

Detailed Description

template<class Real>
class ROL::Parametrize< Real >

Provides the mix-in interface for making objects parametrized.

ROL::Parametrize is used to make ROL::Objective's and ROL::EqualityConstraint's parametrized. ROL::Parametrize contains a single parameter (std::vector) and has methods for setting and getting the parameter. By using a mix-in (multiple inheritence) to define class such as ROL::ParametrizedObjective_SimOpt and ROL::ParametrizedEqualityConstraint_SimOpt we avoid diamond interitance.

Definition at line 62 of file ROL_Parametrize.hpp.

Constructor & Destructor Documentation

template<class Real >
virtual ROL::Parametrize< Real >::~Parametrize ( void  )
inlinevirtual

Definition at line 74 of file ROL_Parametrize.hpp.

Member Function Documentation

template<class Real >
const std::vector<Real> ROL::Parametrize< Real >::getParameter ( void  ) const
inlineprotected

Return the parameter.

Definition at line 69 of file ROL_Parametrize.hpp.

References ROL::Parametrize< Real >::param_.

template<class Real >
virtual void ROL::Parametrize< Real >::setParameter ( const std::vector< Real > &  param)
inlinevirtual

Set the parameter.

Parameters
[in]paramis a user-provided parameter

The internal storage copies the input.

Reimplemented in ROL::Reduced_ParametrizedObjective_SimOpt< Real >, ROL::ParametrizedCompositeObjective_SimOpt< Real >, and ROL::ParametrizedCompositeObjective< Real >.

Definition at line 81 of file ROL_Parametrize.hpp.

References ROL::Parametrize< Real >::param_.

Member Data Documentation

template<class Real >
std::vector<Real> ROL::Parametrize< Real >::param_
private

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