MueLu
Version of the Day
|
Class that stores all relevant data for a variable. More...
#include <MueLu_VariableContainer.hpp>
Classes | |
struct | Checker |
class | Data |
class | DataBase |
struct | Getter |
struct | Getter< Teuchos::RCP< Xpetra::Operator< Scalar, LocalOrdinal, GlobalOrdinal, Node > > > |
Public Types | |
typedef std::map< const FactoryBase *, int > | request_container |
Private Attributes | |
DataBase * | data_ |
the data itself More... | |
DataBase * | datah_ |
bool | available_ |
is data available? More... | |
KeepType | keep_ |
keep flag More... | |
int | count_ |
number of requests by all factories More... | |
request_container | requests_ |
requesting factories More... | |
Constructors/Destructors. | |
VariableContainer () | |
Default constructor. More... | |
~VariableContainer () | |
Data access | |
template<typename T > | |
void | SetData (const T &entry) |
Store data in container class and set the "Available" status true. More... | |
template<typename T > | |
const T & | GetData () const |
template<typename T > | |
T & | GetData () |
template<typename T > | |
bool | CheckType () |
std::string | GetTypeName () |
bool | IsAvailable () const |
Returns true if data is available, i.e. More... | |
Request/Release | |
void | Request (const FactoryBase *reqFactory) |
Request data. More... | |
void | Release (const FactoryBase *reqFactory) |
Release data. More... | |
int | NumRequests (const FactoryBase *reqFactory) const |
Return the number of times the data has been requested by a specific factory. More... | |
int | NumAllRequests () const |
Returns the number of times the data has been requested. More... | |
bool | IsRequested (const FactoryBase *reqFactory) const |
Returns true, if data is requested by reqFactory. More... | |
bool | IsRequested () const |
Returns true, if data is requested by at least one factory. More... | |
const request_container & | Requests () const |
Keep status | |
bool | IsKept (KeepType keep) const |
Returns true if at least one keep flag is set. More... | |
void | AddKeepFlag (KeepType keep=UserData) |
Adds a keep flag to the flag combination. More... | |
void | RemoveKeepFlag (KeepType keep=UserData) |
Removes a keep flag to the flag combination. More... | |
KeepType | GetKeepFlag () const |
Returns the keep flag combination. More... | |
Additional Inherited Members | |
Public Member Functions inherited from MueLu::BaseClass | |
virtual | ~BaseClass () |
Destructor. More... | |
Public Member Functions inherited from MueLu::VerboseObject | |
VerbLevel | GetVerbLevel () const |
Get the verbosity level. More... | |
void | SetVerbLevel (const VerbLevel verbLevel) |
Set the verbosity level of this object. More... | |
int | GetProcRankVerbose () const |
Get proc rank used for printing. Do not use this information for any other purpose. More... | |
int | SetProcRankVerbose (int procRank) const |
Set proc rank used for printing. More... | |
bool | IsPrint (MsgType type, int thisProcRankOnly=-1) const |
Find out whether we need to print out information for a specific message type. More... | |
Teuchos::FancyOStream & | GetOStream (MsgType type, int thisProcRankOnly=0) const |
Get an output stream for outputting the input message type. More... | |
Teuchos::FancyOStream & | GetBlackHole () const |
VerboseObject () | |
virtual | ~VerboseObject () |
Destructor. More... | |
Public Member Functions inherited from Teuchos::VerboseObject< VerboseObject > | |
VerboseObject (const EVerbosityLevel verbLevel=VERB_DEFAULT, const RCP< FancyOStream > &oStream=Teuchos::null) | |
virtual const VerboseObject & | setVerbLevel (const EVerbosityLevel verbLevel) const |
virtual const VerboseObject & | setOverridingVerbLevel (const EVerbosityLevel verbLevel) const |
virtual EVerbosityLevel | getVerbLevel () const |
TEUCHOSPARAMETERLIST_LIB_DLL_EXPORT RCP< const ParameterList > | getValidVerboseObjectSublist () |
TEUCHOSPARAMETERLIST_LIB_DLL_EXPORT void | setupVerboseObjectSublist (ParameterList *paramList) |
TEUCHOSPARAMETERLIST_LIB_DLL_EXPORT void | readVerboseObjectSublist (ParameterList *paramList, RCP< FancyOStream > *oStream, EVerbosityLevel *verbLevel) |
void | readVerboseObjectSublist (ParameterList *paramList, VerboseObject< ObjectType > *verboseObject) |
Public Member Functions inherited from Teuchos::VerboseObjectBase | |
virtual | ~VerboseObjectBase () |
VerboseObjectBase (const RCP< FancyOStream > &oStream=Teuchos::null) | |
virtual const VerboseObjectBase & | setOStream (const RCP< FancyOStream > &oStream) const |
virtual const VerboseObjectBase & | setOverridingOStream (const RCP< FancyOStream > &oStream) const |
virtual VerboseObjectBase & | setLinePrefix (const std::string &linePrefix) |
virtual RCP< FancyOStream > | getOStream () const |
virtual RCP< FancyOStream > | getOverridingOStream () const |
virtual std::string | getLinePrefix () const |
virtual OSTab | getOSTab (const int tabs=1, const std::string &linePrefix="") const |
Public Member Functions inherited from MueLu::Describable | |
virtual | ~Describable () |
Destructor. More... | |
virtual std::string | ShortClassName () const |
Return the class name of the object, without template parameters and without namespace. More... | |
virtual void | describe (Teuchos::FancyOStream &out_arg, const VerbLevel verbLevel=Default) const |
virtual std::string | description () const |
Return a simple one-line description of this object. More... | |
void | describe (Teuchos::FancyOStream &out, const Teuchos::EVerbosityLevel verbLevel=Teuchos::Describable::verbLevel_default) const |
Print the object with some verbosity level to an FancyOStream object. More... | |
Public Member Functions inherited from Teuchos::Describable | |
void | describe (std::ostream &out, const EVerbosityLevel verbLevel=verbLevel_default) const |
LabeledObject () | |
virtual | ~LabeledObject () |
virtual void | setObjectLabel (const std::string &objectLabel) |
virtual std::string | getObjectLabel () const |
DescribableStreamManipulatorState | describe (const Describable &describable, const EVerbosityLevel verbLevel=Describable::verbLevel_default) |
std::ostream & | operator<< (std::ostream &os, const DescribableStreamManipulatorState &d) |
Static Public Member Functions inherited from MueLu::VerboseObject | |
static void | SetMueLuOStream (const Teuchos::RCP< Teuchos::FancyOStream > &mueluOStream) |
static void | SetMueLuOFileStream (const std::string &filename) |
static Teuchos::RCP < Teuchos::FancyOStream > | GetMueLuOStream () |
static void | SetDefaultVerbLevel (const VerbLevel defaultVerbLevel) |
Set the default (global) verbosity level. More... | |
static VerbLevel | GetDefaultVerbLevel () |
Get the default (global) verbosity level. More... | |
Static Public Member Functions inherited from Teuchos::VerboseObject< VerboseObject > | |
static void | setDefaultVerbLevel (const EVerbosityLevel defaultVerbLevel) |
static EVerbosityLevel | getDefaultVerbLevel () |
Static Public Member Functions inherited from Teuchos::VerboseObjectBase | |
static void | setDefaultOStream (const RCP< FancyOStream > &defaultOStream) |
static RCP< FancyOStream > | getDefaultOStream () |
Static Public Attributes inherited from Teuchos::Describable | |
static const EVerbosityLevel | verbLevel_default |
Protected Member Functions inherited from Teuchos::VerboseObject< VerboseObject > | |
void | initializeVerboseObject (const EVerbosityLevel verbLevel=VERB_DEFAULT, const RCP< FancyOStream > &oStream=Teuchos::null) |
Protected Member Functions inherited from Teuchos::VerboseObjectBase | |
void | initializeVerboseObjectBase (const RCP< FancyOStream > &oStream=Teuchos::null) |
virtual void | informUpdatedVerbosityState () const |
Class that stores all relevant data for a variable.
Maintains all data for a variable, that is, the data itself, a boolean flag for the "Keep" status, a boolean flag for the "Available" status, a reference counter for all requests and a list with all requesting factories.
Definition at line 37 of file MueLu_VariableContainer.hpp.
typedef std::map<const FactoryBase*, int> MueLu::VariableContainer::request_container |
Definition at line 103 of file MueLu_VariableContainer.hpp.
|
inline |
Default constructor.
Definition at line 120 of file MueLu_VariableContainer.hpp.
|
inline |
Definition at line 126 of file MueLu_VariableContainer.hpp.
|
inline |
Store data in container class and set the "Available" status true.
Definition at line 140 of file MueLu_VariableContainer.hpp.
|
inline |
Return const reference to data stored in container NOTE: we do not check if data is available
Definition at line 151 of file MueLu_VariableContainer.hpp.
|
inline |
Return reference to data stored in container NOTE: we do not check if data is available
Definition at line 158 of file MueLu_VariableContainer.hpp.
|
inline |
Return reference to data stored in container NOTE: we do not check if data is available
Definition at line 165 of file MueLu_VariableContainer.hpp.
|
inline |
Definition at line 169 of file MueLu_VariableContainer.hpp.
|
inline |
Returns true if data is available, i.e.
Definition at line 177 of file MueLu_VariableContainer.hpp.
|
inline |
Request data.
Definition at line 185 of file MueLu_VariableContainer.hpp.
|
inline |
Release data.
Definition at line 195 of file MueLu_VariableContainer.hpp.
|
inline |
Return the number of times the data has been requested by a specific factory.
Definition at line 207 of file MueLu_VariableContainer.hpp.
|
inline |
Returns the number of times the data has been requested.
Definition at line 213 of file MueLu_VariableContainer.hpp.
|
inline |
Returns true, if data is requested by reqFactory.
Definition at line 216 of file MueLu_VariableContainer.hpp.
|
inline |
Returns true, if data is requested by at least one factory.
Definition at line 219 of file MueLu_VariableContainer.hpp.
|
inline |
Definition at line 221 of file MueLu_VariableContainer.hpp.
|
inline |
Returns true if at least one keep flag is set.
Definition at line 228 of file MueLu_VariableContainer.hpp.
Adds a keep flag to the flag combination.
Definition at line 231 of file MueLu_VariableContainer.hpp.
Removes a keep flag to the flag combination.
Definition at line 234 of file MueLu_VariableContainer.hpp.
|
inline |
Returns the keep flag combination.
Definition at line 237 of file MueLu_VariableContainer.hpp.
|
private |
the data itself
Definition at line 106 of file MueLu_VariableContainer.hpp.
|
mutableprivate |
temporary data storage (need to get a reference to RCP to a base class (like Operator)
Definition at line 107 of file MueLu_VariableContainer.hpp.
|
private |
is data available?
Definition at line 109 of file MueLu_VariableContainer.hpp.
|
private |
keep flag
Definition at line 110 of file MueLu_VariableContainer.hpp.
|
private |
number of requests by all factories
Definition at line 111 of file MueLu_VariableContainer.hpp.
|
private |
requesting factories
Definition at line 113 of file MueLu_VariableContainer.hpp.