MueLu
Version of the Day
Toggle main menu visibility
Loading...
Searching...
No Matches
MueLu_FacadeClassBase_decl.hpp
Go to the documentation of this file.
1
// @HEADER
2
// *****************************************************************************
3
// MueLu: A package for multigrid based preconditioning
4
//
5
// Copyright 2012 NTESS and the MueLu contributors.
6
// SPDX-License-Identifier: BSD-3-Clause
7
// *****************************************************************************
8
// @HEADER
9
10
#ifndef PACKAGES_MUELU_SRC_INTERFACE_FACADECLASSES_MUELU_FACADECLASSBASE_DECL_HPP_
11
#define PACKAGES_MUELU_SRC_INTERFACE_FACADECLASSES_MUELU_FACADECLASSBASE_DECL_HPP_
12
13
#include "
MueLu_BaseClass.hpp
"
14
15
namespace
MueLu
{
16
17
template
<
class
Scalar
=
DefaultScalar
,
18
class
LocalOrdinal
=
DefaultLocalOrdinal
,
19
class
GlobalOrdinal
=
DefaultGlobalOrdinal
,
20
class
Node
=
DefaultNode
>
21
class
FacadeClassBase
22
:
public
virtual
BaseClass
{
23
#undef MUELU_FACADECLASSBASE_SHORT
24
#include "
MueLu_UseShortNames.hpp
"
25
26
public
:
28
29
31
FacadeClassBase
();
32
34
virtual
~FacadeClassBase
() {}
35
37
42
virtual
Teuchos::RCP<Teuchos::ParameterList>
SetParameterList
(
const
Teuchos::ParameterList& paramList) = 0;
43
44
protected
:
47
std::string
ReplaceString
(std::string& subject,
const
std::string& search,
const
std::string& replace) {
48
size_t
pos = 0;
49
while
((pos = subject.find(search, pos)) != std::string::npos) {
50
subject.replace(pos, search.length(), replace);
51
pos += replace.length();
52
}
53
return
subject;
54
}
55
};
56
57
}
// namespace MueLu
58
59
#define MUELU_FACADECLASSBASE_SHORT
60
61
#endif
/* PACKAGES_MUELU_SRC_INTERFACE_FACADECLASSES_MUELU_FACADECLASSBASE_DECL_HPP_ */
MueLu_BaseClass.hpp
LocalOrdinal
MueLu::DefaultLocalOrdinal LocalOrdinal
Definition
MueLu_UseDefaultTypes.hpp:13
Scalar
MueLu::DefaultScalar Scalar
Definition
MueLu_UseDefaultTypes.hpp:12
GlobalOrdinal
MueLu::DefaultGlobalOrdinal GlobalOrdinal
Definition
MueLu_UseDefaultTypes.hpp:14
Node
MueLu::DefaultNode Node
Definition
MueLu_UseDefaultTypes.hpp:15
MueLu_UseShortNames.hpp
MueLu::BaseClass
Base class for MueLu classes.
Definition
MueLu_BaseClass.hpp:27
MueLu::FacadeClassBase::~FacadeClassBase
virtual ~FacadeClassBase()
Destructor.
Definition
MueLu_FacadeClassBase_decl.hpp:34
MueLu::FacadeClassBase::ReplaceString
std::string ReplaceString(std::string &subject, const std::string &search, const std::string &replace)
Replace all occurrences of search string "search" by the string in "replace" given the string "subjec...
Definition
MueLu_FacadeClassBase_decl.hpp:47
MueLu::FacadeClassBase::SetParameterList
virtual Teuchos::RCP< Teuchos::ParameterList > SetParameterList(const Teuchos::ParameterList ¶mList)=0
Set parameter list for FacadeClass (abstract member).
MueLu::FacadeClassBase::FacadeClassBase
FacadeClassBase()
Constructor.
Definition
MueLu_FacadeClassBase_def.hpp:22
MueLu
Namespace for MueLu classes and methods.
Definition
MueLu_BrickAggregationFactory_decl.hpp:42
MueLu::DefaultNode
Tpetra::KokkosClassic::DefaultNode::DefaultNodeType DefaultNode
Definition
MueLu_Details_DefaultTypes.hpp:32
MueLu::DefaultGlobalOrdinal
int DefaultGlobalOrdinal
Definition
MueLu_Details_DefaultTypes.hpp:29
MueLu::DefaultLocalOrdinal
int DefaultLocalOrdinal
Definition
MueLu_Details_DefaultTypes.hpp:22
MueLu::DefaultScalar
Tpetra::Details::DefaultTypes::scalar_type DefaultScalar
Definition
MueLu_Details_DefaultTypes.hpp:20
src
Interface
FacadeClasses
MueLu_FacadeClassBase_decl.hpp
Generated by
1.17.0