CMS 3D CMS Logo

CaloCellGeometryPtr.h
Go to the documentation of this file.
1 #ifndef Geometry_CaloGeometry_CaloCellGeometryPtr_h
2 #define Geometry_CaloGeometry_CaloCellGeometryPtr_h
3 // -*- C++ -*-
4 //
5 // Package: Geometry/CaloGeometry
6 // Class : CaloCellGeometryPtr
7 //
16 //
17 // Original Author: Christopher Jones
18 // Created: Wed, 23 Oct 2024 18:47:22 GMT
19 //
20 
21 // system include files
22 
23 // user include files
24 
25 // forward declarations
26 class CaloCellGeometry;
27 
29 public:
30  explicit CaloCellGeometryPtr(CaloCellGeometry const* iPtr) noexcept : ptr_{iPtr} {}
31  CaloCellGeometryPtr() noexcept = default;
36 
37  CaloCellGeometry const* operator->() const { return ptr_; }
38  CaloCellGeometry const* get() const { return ptr_; }
39  CaloCellGeometry const& operator*() const { return *ptr_; }
40 
41  operator CaloCellGeometry const*() const { return ptr_; }
42 
43 private:
44  const CaloCellGeometry* ptr_ = nullptr;
45 };
46 
47 #endif
CaloCellGeometryPtr() noexcept=default
CaloCellGeometry const & operator*() const
CaloCellGeometryPtr(CaloCellGeometry const *iPtr) noexcept
const CaloCellGeometry * ptr_