Belos Package Browser (Single Doxygen Collection)  Development
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Macros Groups Pages
Belos_Details_registerLinearSolverFactory.hpp
Go to the documentation of this file.
1 // @HEADER
2 // *****************************************************************************
3 // Belos: Block Linear Solvers Package
4 //
5 // Copyright 2004-2016 NTESS and the Belos contributors.
6 // SPDX-License-Identifier: BSD-3-Clause
7 // *****************************************************************************
8 // @HEADER
9 
10 #ifndef BELOS_DETAILS_REGISTERLINEARSOLVERFACTORY_HPP
11 #define BELOS_DETAILS_REGISTERLINEARSOLVERFACTORY_HPP
12 
15 
16 #include "BelosConfigDefs.hpp"
17 
18 namespace Belos {
19 namespace Details {
20 
58 
59 } // namespace Details
60 } // namespace Belos
61 
62 namespace { // (anonymous)
63 
64 // \class RegisterLinearSolverFactory
65 // \brief Register Belos' solver factory/ies with the central registry.
66 //
67 // \warning NOT FOR USERS. ONLY FOR USE IN THIS FILE.
68 //
69 // Invoke this class' constructor to register Belos's solver
70 // factory/ies with the central registry, for all template parameter
71 // combinations that Belos enabled. You need not keep the instance of
72 // the class around; the constructor has a side effect if it returns.
73 // (This is the C++ way of doing
74 // <tt>__attribute__((constructor))</tt>, without actually requiring
75 // the syntax extension.)
76 class RegisterLinearSolverFactory {
77 public:
78  RegisterLinearSolverFactory () {
80  }
81 };
82 
83 // Creating an instance of RegisterLinearSolverFactory invokes its
84 // constructor, which has the side effect of calling
85 // Belos::Details::registerLinearSolverFactory().
86 RegisterLinearSolverFactory registerIt;
87 
88 } // namespace (anonymous)
89 
90 #endif /* BELOS_DETAILS_REGISTERLINEARSOLVERFACTORY_HPP */
Belos header file which uses auto-configuration information to include necessary C++ headers...
void registerLinearSolverFactory()
Register Belos&#39; LinearSolverFactory with the central repository, for all enabled combinations of temp...