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