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