All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Properties Friends Macros Groups Pages
ICounterSvc::Printout Class Reference

Print counters for each element in the range [first, last) e.g. More...

#include <GaudiKernel/ICounterSvc.h>

Collaboration diagram for ICounterSvc::Printout:

Public Member Functions

 Printout (ICounterSvc *svc)
 Standard initializing constructor. More...
 
 ~Printout ()
 destructor More...
 
StatusCode operator() (MsgStream &log, const Counter *cnt) const
 Callback for printout with Counter pointers. More...
 

Private Member Functions

 Printout ()
 no defauld constructor More...
 
 Printout (const Printout &)
 
Printoutoperator= (const Printout &)
 no assigment is allowed More...
 

Private Attributes

ICounterSvcm_svc
 Reference to counter service. More...
 

Detailed Description

Print counters for each element in the range [first, last) e.g.

for_each(start, end, PrintCube) ;

Author
Markus Frank
Version
1.0

Definition at line 111 of file ICounterSvc.h.

Constructor & Destructor Documentation

ICounterSvc::Printout::Printout ( ICounterSvc svc)

Standard initializing constructor.

Definition at line 40 of file ICounterSvc.cpp.

41  : m_svc(svc)
42 { if ( 0 != m_svc ) { m_svc->addRef() ; } }
ICounterSvc * m_svc
Reference to counter service.
Definition: ICounterSvc.h:129
virtual unsigned long addRef()=0
Increment the reference count of Interface instance.
ICounterSvc::Printout::~Printout ( )

destructor

Definition at line 46 of file ICounterSvc.cpp.

47 { if ( 0 != m_svc ) { m_svc->release() ; m_svc = 0 ; } }
ICounterSvc * m_svc
Reference to counter service.
Definition: ICounterSvc.h:129
virtual unsigned long release()=0
Release Interface instance.
ICounterSvc::Printout::Printout ( )
private

no defauld constructor

ICounterSvc::Printout::Printout ( const Printout )
private

Member Function Documentation

StatusCode ICounterSvc::Printout::operator() ( MsgStream log,
const Counter cnt 
) const

Callback for printout with Counter pointers.

Definition at line 35 of file ICounterSvc.cpp.

36 { return m_svc ? m_svc->defaultPrintout(log, cnt) : StatusCode::FAILURE ; }
ICounterSvc * m_svc
Reference to counter service.
Definition: ICounterSvc.h:129
virtual StatusCode defaultPrintout(MsgStream &log, const Counter *pCounter) const =0
Default Printout for counters.
Printout& ICounterSvc::Printout::operator= ( const Printout )
private

no assigment is allowed

Member Data Documentation

ICounterSvc* ICounterSvc::Printout::m_svc
private

Reference to counter service.

Definition at line 129 of file ICounterSvc.h.


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