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

FastShower::DepositorPtr Class Reference

#include <DepositorPtr.h>

Inheritance diagram for FastShower::DepositorPtr:

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

Collaboration graph
[legend]
List of all members.

Public Methods

 DepositorPtr (IDepositor *, std::string s="")
 DepositorPtr (const DepositorPtr &)
DepositorPtr & operator= (const DepositorPtr &s)
virtual void deposit (const ParticleParameters &, const Normalisations &, IDeposits &)
virtual IDepositorclone () const
 make a copy of the class when used as an IDepositor

virtual void ping (IPinger &) const
 ping this object and its descendants

virtual std::string name () const
virtual void components (std::vector< const IDebug * > &) const

Private Attributes

SP< IDepositorm_pointee

Constructor & Destructor Documentation

FastShower::DepositorPtr::DepositorPtr IDepositor  ,
std::string    s = ""
 

Definition at line 7 of file DepositorPtr.cxx.

Referenced by clone().

00007                                                       :
00008     DebugBase(s), m_pointee(d){
00009   }
  //

FastShower::DepositorPtr::DepositorPtr const DepositorPtr &   
 

Definition at line 11 of file DepositorPtr.cxx.

References m_pointee.

00011                                                     :
00012     IDepositor(),DebugBase(rhs){ 
00013     m_pointee = rhs.m_pointee;
00014   }
  //

Member Function Documentation

DepositorPtr & FastShower::DepositorPtr::operator= const DepositorPtr &    s
 

Definition at line 16 of file DepositorPtr.cxx.

References m_pointee.

00016                                                               {
00017     
00018     if (this  == &rhs ) return *this;
00019 
00020     IDepositor::operator=(rhs);
00021     DebugBase::operator=(rhs);
00022     m_pointee = rhs.m_pointee;
00023     
00024     return *this;
00025   }

void FastShower::DepositorPtr::deposit const ParticleParameters  ,
const Normalisations  ,
IDeposits  
[virtual]
 

Implements FastShower::IDepositor.

Definition at line 27 of file DepositorPtr.cxx.

References FastShower::DebugBase::bumpStats(), FastShower::ParticleParameters::fromIDebug(), and m_pointee.

00028                                                                     {
00029     p.fromIDebug(this);
00030     m_pointee->deposit(p,ns,d);
00031     bumpStats(0., &p);
00032   }

IDepositor * FastShower::DepositorPtr::clone   const [virtual]
 

make a copy of the class when used as an IDepositor

Implements FastShower::IDepositor.

Definition at line 37 of file DepositorPtr.cxx.

References DepositorPtr().

00037                                        {
00038     return new DepositorPtr(*this);
00039   }

void FastShower::DepositorPtr::ping IPinger   p const [virtual]
 

ping this object and its descendants

Reimplemented from FastShower::DebugBase.

Definition at line 40 of file DepositorPtr.cxx.

00040                                          {
00041     DebugBase::ping(p);
00042   }

std::string FastShower::DepositorPtr::name   const [virtual]
 

Reimplemented from FastShower::DebugBase.

Definition at line 43 of file DepositorPtr.cxx.

References m_pointee.

00043                                     {
00044     std::string s = DebugBase::name()+" "+m_pointee->name();
00045     return s;
00046   }

void FastShower::DepositorPtr::components std::vector< const IDebug * > &    const [virtual]
 

Definition at line 47 of file DepositorPtr.cxx.

00047                                                                {
00048     m_pointee->components(v);
00049   }

Member Data Documentation

SP<IDepositor> FastShower::DepositorPtr::m_pointee [private]
 

Definition at line 67 of file DepositorPtr.h.

Referenced by deposit(), DepositorPtr(), name(), and operator=().


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