#include <ProxyDictHist.h>
Inheritance diagram for PSEvt::ProxyDictHist:
Public Member Functions | |
ProxyDictHist (const boost::shared_ptr< AliasMap > &amap) | |
virtual long | totalUpdates () const |
returns total number of put and remove calls made with dictionary | |
virtual long | updates (const EventKey &key) const |
returns total number of put and remove calls made for given key | |
virtual const HistI * | hist () const |
return pointer to history interface object, if implemented | |
Protected Member Functions | |
virtual void | putImpl (const boost::shared_ptr< ProxyI > &proxy, const EventKey &key) |
updates count after adding using base class to add to dict. | |
virtual bool | removeImpl (const EventKey &key) |
updates count after adding using base class to remove from to dict. |
This software was developed for the LCLS project. If you use all or part of it, please give an appropriate acknowledgment.
Definition at line 49 of file ProxyDictHist.h.
PSEvt::ProxyDictHist::ProxyDictHist | ( | const boost::shared_ptr< AliasMap > & | amap | ) | [inline] |
Definition at line 52 of file ProxyDictHist.h.
virtual const HistI* PSEvt::ProxyDictHist::hist | ( | ) | const [inline, virtual] |
return pointer to history interface object, if implemented
If a derived class implements the HistI interface, it can return a pointer to the history object here. The implementation of totalUpdates() should be all updates, put's and remove's, made to the ProxyDict during its existance. The implementation of updates(EventKey&) should be the sum of all puts and removes for the given EventKey.
Reimplemented from PSEvt::ProxyDictI.
Definition at line 66 of file ProxyDictHist.h.
virtual void PSEvt::ProxyDictHist::putImpl | ( | const boost::shared_ptr< ProxyI > & | proxy, | |
const EventKey & | key | |||
) | [inline, protected, virtual] |
updates count after adding using base class to add to dict.
Reimplemented from PSEvt::ProxyDict.
Definition at line 76 of file ProxyDictHist.h.
References PSEvt::ProxyDict::putImpl().
virtual bool PSEvt::ProxyDictHist::removeImpl | ( | const EventKey & | key | ) | [inline, protected, virtual] |
updates count after adding using base class to remove from to dict.
Does not update count if key was not present.
[in] | key | Event key for the data object. |
Reimplemented from PSEvt::ProxyDict.
Definition at line 90 of file ProxyDictHist.h.
References PSEvt::ProxyDict::removeImpl().
virtual long PSEvt::ProxyDictHist::totalUpdates | ( | ) | const [inline, virtual] |
returns total number of put and remove calls made with dictionary
Implements PSEvt::HistI.
Definition at line 57 of file ProxyDictHist.h.
virtual long PSEvt::ProxyDictHist::updates | ( | const EventKey & | key | ) | const [inline, virtual] |
returns total number of put and remove calls made for given key
[in] | key | key to lookup update count for |
Implements PSEvt::HistI.
Definition at line 64 of file ProxyDictHist.h.