Teuchos Package Browser (Single Doxygen Collection)  Version of the Day
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Macros Groups Pages
AlgorithmA.hpp
Go to the documentation of this file.
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 
12 
13 #ifndef TEUCHOS_ALGORITHM_A_HPP
14 #define TEUCHOS_ALGORITHM_A_HPP
15 
16 
17 void someDumbFunction( std::ostream &out, const std::string &indentSpacer );
18 
19 
20 void someLessDumbFunction( std::ostream &out_arg );
21 
22 
23 // This is a typical numerical class that derives from VerboseObject and does
24 // outputting. Note that the use of the OSTab class requires initialization
25 // using VerboseObject::getOSTab(...) which takes care of the hassles and is
26 // easy to use.
27 //
28 // This class also derives from ParameterListAcceptor and uses helper
29 // functio ns to read options for VerboseObject from a parameter sublist.
31  : public Teuchos::VerboseObject<AlgorithmA>,
33 {
34 public:
35 
36  // Constructor(s)
37 
38  AlgorithmA();
39 
40  // Overridden from ParameterListAcceptor
41 
43 
45 
47 
49 
51 
52  // Other functions
53 
54  void doAlgorithm();
55 
56 private:
57 
59 
60  static const std::string toString( AlgorithmA::EAlgoType algoType );
61 
64  double algoTol_;
65 
66 };
67 
68 
69 #endif // TEUCHOS_ALGORITHM_A_HPP
void setParameterList(Teuchos::RCP< Teuchos::ParameterList > const &paramList)
Set parameters from a parameter list and return with default values.
Definition: AlgorithmA.cpp:82
EAlgoType algoType_
Definition: AlgorithmA.hpp:63
Teuchos::RCP< Teuchos::ParameterList > unsetParameterList()
Unset the parameter list that was set using setParameterList().
Definition: AlgorithmA.cpp:121
void someDumbFunction(std::ostream &out, const std::string &indentSpacer)
Definition: AlgorithmA.cpp:19
Templated base class for objects that can print their activities to a stream and have a verbosity lev...
Teuchos::RCP< const Teuchos::ParameterList > getValidParameters() const
Return a ParameterList containing all of the valid parameters that this-&gt;setParameterList(...) will accept, along with any validators.
Definition: AlgorithmA.cpp:137
Teuchos::RCP< const Teuchos::ParameterList > getParameterList() const
Get const version of the parameter list that was set using setParameterList().
Definition: AlgorithmA.cpp:130
Interface for objects that can accept a ParameterList.
static const std::string toString(AlgorithmA::EAlgoType algoType)
Definition: AlgorithmA.cpp:63
double algoTol_
Definition: AlgorithmA.hpp:64
void someLessDumbFunction(std::ostream &out_arg)
Definition: AlgorithmA.cpp:33
Teuchos::RCP< Teuchos::ParameterList > paramList_
Definition: AlgorithmA.hpp:62
void doAlgorithm()
Definition: AlgorithmA.cpp:165
Teuchos::RCP< Teuchos::ParameterList > getNonconstParameterList()
Get a nonconst version of the parameter list that was set using setParameterList().
Definition: AlgorithmA.cpp:114