Public Member Functions | |
| WatchFlag (const std::string &name="", const ParameterList ¶ms=*defaultParams()) | |
| const std::string & | name () const |
| void | activate () |
| void | deactivate () |
| bool | isActive () const |
| bool | operator< (const WatchFlag &other) const |
| XMLObject | toXML () const |
| int | param (const std::string &name) const |
| void | setParam (const std::string &name, int val) |
Static Public Member Functions | |
| static RCP< ParameterList > | defaultParams () |
Static Private Member Functions | |
| static Map< std::string, bool > & | isActiveMap () |
Private Attributes | |
| std::string | name_ |
| RCP< ParameterList > | params_ |
Class WatchFlag is used to tag individual expressions for increased verbosity in certain tasks. The tasks that can be marked are listed below. Verbosity values are integers, with 0 being silent, and typically 5 being excruciatingly detailed.
The verbosity level for a task is set using the setParam() function. The watch can be turned on or off collectively with the deactivate function.
Definition at line 83 of file SundanceWatchFlag.hpp.
| WatchFlag::WatchFlag | ( | const std::string & | name = "", |
| const ParameterList & | params = *defaultParams() |
||
| ) |
Definition at line 48 of file SundanceWatchFlag.cpp.
References isActiveMap(), and name_.
| void WatchFlag::activate | ( | ) |
Definition at line 56 of file SundanceWatchFlag.cpp.
References isActiveMap(), and name().
| void WatchFlag::deactivate | ( | ) |
Definition at line 61 of file SundanceWatchFlag.cpp.
References isActiveMap(), and name().
| RCP< ParameterList > WatchFlag::defaultParams | ( | ) | [static] |
Definition at line 92 of file SundanceWatchFlag.cpp.
| bool WatchFlag::isActive | ( | ) | const |
Definition at line 66 of file SundanceWatchFlag.cpp.
References isActiveMap(), and name().
Referenced by Sundance::FunctionSupportResolver::FunctionSupportResolver(), Sundance::SumOfIntegrals::hasWatchedTerm(), Sundance::Assembler::init(), and Sundance::EquationSet::init().
| static Map<std::string, bool>& Sundance::WatchFlag::isActiveMap | ( | ) | [inline, static, private] |
Definition at line 124 of file SundanceWatchFlag.hpp.
Referenced by activate(), deactivate(), isActive(), and WatchFlag().
| const std::string& Sundance::WatchFlag::name | ( | ) | const [inline] |
Definition at line 91 of file SundanceWatchFlag.hpp.
References name_.
Referenced by activate(), deactivate(), isActive(), operator<(), param(), setParam(), Sundance::RegionQuadCombo::toString(), and toXML().
| bool Sundance::WatchFlag::operator< | ( | const WatchFlag & | other | ) | const [inline] |
Definition at line 103 of file SundanceWatchFlag.hpp.
References name().
| int WatchFlag::param | ( | const std::string & | name | ) | const |
Definition at line 78 of file SundanceWatchFlag.cpp.
References name(), and params_.
Referenced by Sundance::SumOfIntegrals::eqnSetSetupVerb(), Sundance::FunctionSupportResolver::FunctionSupportResolver(), Sundance::Assembler::init(), and Sundance::EquationSet::init().
| void WatchFlag::setParam | ( | const std::string & | name, |
| int | val | ||
| ) |
Definition at line 84 of file SundanceWatchFlag.cpp.
| XMLObject WatchFlag::toXML | ( | ) | const |
Definition at line 71 of file SundanceWatchFlag.cpp.
References name().
Referenced by Sundance::SumOfBCs::toXML(), and Sundance::SumOfIntegrals::toXML().
std::string Sundance::WatchFlag::name_ [private] |
Definition at line 120 of file SundanceWatchFlag.hpp.
Referenced by name(), and WatchFlag().
RCP<ParameterList> Sundance::WatchFlag::params_ [private] |
Definition at line 122 of file SundanceWatchFlag.hpp.
Referenced by param(), and setParam().