Debian Codegraph @

packages/muelu/src/MueCentral/MueLu_Describable.hpp

raw
1 // @HEADER
2 // *****************************************************************************
3 // MueLu: A package for multigrid based preconditioning
4 //
5 // Copyright 2012 NTESS and the MueLu contributors.
6 // SPDX-License-Identifier: BSD-3-Clause
7 // *****************************************************************************
8 // @HEADER
9
10 #ifndef MUELU_DESCRIBABLE_DECL_HPP
11 #define MUELU_DESCRIBABLE_DECL_HPP
12
13 #include <string> // for string
14 #include "Teuchos_FancyOStream.hpp" // for FancyOStream
15 #include "Teuchos_VerbosityLevel.hpp" // for EVerbosityLevel
16 #include "Teuchos_Describable.hpp"
17
18 #include "MueLu_VerbosityLevel.hpp"
19
20 namespace MueLu {
21
22 /*!
23 @class Describable
24 @brief Base class for MueLu classes
25
26 @ingroup MueLuBaseClasses
27 */
28 class Describable
29 : public Teuchos::Describable {
30 mutable std::string shortClassName_ = ""; // cached so that we don't have to call demangleName() every time; mutable so that ShortClassName() can initialize lazily while remaining const
31
32 public:
33 //! Destructor.
34 virtual ~Describable();
35
36 //! @name MueLu Describe
37 //@{
38
39 virtual void describe(Teuchos::FancyOStream &out_arg, const VerbLevel verbLevel = Default) const;
40
41 //@}
42
43 //! @name Overridden from Teuchos::Describable
44 //@{
45
46 //! Return a simple one-line description of this object.
47 virtual std::string description() const;
48
49 //! Print the object with some verbosity level to an FancyOStream object.
50 void describe(Teuchos::FancyOStream &out, const Teuchos::EVerbosityLevel verbLevel = Teuchos::Describable::verbLevel_default) const;
51
52 //@}
53
54 //! Return the class name of the object, without template parameters and without namespace
55 virtual std::string ShortClassName() const;
56
57 }; // class Describable
58
59 } // namespace MueLu
60
61 #define MUELU_DESCRIBABLE_SHORT
62 #endif // MUELU_DESCRIBABLE_DECL_HPP