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