Sacado Package Browser (Single Doxygen Collection)  Version of the Day
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Macros Groups Pages
Sacado_ParameterAccessorImp.hpp
Go to the documentation of this file.
1 // @HEADER
2 // *****************************************************************************
3 // Sacado Package
4 //
5 // Copyright 2006 NTESS and the Sacado contributors.
6 // SPDX-License-Identifier: LGPL-2.1-or-later
7 // *****************************************************************************
8 // @HEADER
9 
11 
12 template <typename EvalType, typename EvalTypeTraits>
14 registerSacadoParameter(const std::string& name,
15  ParamLib& paramLib)
16 {
17  pr_.push_back(Teuchos::rcp(
19  name, this, paramLib)));
20 }
21 
22 template <typename EvalType, typename EvalTypeTraits>
24 registerSacadoParameter(const std::string& name,
25  const Teuchos::RCP<ParamLib>& paramLib)
26 {
27  pr_.push_back(Teuchos::rcp(
29  name, this, paramLib)));
30 }
Parameter class for simple registration of a parameter with a Parameter Library. Requires a parameter...
TEUCHOS_DEPRECATED RCP< T > rcp(T *p, Dealloc_T dealloc, bool owns_mem)
void registerSacadoParameter(const std::string &name, ParamLib &paramLib)
Specialization of Sacado::ParameterLibraryBase for scalar parameters.