File indexing completed on 2025-08-03 08:17:04
0001
0002
0003 #ifndef GLOBALVERTEX_GLOBALVERTEXMAP_H
0004 #define GLOBALVERTEX_GLOBALVERTEXMAP_H
0005
0006 #include <phool/PHObject.h>
0007
0008 #include <iostream>
0009 #include <map>
0010
0011 class GlobalVertex;
0012
0013 class GlobalVertexMap : public PHObject
0014 {
0015 public:
0016 typedef std::map<unsigned int, GlobalVertex*>::const_iterator ConstIter;
0017 typedef std::map<unsigned int, GlobalVertex*>::iterator Iter;
0018
0019 ~GlobalVertexMap() override {}
0020
0021 void identify(std::ostream& os = std::cout) const override { os << "GlobalVertexMap base class" << std::endl; }
0022 int isValid() const override { return 0; }
0023 virtual void CopyTo(GlobalVertexMap*) { return; }
0024
0025 virtual bool empty() const { return true; }
0026 virtual size_t size() const { return 0; }
0027 virtual size_t count(unsigned int ) const { return 0; }
0028 virtual void clear() {}
0029
0030 virtual const GlobalVertex* get(unsigned int ) const { return nullptr; }
0031 virtual GlobalVertex* get(unsigned int ) { return nullptr; }
0032 virtual GlobalVertex* insert(GlobalVertex* ) { return nullptr; }
0033 virtual size_t erase(unsigned int ) { return 0; }
0034
0035 virtual ConstIter begin() const;
0036 virtual ConstIter find(unsigned int idkey) const;
0037 virtual ConstIter end() const;
0038
0039 virtual Iter begin();
0040 virtual Iter find(unsigned int idkey);
0041 virtual Iter end();
0042
0043 protected:
0044 GlobalVertexMap() {}
0045
0046 private:
0047 ClassDefOverride(GlobalVertexMap, 1);
0048 };
0049
0050 #endif