Public Member Functions | Static Public Member Functions | Static Private Member Functions | Private Attributes
Sundance::WatchFlag Class Reference

List of all members.

Public Member Functions

 WatchFlag (const std::string &name="", const ParameterList &params=*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_

Detailed Description

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.


Constructor & Destructor Documentation

WatchFlag::WatchFlag ( const std::string &  name = "",
const ParameterList &  params = *defaultParams() 
)

Definition at line 48 of file SundanceWatchFlag.cpp.

References isActiveMap(), and name_.


Member Function Documentation

Definition at line 56 of file SundanceWatchFlag.cpp.

References isActiveMap(), and name().

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
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]
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
void WatchFlag::setParam ( const std::string &  name,
int  val 
)

Definition at line 84 of file SundanceWatchFlag.cpp.

References name(), and params_.

XMLObject WatchFlag::toXML ( ) const

Definition at line 71 of file SundanceWatchFlag.cpp.

References name().

Referenced by Sundance::SumOfBCs::toXML(), and Sundance::SumOfIntegrals::toXML().


Member Data Documentation

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().

Site Contact