Teuchos - Trilinos Tools Package Version of the Day
Loading...
Searching...
No Matches
Teuchos_ParameterListAcceptorDefaultBase.hpp
1// @HEADER
2// *****************************************************************************
3// Teuchos: Common Tools Package
4//
5// Copyright 2004 NTESS and the Teuchos contributors.
6// SPDX-License-Identifier: BSD-3-Clause
7// *****************************************************************************
8// @HEADER
9
10#ifndef TEUCHOS_PARAMETER_LIST_ACCEPTOR_DEFAULT_BASE_HPP
11#define TEUCHOS_PARAMETER_LIST_ACCEPTOR_DEFAULT_BASE_HPP
12
13#include "Teuchos_ParameterListAcceptor.hpp"
14#include "Teuchos_RCP.hpp"
16
17
18namespace Teuchos {
19
20
29class TEUCHOSPARAMETERLIST_LIB_DLL_EXPORT ParameterListAcceptorDefaultBase : virtual public ParameterListAcceptor {
30public:
31
34
41
43
44protected:
45
48
50 void setMyParamList( const RCP<ParameterList> &paramList );
51
54
57
59
60private:
61
62 RCP<ParameterList> paramList_;
63
64};
65
66
67//
68// Inline definitions
69//
70
71
72inline
74 const RCP<ParameterList> &paramList
75 )
76{
77 paramList_ = paramList;
78}
79
80
81inline
87
88
89inline
92{
93 return paramList_;
94}
95
96
97} // end namespace Teuchos
98
99
100#endif // TEUCHOS_PARAMETER_LIST_ACCEPTOR_DEFAULT_BASE_HPP
Templated Parameter List class.
Reference-counted pointer class and non-member templated function implementations.
Intermediate node base class for objects that accept parameter lists that implements some of the need...
Interface for objects that can accept a ParameterList.
Smart reference counting pointer class for automatic garbage collection.
The Teuchos namespace contains all of the classes, structs and enums used by Teuchos,...