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 72 of file SundanceWatchFlag.hpp.


Constructor & Destructor Documentation

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

Definition at line 37 of file SundanceWatchFlag.cpp.

References isActiveMap(), and name_.


Member Function Documentation

void WatchFlag::activate (  ) 

Definition at line 45 of file SundanceWatchFlag.cpp.

References isActiveMap(), and name().

void WatchFlag::deactivate (  ) 

Definition at line 50 of file SundanceWatchFlag.cpp.

References isActiveMap(), and name().

RCP< ParameterList > WatchFlag::defaultParams (  )  [static]

Definition at line 81 of file SundanceWatchFlag.cpp.

bool WatchFlag::isActive (  )  const

static Map<std::string, bool>& Sundance::WatchFlag::isActiveMap (  )  [inline, static, private]

Definition at line 113 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 92 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 73 of file SundanceWatchFlag.cpp.

References params_.

XMLObject WatchFlag::toXML (  )  const

Definition at line 60 of file SundanceWatchFlag.cpp.

References name().

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


Member Data Documentation

std::string Sundance::WatchFlag::name_ [private]

Definition at line 109 of file SundanceWatchFlag.hpp.

Referenced by name(), and WatchFlag().

RCP<ParameterList> Sundance::WatchFlag::params_ [private]

Definition at line 111 of file SundanceWatchFlag.hpp.

Referenced by param(), and setParam().

Site Contact