Belos Package Browser (Single Doxygen Collection)
Development
|
A factory class for generating StatusTestOutput objects. More...
#include <BelosStatusTestOutputFactory.hpp>
Private Member Functions | |
StatusTestOutputFactory (void) | |
StatusTestOutputFactory (const StatusTestOutputFactory< ScalarType, MV, OP > &) | |
Private Attributes | |
int | outputStyle_ |
Teuchos::RCP< std::map < std::string, Teuchos::RCP < StatusTest< ScalarType, MV, OP > > > > | taggedTests_ |
Constructors/destructors | |
StatusTestOutputFactory (int outputStyle, Teuchos::RCP< std::map< std::string, Teuchos::RCP< StatusTest< ScalarType, MV, OP > > > > taggedTests=Teuchos::null) | |
Constructor. More... | |
virtual | ~StatusTestOutputFactory () |
Destructor. More... | |
Creation Methods | |
Teuchos::RCP< StatusTestOutput < ScalarType, MV, OP > > | create (const Teuchos::RCP< OutputManager< ScalarType > > &printer, Teuchos::RCP< StatusTest< ScalarType, MV, OP > > test, int mod, int printStates) |
Create the StatusTestOutput object specified by the outputStyle. More... | |
A factory class for generating StatusTestOutput objects.
StatusTestOutputFactory provides a generic interface for generating StatusTestOutput objects that any solver manager can use. This factory removes the logic for selecting which StatusTestOutput class needs to be used from the solver managers. It also hides the generation of new StatusTestOutput classes from the solver managers.
Definition at line 38 of file BelosStatusTestOutputFactory.hpp.
|
inline |
Constructor.
The StatusTestOutputFactory generates a StatusTestOutput object that provides a particular style of output, decided by the Belos::OutputType enumeration.
[in] | outputStyle | A OutputType value which defines the style of output requested by the user. |
[in] | taggedTests,: | map tag names of status tests to status tests (optional, default = Teuchos::null) |
Definition at line 52 of file BelosStatusTestOutputFactory.hpp.
|
inlinevirtual |
Destructor.
Definition at line 58 of file BelosStatusTestOutputFactory.hpp.
|
inlineprivate |
Definition at line 136 of file BelosStatusTestOutputFactory.hpp.
|
inlineprivate |
Definition at line 137 of file BelosStatusTestOutputFactory.hpp.
|
inline |
Create the StatusTestOutput object specified by the outputStyle.
The StatusTestOutput object requires an OutputManager for printing the underlying StatusTest on calls to checkStatus(), as well as an underlying StatusTest.
The last two parameters, described below, in addition to the verbosity level of the OutputManager, control when printing is called. When both the mod
criterion and the printStates
criterion are satisfied, the status test will be printed to the OutputManager with MsgType of StatusTestDetails.
[in] | mod | A positive number describes how often the output should be printed. On every call to checkStatus(), an internal counter is incremented. Printing may only occur when this counter is congruent to zero modulo mod . Default: 1 (attempt to print on every call to checkStatus()) |
[in] | printStates | A combination of StatusType values for which the output may be printed. Default: Passed (attempt to print whenever checkStatus() will return Passed) |
Definition at line 79 of file BelosStatusTestOutputFactory.hpp.
|
private |
Definition at line 131 of file BelosStatusTestOutputFactory.hpp.
|
private |
Definition at line 133 of file BelosStatusTestOutputFactory.hpp.