Teuchos - Trilinos Tools Package
Version of the Day
Toggle main menu visibility
Loading...
Searching...
No Matches
parameterlist
src
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
"
15
#include "
Teuchos_ParameterList.hpp
"
16
17
18
namespace
Teuchos
{
19
20
29
class
TEUCHOSPARAMETERLIST_LIB_DLL_EXPORT
ParameterListAcceptorDefaultBase
:
virtual
public
ParameterListAcceptor
{
30
public
:
31
34
36
RCP<ParameterList>
getNonconstParameterList
();
38
RCP<ParameterList>
unsetParameterList
();
40
RCP<const ParameterList>
getParameterList
()
const
;
41
43
44
protected
:
45
48
50
void
setMyParamList
(
const
RCP<ParameterList>
¶mList );
51
53
RCP<ParameterList>
getMyNonconstParamList
();
54
56
RCP<const ParameterList>
getMyParamList
()
const
;
57
59
60
private
:
61
62
RCP<ParameterList>
paramList_;
63
64
};
65
66
67
//
68
// Inline definitions
69
//
70
71
72
inline
73
void
ParameterListAcceptorDefaultBase::setMyParamList
(
74
const
RCP<ParameterList>
¶mList
75
)
76
{
77
paramList_ = paramList;
78
}
79
80
81
inline
82
RCP<ParameterList>
83
ParameterListAcceptorDefaultBase::getMyNonconstParamList
()
84
{
85
return
paramList_;
86
}
87
88
89
inline
90
RCP<const ParameterList>
91
ParameterListAcceptorDefaultBase::getMyParamList
()
const
92
{
93
return
paramList_;
94
}
95
96
97
}
// end namespace Teuchos
98
99
100
#endif
// TEUCHOS_PARAMETER_LIST_ACCEPTOR_DEFAULT_BASE_HPP
Teuchos_ParameterList.hpp
Templated Parameter List class.
Teuchos_RCP.hpp
Reference-counted pointer class and non-member templated function implementations.
Teuchos::ParameterListAcceptorDefaultBase
Intermediate node base class for objects that accept parameter lists that implements some of the need...
Definition
Teuchos_ParameterListAcceptorDefaultBase.hpp:29
Teuchos::ParameterListAcceptorDefaultBase::setMyParamList
void setMyParamList(const RCP< ParameterList > ¶mList)
Definition
Teuchos_ParameterListAcceptorDefaultBase.hpp:73
Teuchos::ParameterListAcceptorDefaultBase::getParameterList
RCP< const ParameterList > getParameterList() const
Definition
Teuchos_ParameterListAcceptorDefaultBase.cpp:36
Teuchos::ParameterListAcceptorDefaultBase::getNonconstParameterList
RCP< ParameterList > getNonconstParameterList()
Definition
Teuchos_ParameterListAcceptorDefaultBase.cpp:20
Teuchos::ParameterListAcceptorDefaultBase::unsetParameterList
RCP< ParameterList > unsetParameterList()
Definition
Teuchos_ParameterListAcceptorDefaultBase.cpp:27
Teuchos::ParameterListAcceptorDefaultBase::getMyNonconstParamList
RCP< ParameterList > getMyNonconstParamList()
Definition
Teuchos_ParameterListAcceptorDefaultBase.hpp:83
Teuchos::ParameterListAcceptorDefaultBase::getMyParamList
RCP< const ParameterList > getMyParamList() const
Definition
Teuchos_ParameterListAcceptorDefaultBase.hpp:91
Teuchos::ParameterListAcceptor
Interface for objects that can accept a ParameterList.
Definition
Teuchos_ParameterListAcceptor.hpp:120
Teuchos::RCP
Smart reference counting pointer class for automatic garbage collection.
Definition
Teuchos_RCPDecl.hpp:397
Teuchos
The Teuchos namespace contains all of the classes, structs and enums used by Teuchos,...
Generated by
1.17.0