Analysis Software
Documentation for sPHENIX simulation software
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Macros Groups Pages
SvtxAlignmentStateMap.h
Go to the documentation of this file. Or view the newest version in sPHENIX GitHub for file SvtxAlignmentStateMap.h
1 #ifndef TRACKBASEHISTORIC_SVTXALIGNMENTSTATEMAP_H
2 #define TRACKBASEHISTORIC_SVTXALIGNMENTSTATEMAP_H
3 
4 #include "SvtxAlignmentState.h"
5 
6 #include <trackbase/TrkrDefs.h>
7 
8 #include <iostream>
9 #include <map>
10 
12 {
13  public:
14  typedef std::vector<SvtxAlignmentState*> StateVec;
15  typedef std::map<unsigned int, StateVec> StateMap;
16  typedef StateMap::const_iterator ConstIter;
17  typedef StateMap::iterator Iter;
18 
19  ~SvtxAlignmentStateMap() override {}
20 
21  void identify(std::ostream& os = std::cout) const override
22  {
23  os << "SvtxAlignmentStateMap base class " << std::endl;
24  }
25  int isValid() const override { return 0; }
26  PHObject* CloneMe() const override { return nullptr; }
27 
28  virtual bool empty() const { return true; }
29  virtual std::size_t size() const { return 0; }
30  virtual std::size_t count(unsigned int) const { return 0; }
31  virtual void clear() {}
32 
33  virtual const StateVec get(unsigned int) const { return StateVec(); }
34  virtual StateVec get(unsigned int) { return StateVec(); }
35  virtual StateVec insertWithKey(unsigned int, StateVec) { return StateVec(); }
36  virtual std::size_t erase(unsigned int) { return 0; }
37 
38  virtual ConstIter begin() const;
39  virtual ConstIter find(unsigned int) const;
40  virtual ConstIter end() const;
41 
42  virtual Iter begin();
43  virtual Iter find(unsigned int);
44  virtual Iter end();
45 
46  protected:
48 
49  private:
51 };
52 
53 #endif