Sacado Development
Public Types | Public Member Functions | Static Public Member Functions
Sacado::ScalarParameterLibrary< EvalTypeTraits > Class Template Reference

Specialization of Sacado::ParameterLibraryBase for scalar parameters. More...

#include <Sacado_ScalarParameterLibrary.hpp>

Inheritance diagram for Sacado::ScalarParameterLibrary< EvalTypeTraits >:
Inheritance graph
[legend]
Collaboration diagram for Sacado::ScalarParameterLibrary< EvalTypeTraits >:
Collaboration graph
[legend]

List of all members.

Public Types

typedef ParameterLibraryBase
< ScalarParameterFamily
< EvalTypeTraits >
, ScalarParameterEntry< _,
EvalTypeTraits > > 
BaseT
 Typename synonym of base class.

Public Member Functions

 ScalarParameterLibrary ()
 Default constructor.
virtual ~ScalarParameterLibrary ()
 Destructor.
void setRealValueForAllTypes (const std::string &name, double value)
 Set paramter value using a real number.
template<class EvalType >
void setRealValue (const std::string &name, double value)
 Set real parameter to value value.
template<class EvalType >
void setValue (const std::string &name, const typename EvalTypeTraits::template apply< EvalType >::type &value)
 Set parameter to value value.
template<class EvalType >
double getRealValue (const std::string &name) const
 Get parameter value.
template<class EvalType >
const EvalTypeTraits::template
apply< EvalType >::type & 
getValue (const std::string &name) const
 Get parameter value.
template<class EvalType >
void fillVector (const Teuchos::Array< std::string > &names, ScalarParameterVector< EvalTypeTraits > &pv)
 Fill a vector with the supplied parameter names.

Static Public Member Functions

static ScalarParameterLibrarygetInstance ()
 Returns a parameter library (singleton object).

Detailed Description

template<typename EvalTypeTraits = DefaultEvalTypeTraits>
class Sacado::ScalarParameterLibrary< EvalTypeTraits >

Specialization of Sacado::ParameterLibraryBase for scalar parameters.


Member Function Documentation

template<typename EvalTypeTraits >
template<class EvalType >
void Sacado::ScalarParameterLibrary< EvalTypeTraits >::fillVector ( const Teuchos::Array< std::string > &  names,
Sacado::ScalarParameterVector< EvalTypeTraits > &  pv 
)

Fill a vector with the supplied parameter names.

baseValue will be computed from each individual parameter using the corresponding evaluation type EvalType


The documentation for this class was generated from the following file:
 All Classes Namespaces Functions Variables Typedefs Enumerations Enumerator Friends