LCOV - code coverage report
Current view: top level - cell - Membrane.hpp (source / functions) Hit Total Coverage
Test: coverage.info Lines: 10 10 100.0 %
Date: 2025-12-26 22:55:38 Functions: 4 4 100.0 %

          Line data    Source code
       1             : #ifndef DD74492E_28F5_4688_960F_C9E90C40C167_HPP
       2             : #define DD74492E_28F5_4688_960F_C9E90C40C167_HPP
       3             : 
       4             : #include "MembraneType.hpp"
       5             : #include "PhysicalObject.hpp"
       6             : #include "Types.hpp"
       7             : #include "Vector2d.hpp"
       8             : 
       9             : namespace cell
      10             : {
      11             : 
      12             : class Compartment;
      13             : 
      14             : class Membrane : public PhysicalObject
      15             : {
      16             : public:
      17          21 :     explicit Membrane(const MembraneTypeID& membraneTypeID)
      18          21 :         : membraneTypeID_(membraneTypeID)
      19             :     {
      20          21 :     }
      21             : 
      22      362667 :     MembraneTypeID getTypeID() const noexcept
      23             :     {
      24      362667 :         return membraneTypeID_;
      25             :     }
      26             : 
      27          21 :     void setCompartment(Compartment* compartment) noexcept
      28             :     {
      29          21 :         compartment_ = compartment;
      30          21 :     }
      31             : 
      32           4 :     Compartment* getCompartment() const noexcept
      33             :     {
      34           4 :         return compartment_;
      35             :     }
      36             : 
      37             : private:
      38             :     MembraneTypeID membraneTypeID_;
      39             :     Compartment* compartment_ = nullptr;
      40             : };
      41             : 
      42             : } // namespace cell
      43             : 
      44             : #endif /* DD74492E_28F5_4688_960F_C9E90C40C167_HPP */

Generated by: LCOV version 1.14