-
Notifications
You must be signed in to change notification settings - Fork 184
/
GlobalVertexMap.h
50 lines (37 loc) · 1.43 KB
/
GlobalVertexMap.h
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
// Tell emacs that this is a C++ source
// -*- C++ -*-.
#ifndef G4VERTEX_GLOBALVERTEXMAP_H
#define G4VERTEX_GLOBALVERTEXMAP_H
#include <phool/PHObject.h>
#include <iostream>
#include <map>
class GlobalVertex;
class GlobalVertexMap : public PHObject
{
public:
typedef std::map<unsigned int, GlobalVertex*>::const_iterator ConstIter;
typedef std::map<unsigned int, GlobalVertex*>::iterator Iter;
~GlobalVertexMap() override {}
void identify(std::ostream& os = std::cout) const override { os << "GlobalVertexMap base class" << std::endl; }
int isValid() const override { return 0; }
virtual void CopyTo(GlobalVertexMap *) {return;}
virtual bool empty() const { return true; }
virtual size_t size() const { return 0; }
virtual size_t count(unsigned int /*idkey*/) const { return 0; }
virtual void clear() {}
virtual const GlobalVertex* get(unsigned int /*idkey*/) const { return nullptr; }
virtual GlobalVertex* get(unsigned int /*idkey*/) { return nullptr; }
virtual GlobalVertex* insert(GlobalVertex* /*vertex*/) { return nullptr; }
virtual size_t erase(unsigned int /*idkey*/) { return 0; }
virtual ConstIter begin() const;
virtual ConstIter find(unsigned int idkey) const;
virtual ConstIter end() const;
virtual Iter begin();
virtual Iter find(unsigned int idkey);
virtual Iter end();
protected:
GlobalVertexMap() {}
private:
ClassDefOverride(GlobalVertexMap, 1);
};
#endif // G4VERTEX_GLOBALVERTEXMAP_H