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