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

FastShower::SamplerPtr Class Reference

#include <SamplerPtr.h>

Inheritance diagram for FastShower::SamplerPtr:

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

Collaboration graph
[legend]
List of all members.

Public Methods

 SamplerPtr (ISampler *s, std::string s="")
 SamplerPtr (const SamplerPtr &)
SamplerPtr & operator= (const SamplerPtr &s)
 ~SamplerPtr ()
virtual ISamplerclone () const
 make a copy of objects viewed through ISampler interface.

virtual void sample (const PolyArgs &, CoreSamples &) const
virtual double lastValue (const CoreSamples &cs) const
 read back last deposit - used by monitoring code.

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

virtual void components (IDebug::Cpts &) const

Private Attributes

SP< ISamplerm_pointee

Constructor & Destructor Documentation

FastShower::SamplerPtr::SamplerPtr ISampler   s,
std::string    s = ""
 

Definition at line 12 of file SamplerPtr.cxx.

Referenced by clone().

00012                                                 :
00013     DebugBase(t),m_pointee(s){}
  //

FastShower::SamplerPtr::SamplerPtr const SamplerPtr &   
 

Definition at line 15 of file SamplerPtr.cxx.

References m_pointee.

00015                                               :ISampler(),DebugBase(rhs){ 
00016     m_pointee = rhs.m_pointee;
00017   }

FastShower::SamplerPtr::~SamplerPtr   [inline]
 

Definition at line 40 of file SamplerPtr.h.

00040 {};

Member Function Documentation

SamplerPtr & FastShower::SamplerPtr::operator= const SamplerPtr &    s
 

Definition at line 18 of file SamplerPtr.cxx.

References m_pointee.

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

ISampler * FastShower::SamplerPtr::clone   const [virtual]
 

make a copy of objects viewed through ISampler interface.

Implements FastShower::ISampler.

Definition at line 38 of file SamplerPtr.cxx.

References SamplerPtr().

00038                                     {
00039     ISampler* spPtr = new SamplerPtr(*this);
00040     return spPtr;
00041   }

void FastShower::SamplerPtr::sample const PolyArgs   pa,
CoreSamples   cs
const [virtual]
 

record tvisit top this sampler

Implements FastShower::ISampler.

Definition at line 28 of file SamplerPtr.cxx.

00028                                                                   {
00029     pa.pp()->fromIDebug(this); 
00030     m_pointee->sample(pa, cs);
00031     double x = m_pointee->lastValue(cs);
00032     this->bumpStats(x, pa.pp() );
00033   }

double FastShower::SamplerPtr::lastValue const CoreSamples   cs const [virtual]
 

read back last deposit - used by monitoring code.

Implements FastShower::ISampler.

Definition at line 34 of file SamplerPtr.cxx.

References m_pointee.

00034                                                           {
00035     return m_pointee->lastValue(cs);
00036   }

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

ping this object and its descendants

Reimplemented from FastShower::DebugBase.

Definition at line 42 of file SamplerPtr.cxx.

00042 {DebugBase::ping(p);}

void FastShower::SamplerPtr::components IDebug::Cpts   const [virtual]
 

Reimplemented from FastShower::DebugBase.

Definition at line 43 of file SamplerPtr.cxx.

00043                                                {
00044     m_pointee->components(v);
00045   }

Member Data Documentation

SP<ISampler> FastShower::SamplerPtr::m_pointee [private]
 

Definition at line 55 of file SamplerPtr.h.

Referenced by lastValue(), operator=(), and SamplerPtr().


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