File indexing completed on 2025-08-03 08:17:38
0001 #ifndef TRACKBASEHISTORIC_SVTXTRACKMAP_H
0002 #define TRACKBASEHISTORIC_SVTXTRACKMAP_H
0003
0004 #include "SvtxTrack.h"
0005
0006 #include <phool/PHObject.h>
0007
0008 #include <iostream>
0009 #include <map>
0010
0011 class SvtxTrackMap : public PHObject
0012 {
0013 public:
0014 typedef std::map<unsigned int, SvtxTrack*> TrackMap;
0015 typedef std::map<unsigned int, SvtxTrack*>::const_iterator ConstIter;
0016 typedef std::map<unsigned int, SvtxTrack*>::iterator Iter;
0017
0018 ~SvtxTrackMap() override {}
0019
0020 void identify(std::ostream& os = std::cout) const override
0021 {
0022 os << "SvtxTrackMap base class" << std::endl;
0023 }
0024 int isValid() const override { return 0; }
0025 PHObject* CloneMe() const override { return nullptr; }
0026
0027 virtual bool empty() const { return true; }
0028 virtual size_t size() const { return 0; }
0029 virtual size_t count(unsigned int ) const { return 0; }
0030 virtual void clear() {}
0031
0032 virtual const SvtxTrack* get(unsigned int ) const { return nullptr; }
0033 virtual SvtxTrack* get(unsigned int ) { return nullptr; }
0034 virtual SvtxTrack* insert(const SvtxTrack* ) { return nullptr; }
0035 virtual SvtxTrack* insertWithKey(const SvtxTrack*, unsigned int) { return nullptr; }
0036 virtual size_t erase(unsigned int ) { return 0; }
0037
0038 virtual ConstIter begin() const;
0039 virtual ConstIter find(unsigned int idkey) const;
0040 virtual ConstIter end() const;
0041
0042 virtual Iter begin();
0043 virtual Iter find(unsigned int idkey);
0044 virtual Iter end();
0045
0046 protected:
0047 SvtxTrackMap() {}
0048
0049 private:
0050 ClassDefOverride(SvtxTrackMap, 1);
0051 };
0052
0053 #endif