Public Member Functions | Private Attributes
mbl_screen_counter Class Reference

Prints items to the screen to represent events. More...

#include <mbl_screen_counter.h>

List of all members.

Public Member Functions

 mbl_screen_counter (vcl_ostream &)
mbl_screen_counter operator++ (int)
 Mark event.

Private Attributes

unsigned long count_
char symbol_
unsigned long skip_
vcl_ostream & os_

Detailed Description

Prints items to the screen to represent events.

 // A rather trivial example
 mbl_screen_counter counter;

 int n = 10;
 for (int i=0;i<1000;i++)
 {
   counter(vcl_cout);
 }

Definition at line 23 of file mbl_screen_counter.h.


Constructor & Destructor Documentation

mbl_screen_counter::mbl_screen_counter ( vcl_ostream &  os)

Definition at line 10 of file mbl_screen_counter.cxx.


Member Function Documentation

mbl_screen_counter mbl_screen_counter::operator++ ( int  )

Mark event.

This is a postfix increment operator

Definition at line 17 of file mbl_screen_counter.cxx.


Member Data Documentation

unsigned long mbl_screen_counter::count_ [private]

Definition at line 25 of file mbl_screen_counter.h.

vcl_ostream& mbl_screen_counter::os_ [private]

Definition at line 28 of file mbl_screen_counter.h.

unsigned long mbl_screen_counter::skip_ [private]

Definition at line 27 of file mbl_screen_counter.h.

Definition at line 26 of file mbl_screen_counter.h.


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