Main Page   Namespace List   Class Hierarchy   Compound List   File List   Namespace Members   Compound Members   File Members  

FastShower::ComplexStatsCollector Class Reference

#include <ComplexStatsCollector.h>

Inheritance diagram for FastShower::ComplexStatsCollector:

Inheritance graph
[legend]
Collaboration diagram for FastShower::ComplexStatsCollector:

Collaboration graph
[legend]
List of all members.

Public Methods

 ComplexStatsCollector (int indent=0)
IPingerclone () const
virtual void action (const IDebug *)
 the ping methods of the destination class uses this method to print


Constructor & Destructor Documentation

FastShower::ComplexStatsCollector::ComplexStatsCollector int    indent = 0 [inline]
 

Definition at line 33 of file ComplexStatsCollector.h.

References FastShower::IPrintPinger::indent().

Referenced by clone().

00033                                        :
00034       PrintPingerBase(indent){};
    //      PrintPingerBase(indent), m_ostream(&std::cout){};

Member Function Documentation

IPinger * FastShower::ComplexStatsCollector::clone   const [virtual]
 

Implements FastShower::IPrintPinger.

Definition at line 8 of file ComplexStatsCollector.cxx.

References ComplexStatsCollector().

00008                                      {
00009     IPinger* p = new ComplexStatsCollector(*this);
00010     return p;
00011   }

void FastShower::ComplexStatsCollector::action const IDebug   [virtual]
 

the ping methods of the destination class uses this method to print

Implements FastShower::IPrintPinger.

Definition at line 13 of file ComplexStatsCollector.cxx.

References FastShower::IDebug::components(), FastShower::IPrintPinger::indent(), FastShower::IFunctionStats::report(), FastShower::IDebug::statistics(), and FastShower::IDebug::text().

00013                                                    {
00014     
00015     cout<<indent()<<d->text()<< endl;
00016     d->statistics()->report(cout);
00017     IDebug::Cpts parts;
00018     d->components(parts);
00019     ComplexStatsCollector q(*this);
00020     ++(*this);
00021     std::for_each(parts.begin(), parts.end(), PingEach(*this) );
00022     (*this)=q;
00023    }

The documentation for this class was generated from the following files:
Generated on Tue Mar 18 11:56:47 2003 for FastShowerUtils by doxygen1.3-rc1