Back to home page

sPhenix code displayed by LXR

 
 

    


File indexing completed on 2025-08-06 08:17:40

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