Main Page | Namespace List | Class Hierarchy | Alphabetical List | Class List | File List | Namespace Members | Class Members | File Members

dolfin::Event Class Reference

#include <Event.h>

List of all members.

Public Member Functions

 Event (const std::string message, unsigned int maxcount=1)
 Constructor.

 ~Event ()
 Destructor.

void operator() ()
 Display message.

unsigned int count () const
 Display count.

unsigned int maxcount () const
 Maximum display count.


Detailed Description

A event is a string message which is displayed only a limited number of times.

Example of usage:

Event event("System is stiff, damping is needed."); while () { ... if ( ... ) { event(); ... } }


Constructor & Destructor Documentation

Event::Event const std::string  message,
unsigned int  maxcount = 1
 

Constructor.

Event::~Event  ) 
 

Destructor.


Member Function Documentation

unsigned int Event::count  )  const
 

Display count.

unsigned int Event::maxcount  )  const
 

Maximum display count.

void Event::operator()  ) 
 

Display message.


The documentation for this class was generated from the following files:


Documentation automatically generated with Doxygen on 10 Sep 2004.