|  | ATLAS Offline Software
    | 
#include <JetMapBase.h>
| Classes | |
| class | record_ptr_t | 
| pointer wrapper, just to make certain the default pointers in maps are NULL  More... | |
| Public Types | |
| typedef P | data_t | 
| Publish payload data type.  More... | |
| typedef std::vector< data_t > | record_t | 
| Publish record type.  More... | |
| typedef size_t | key_t | 
| Publish key type.  More... | |
| typedef std::map< key_t, record_ptr_t > | map_t | 
| publish store type  More... | |
| Public Member Functions | |
| JetMapBase () | |
| Constructor More... | |
| JetMapBase (const JetMapBase &base)=delete | |
| No copy ctor, assignment.  More... | |
| JetMapBase & | operator= (const JetMapBase &base)=delete | 
| virtual | ~JetMapBase () | 
| destructor  More... | |
| virtual bool | addRecord (size_t jetIndex) const | 
| Add a record.  More... | |
| virtual const record_t * | getRecord (size_t jetIndex) const | 
| get the full record for a given jet  More... | |
| virtual void | assignRecord (size_t jetIndex, record_t *rec) const | 
| assign a given record to a given jet  More... | |
| virtual void | addData (size_t jetIndex, size_t keyIndex, const data_t &data) const | 
| Add data.  More... | |
| virtual bool | retrieveData (size_t jetIndex, size_t keyIndex, data_t &data) const | 
| Retrieve data.  More... | |
| virtual const data_t & | accessData (size_t jetIndex, size_t keyIndex) const | 
| virtual size_t | numberOfMoments (size_t jetIndex) const | 
| virtual void | clear () | 
| virtual void | clear (SG::OwnershipPolicy) | 
| SG::OwnershipPolicy | ownPolicy () | 
| Protected Member Functions | |
| virtual void | removeRecord (size_t jetIndex) const | 
| remove a record  More... | |
| virtual void | transferRecord (const JetMapBase< P > *fromMap, size_t oldIndex, size_t newIndex) const | 
| transfer a record from an other map  More... | |
| map_t & | map () | 
| const map_t & | map () const | 
| Protected Attributes | |
| map_t | m_store | 
| Store last valid record index / mutable size_t m_lastIndex; not used so remove it for simplicity /!  More... | |
| map_t::iterator | m_end | 
| SG::OwnershipPolicy | m_ownPolicy | 
| Static Protected Attributes | |
| static const data_t | m_nullData | 
| Null data reference.  More... | |
| Friends | |
| class | Jet | 
| Definition of the current "jet version".  More... | |
| template<class T > | |
| class | JetMomentMapConverterBase | 
Templated base class for map implementations with indexed lookup. The internal data store is organized in records of a payload data type (each record is an entry in the store).
Definition at line 16 of file JetMapBase.h.
| typedef P JetMapBase< P >::data_t | 
Publish payload data type.
Definition at line 21 of file JetMapBase.h.
| typedef size_t JetMapBase< P >::key_t | 
Publish key type.
Definition at line 50 of file JetMapBase.h.
| typedef std::map<key_t, record_ptr_t> JetMapBase< P >::map_t | 
publish store type
Definition at line 52 of file JetMapBase.h.
| typedef std::vector<data_t> JetMapBase< P >::record_t | 
Publish record type.
Definition at line 23 of file JetMapBase.h.
| JetMapBase< P >::JetMapBase | ( | ) | 
Constructor 
 
| 
 | delete | 
No copy ctor, assignment.
| 
 | virtual | 
destructor
| 
 | virtual | 
| 
 | virtual | 
Add data.
This method adds data to an existing record.
| jetIndex | index of the record in the store | 
| keyIndex | index of the data in the record | 
| data | reference to non-mdoifiable data to be stored in record | 
Note that this method will overwrite any previously stored data at the (jetIndex,keyIndex) position.
| 
 | virtual | 
Add a record.
This method adds a record to the store and returns the index of this record to the client. The returned value is false if the record already existed
| JetIndex | reference to modifiable index, will contain the last index in the store. | 
| 
 | virtual | 
assign a given record to a given jet
The map will 'own' the given record : it will delete it when destructed. If a record already exist at jetIndex, it will be deleted.
| jetIndex | index of the record in the store | 
| rec | pointer to the record to store. | 
| 
 | virtual | 
| 
 | inlinevirtual | 
Definition at line 125 of file JetMapBase.h.
| 
 | virtual | 
get the full record for a given jet
| 
 | protected | 
| 
 | protected | 
| 
 | virtual | 
| 
 | delete | 
| 
 | inline | 
Definition at line 127 of file JetMapBase.h.
| 
 | protectedvirtual | 
remove a record
Destroy the record associated to an entry.
| jetIndex | identifier of the record to remove | 
| 
 | virtual | 
Retrieve data.
Retrieves data by index pair and stores result in client supplied variable. Returns false if index pair (jetIndex,keyIndex) refers to non-existing entry, i.e. at least one of (jetIndex,keyIndex) is out of range.
| jetIndex | index of record in store | 
| keyIndex | index of data in record | 
| data | reference to modifiable variable storing retrieved data | 
Note that in case of an invalid index pair the original value of data is not changed. 
| 
 | protectedvirtual | 
transfer a record from an other map
| fromMap | pointer to the other map | 
| oldIndex | identifier of the record in the other map | 
| newIndex | the identifier in this map | 
| 
 | friend | 
Definition of the current "jet version".
Definition at line 148 of file JetMapBase.h.
Definition at line 150 of file JetMapBase.h.
| 
 | protected | 
Definition at line 164 of file JetMapBase.h.
| 
 | staticprotected | 
Null data reference.
Definition at line 162 of file JetMapBase.h.
| 
 | protected | 
Definition at line 168 of file JetMapBase.h.
| 
 | mutableprotected | 
Store last valid record index / mutable size_t m_lastIndex; not used so remove it for simplicity /!
Data store
Definition at line 160 of file JetMapBase.h.
 1.8.18
 1.8.18