|
Teuchos - Trilinos Tools Package Version of the Day
|
The base Teuchos class. More...
#include <Teuchos_Object.hpp>
Public Member Functions | |
Constructors/Destructor. | |
| Object (int tracebackModeIn=-1) | |
| Default Constructor. | |
| Object (const char *label, int tracebackModeIn=-1) | |
| Labeling Constructor. | |
| Object (const std::string &label, int tracebackModeIn=-1) | |
| Create an Object with the given label, and optionally, with the given traceback mode. | |
| virtual | ~Object () |
| Destructor (virtual, for safety of derived classes). | |
I/O method. | |
| virtual void | print (std::ostream &os) const |
| Print the object to the given output stream. | |
Related Symbols | |
(Note that these are not member symbols.) | |
| std::ostream & | operator<< (std::ostream &os, const Teuchos::Object &obj) |
| Print the given Object to the given output stream. | |
Error reporting method. | |
| virtual int | reportError (const std::string message, int errorCode) const |
| Report an error with this Object. | |
Set methods. | |
| static void | setTracebackMode (int tracebackModeValue) |
| Set the value of the Object error traceback report mode. | |
Accessor methods. | |
| virtual const char * | label () const |
| Access the object's label (LEGACY; return std::string instead). | |
| static int | getTracebackMode () |
| Get the value of the Object error traceback report mode. | |
The base Teuchos class.
The Object class provides capabilities common to all Teuchos objects, such as a label that identifies an object instance, constant definitions, enum types.
Definition at line 36 of file Teuchos_Object.hpp.
| Teuchos::Object::Object | ( | int | tracebackModeIn = -1 | ) |
Default Constructor.
Object is the primary base class in Teuchos. All Teuchos class [sic] are derived from it, directly or indirectly. This class is seldom used explictly.
Definition at line 20 of file Teuchos_Object.cpp.
Labeling Constructor.
Creates an Object with the given label.
LEGACY; DEPRECATE.
Definition at line 25 of file Teuchos_Object.cpp.
Create an Object with the given label, and optionally, with the given traceback mode.
Definition at line 31 of file Teuchos_Object.cpp.
|
inlinevirtual |
Destructor (virtual, for safety of derived classes).
Definition at line 65 of file Teuchos_Object.hpp.
Set the value of the Object error traceback report mode.
TracebackMode controls whether or not traceback information is printed when run time integer errors are detected:
<= 0 - No information report
= 1 - Fatal (negative) values are reported
>= 2 - All values (except zero) reported.
Definition at line 41 of file Teuchos_Object.cpp.
Access the object's label (LEGACY; return std::string instead).
Definition at line 94 of file Teuchos_Object.cpp.
|
static |
Get the value of the Object error traceback report mode.
Definition at line 49 of file Teuchos_Object.cpp.
|
virtual |
Print the object to the given output stream.
Reimplemented in Teuchos::SerialTriDiMatrix< OrdinalType, ScalarType >.
Definition at line 58 of file Teuchos_Object.cpp.
Report an error with this Object.
Definition at line 63 of file Teuchos_Object.cpp.
|
related |
Print the given Object to the given output stream.
Definition at line 99 of file Teuchos_Object.cpp.