MueLu  Version of the Day
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Macros Groups Pages
MueLu_DisableMultipleCallCheck.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 MUELU_DISABLEMULTIPLECALLCHECK_HPP
11 #define MUELU_DISABLEMULTIPLECALLCHECK_HPP
12 
13 #include <Teuchos_RCP.hpp>
14 
16 
17 namespace MueLu {
18 
21  public:
23  : fact_(fact) { fact_->DisableMultipleCallCheck(); }
24  ~DisableMultipleCallCheck() { fact_->EnableMultipleCallCheck(); }
25 
26  private:
28 };
29 
30 } // namespace MueLu
31 
32 #endif // MUELU_DISABLEMULTIPLECALLCHECK_HPP
const RCP< const TwoLevelFactoryBase > fact_
An exception safe way to call the method TwoLevelFactoryBase::DisableMultipleCallCheck.
DisableMultipleCallCheck(const RCP< const TwoLevelFactoryBase > &fact)