#include <AnasaziStatusTestOutput.hpp>
Inheritance diagram for Anasazi::StatusTestOutput< ScalarType, MV, OP >:

Public Member Functions | |
Constructors/destructors | |
| StatusTestOutput (const Teuchos::RefCountPtr< OutputManager< ScalarType > > &printer, Teuchos::RefCountPtr< StatusTest< ScalarType, MV, OP > > test, int mod=1, int printStates=Passed) | |
| Constructor. | |
| virtual | ~StatusTestOutput () |
| Destructor. | |
Status methods | |
| TestStatus | checkStatus (Eigensolver< ScalarType, MV, OP > *solver) |
| TestStatus | getStatus () const |
| Return the result of the most recent checkStatus call, or undefined if it has not been run. | |
Accessor methods | |
| void | setChild (Teuchos::RefCountPtr< StatusTest< ScalarType, MV, OP > > test) |
| Set child test. | |
| Teuchos::RefCountPtr< StatusTest< ScalarType, MV, OP > > | getChild () const |
| Get child test. | |
Reset methods | |
| void | reset () |
| Informs the status test that it should reset its internal configuration to the uninitialized state. | |
| void | clearStatus () |
Print methods | |
| ostream & | print (ostream &os, int indent=0) const |
| Output formatted description of stopping test to output stream. | |
StatusTestOutput is a wrapper around another StatusTest that calls StatusTest::print() on the underlying object on calls to StatusTestOutput::checkStatus(). The frequency and occasion of the printing can be dictated according to some parameters passed to StatusTestOutput::StatusTestOutput().
Definition at line 59 of file AnasaziStatusTestOutput.hpp.
|
||||||||||||||||||||||||
|
Constructor. The StatusTestOutput 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
Definition at line 79 of file AnasaziStatusTestOutput.hpp. |
|
|||||||||
|
Destructor.
Definition at line 86 of file AnasaziStatusTestOutput.hpp. |
|
||||||||||
|
Check and return status of underlying StatusTest. This method calls checkStatus() on the StatusTest object passed in the constructor. If appropriate, the method will follow this call with a call to print() on the underlying object, using the OutputManager passed via the constructor with verbosity level StatusTestDetails. The internal counter will be incremented during this call, but only after performing the tests to decide whether or not to print the underlying StatusTest. This way, the very first call to checkStatus() following initialization or reset() will enable the underlying StatusTest to be printed, regardless of the mod parameter, as the current number of calls will be zero. If the specified Teuchos::RefCountPtr for the child class is Teuchos::null, then calling checkStatus() will result in a StatusTestError exception being thrown.
Implements Anasazi::StatusTest< ScalarType, MV, OP >. Definition at line 108 of file AnasaziStatusTestOutput.hpp. |
|
|||||||||
|
Return the result of the most recent checkStatus call, or undefined if it has not been run.
Implements Anasazi::StatusTest< ScalarType, MV, OP >. Definition at line 127 of file AnasaziStatusTestOutput.hpp. |
|
||||||||||
|
Set child test.
Definition at line 140 of file AnasaziStatusTestOutput.hpp. |
|
|||||||||
|
Get child test.
Definition at line 146 of file AnasaziStatusTestOutput.hpp. |
|
|||||||||
|
Informs the status test that it should reset its internal configuration to the uninitialized state. This resets the cached state to an Undefined state and calls reset() on the underlying test. It also resets the counter for the number of calls to checkStatus(). Implements Anasazi::StatusTest< ScalarType, MV, OP >. Definition at line 160 of file AnasaziStatusTestOutput.hpp. |
|
|||||||||
|
Clears the results of the last status test. This resets the cached state to an Undefined state and calls clearStatus() on the underlying test. Implements Anasazi::StatusTest< ScalarType, MV, OP >. Definition at line 168 of file AnasaziStatusTestOutput.hpp. |
|
||||||||||||||||
|
Output formatted description of stopping test to output stream.
Implements Anasazi::StatusTest< ScalarType, MV, OP >. Definition at line 179 of file AnasaziStatusTestOutput.hpp. |
1.3.9.1