Back to home page

sPhenix code displayed by LXR

 
 

    


File indexing completed on 2025-08-05 08:16:30

0001 // Tell emacs that this is a C++ source
0002 //  -*- C++ -*-.
0003 #ifndef GLOBALVERTEX_MBDVERTEXMAP_H
0004 #define GLOBALVERTEX_MBDVERTEXMAP_H
0005 
0006 #include <phool/PHObject.h>
0007 
0008 #include <cstddef>  // for size_t
0009 #include <iostream>
0010 #include <map>
0011 
0012 class MbdVertex;
0013 
0014 class MbdVertexMap : public PHObject
0015 {
0016  public:
0017   typedef std::map<unsigned int, MbdVertex*>::const_iterator ConstIter;
0018   typedef std::map<unsigned int, MbdVertex*>::iterator Iter;
0019 
0020   ~MbdVertexMap() override = default;
0021 
0022   void identify(std::ostream& os = std::cout) const override { os << "MbdVertexMap base class" << std::endl; }
0023   int isValid() const override { return 0; }
0024 
0025   virtual bool empty() const { return true; }
0026   virtual size_t size() const { return 0; }
0027   virtual size_t count(unsigned int /*idkey*/) const { return 0; }
0028   virtual void clear() {}
0029 
0030   virtual const MbdVertex* get(unsigned int /*idkey*/) const { return nullptr; }
0031   virtual MbdVertex* get(unsigned int /*idkey*/) { return nullptr; }
0032   virtual MbdVertex* insert(MbdVertex* /*vertex*/) { return nullptr; }
0033   virtual size_t erase(unsigned int /*idkey*/) { 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   MbdVertexMap() = default;
0045 
0046  private:
0047   ClassDefOverride(MbdVertexMap, 1);
0048 };
0049 
0050 #endif  // G4MBD_MBDVERTEXMAP_H