ATLAS Offline Software
|
Stores CaloClusterMoment in a keyed map. More...
#include <CaloClusterMomentStore.h>
Classes | |
class | CaloClusterMomentIterator |
Internally used iterator. More... | |
Public Types | |
typedef CaloClusterMoment | moment_value |
Moment data. More... | |
typedef CaloClusterMoment::MomentType | moment_type |
Moment type. More... | |
typedef int | moment_key |
Moment key type. More... | |
typedef std::map< moment_key, moment_value > | moment_store |
Internal moment store type. More... | |
typedef moment_store::const_iterator | moment_store_const_iter |
Internal moment store const iterator type. More... | |
typedef moment_store::iterator | moment_store_iter |
Internal moment store iterator type. More... | |
typedef std::vector< moment_type > | moment_type_list |
List of moment types. More... | |
typedef CaloClusterMomentIterator | moment_iterator |
External moment iterator type. More... | |
Public Member Functions | |
CaloClusterMomentStore () | |
Default constructor. More... | |
CaloClusterMomentStore (const CaloClusterMomentStore &rMomStore) | |
Copy constructor. More... | |
CaloClusterMomentStore (const CaloClusterMomentStore *pMomStore) | |
CaloClusterMomentStore & | operator= (const CaloClusterMomentStore &rMomStore) |
Assignment. More... | |
virtual | ~CaloClusterMomentStore () |
Default destructor. More... | |
virtual void | insert (const moment_type &rMomType, const moment_value &rMomData) |
Insert key/data pair. More... | |
virtual bool | retrieve (const moment_type &rMomType, moment_value &rMomData) const |
Retrieve cluster moment for a given key. More... | |
virtual bool | retrieve (const moment_iterator &rMomIter, moment_value &rMomData) const |
Retrieve cluster moment for a given key. More... | |
virtual bool | retrieveMomentTypes (moment_type_list &rMomTypeList) const |
Retrieve list of moment types in store. More... | |
virtual moment_iterator | begin () const |
{ More... | |
virtual moment_iterator | end () const |
iterator loop terminator More... | |
virtual moment_iterator | find (const moment_type &rMomType) const |
} More... | |
virtual bool | contains (const moment_type &rMomType) const |
Containment check. More... | |
size_t | size () const |
Number of stored moments. More... | |
virtual const moment_store & | momentStore () const |
Access to internal store. More... | |
virtual void | setMomentStore (const moment_store &rMomStore) |
Set internal store. More... | |
virtual void | setMomentStore (moment_store &&rMomStore) |
Private Attributes | |
moment_store | m_store |
Stores CaloClusterMoment in a keyed map.
Definition at line 14 of file CaloClusterMomentStore.h.
External moment iterator type.
Definition at line 137 of file CaloClusterMomentStore.h.
typedef int CaloClusterMomentStore::moment_key |
Moment key type.
Definition at line 33 of file CaloClusterMomentStore.h.
typedef std::map<moment_key,moment_value> CaloClusterMomentStore::moment_store |
Internal moment store type.
Definition at line 35 of file CaloClusterMomentStore.h.
typedef moment_store::const_iterator CaloClusterMomentStore::moment_store_const_iter |
Internal moment store const iterator type.
Definition at line 37 of file CaloClusterMomentStore.h.
typedef moment_store::iterator CaloClusterMomentStore::moment_store_iter |
Internal moment store iterator type.
Definition at line 39 of file CaloClusterMomentStore.h.
Moment type.
Definition at line 31 of file CaloClusterMomentStore.h.
typedef std::vector<moment_type> CaloClusterMomentStore::moment_type_list |
List of moment types.
Definition at line 41 of file CaloClusterMomentStore.h.
Moment data.
Definition at line 29 of file CaloClusterMomentStore.h.
CaloClusterMomentStore::CaloClusterMomentStore | ( | ) |
|
explicit |
Copy constructor.
Definition at line 12 of file CaloClusterMomentStore.cxx.
|
explicit |
Definition at line 18 of file CaloClusterMomentStore.cxx.
|
virtual |
|
inlinevirtual |
{
Iterator access to moment store starting iterator
Definition at line 220 of file CaloClusterMomentStore.h.
|
inlinevirtual |
Containment check.
rMomType | reference to non-modifiable moment type |
Definition at line 237 of file CaloClusterMomentStore.h.
|
inlinevirtual |
iterator loop terminator
Definition at line 226 of file CaloClusterMomentStore.h.
|
inlinevirtual |
}
Find moment type
rMomType | reference to non-modifiable moment type |
Implementation is similar to STL method.
Definition at line 232 of file CaloClusterMomentStore.h.
|
inlinevirtual |
Insert key/data pair.
rMomType | reference to moment type (non-modifiable) |
rMomData | reference to moment data (non-modifiable) |
Definition at line 213 of file CaloClusterMomentStore.h.
|
inlinevirtual |
Access to internal store.
Definition at line 248 of file CaloClusterMomentStore.h.
CaloClusterMomentStore & CaloClusterMomentStore::operator= | ( | const CaloClusterMomentStore & | rMomStore | ) |
Assignment.
Definition at line 25 of file CaloClusterMomentStore.cxx.
|
virtual |
Retrieve cluster moment for a given key.
This is an overloaded member function, provided for convenience. It differs from the above function only in what argument(s) it accepts.
rMomIter | reference to moment iterator (non-modifiable) |
rMomData | reference to moment data (modifiable object) |
Returns true
if moment for given key can be retrieved. The data word is not modified if the moment type can not be found.
Definition at line 43 of file CaloClusterMomentStore.cxx.
|
virtual |
Retrieve cluster moment for a given key.
rMomType | reference to moment type (non-modifiable) |
rMomData | reference to moment data (modifiable object) |
Returns true
if moment for given key can be retrieved. The data word is not modified if the moment type can not be found.
Definition at line 37 of file CaloClusterMomentStore.cxx.
|
virtual |
Retrieve list of moment types in store.
rMomTypeList | reference to modifiable list of moment types |
Returns true
if any moment types stored.
Definition at line 58 of file CaloClusterMomentStore.cxx.
|
inlinevirtual |
Set internal store.
rMomStore | reference to (non-modifiable) moment store |
Definition at line 253 of file CaloClusterMomentStore.h.
|
inlinevirtual |
Definition at line 258 of file CaloClusterMomentStore.h.
|
inline |
Number of stored moments.
Definition at line 242 of file CaloClusterMomentStore.h.
|
private |
Definition at line 210 of file CaloClusterMomentStore.h.