Back to home page

sPhenix code displayed by LXR

 
 

    


File indexing completed on 2025-08-06 08:17:37

0001 // Tell emacs that this is a C++ source
0002 //  -*- C++ -*-.
0003 #ifndef EVENTPLANEINFOMAPV1_H
0004 #define EVENTPLANEINFOMAPV1_H
0005 
0006 #include "EventplaneinfoMap.h"
0007 
0008 #include "Eventplaneinfo.h"
0009 
0010 #include <iostream>
0011 #include <map>
0012 
0013 class EventplaneinfoMapv1 : public EventplaneinfoMap
0014 {
0015  public:
0016   EventplaneinfoMapv1() = default;
0017   ~EventplaneinfoMapv1() override;
0018 
0019   void identify(std::ostream& os = std::cout) const override;
0020   void Reset() override { clear(); }
0021 // cppcheck-suppress [virtualCallInConstructor]
0022   bool empty() const override {return _map.empty();}
0023   void clear() override;
0024 
0025   const Eventplaneinfo* get(unsigned int idkey) const override;
0026   Eventplaneinfo* get(unsigned int idkey) override;
0027 
0028   Eventplaneinfo* insert(Eventplaneinfo* clus, EPTYPE id) override;
0029 
0030   ConstIter begin() const override { return _map.begin(); }
0031   ConstIter find(unsigned int idkey) const override { return _map.find(idkey); }
0032   ConstIter end() const override { return _map.end(); }
0033 
0034   Iter begin() override { return _map.begin(); }
0035   Iter find(unsigned int idkey) override { return _map.find(idkey); }
0036   Iter end() override { return _map.end(); }
0037 
0038  private:
0039   std::map<unsigned int, Eventplaneinfo*> _map;
0040 
0041   ClassDefOverride(EventplaneinfoMapv1, 1);
0042 };
0043 
0044 #endif  // EVENTPLANEINFOMAPV1_H