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

          Line data    Source code
       1             : #include "MembraneType.hpp"
       2             : 
       3             : namespace cell
       4             : {
       5             : 
       6          24 : MembraneType::MembraneType(std::string name, double radius, MembraneType::PermeabilityMap permeabilityMap)
       7          24 :     : name_(std::move(name))
       8          24 :     , permeabilityMap_(std::move(permeabilityMap))
       9          24 :     , radius_(radius)
      10             : {
      11          24 : }
      12             : 
      13           8 : MembraneType::Permeability MembraneType::getPermeabilityFor(const DiscTypeID& discTypeID) const
      14             : {
      15             :     // TODO Eliminate tree structures where TypeRegistry IDs are used: These can be used as array indices
      16           8 :     auto iter = permeabilityMap_.find(discTypeID);
      17           8 :     if (iter == permeabilityMap_.end())
      18           1 :         return Permeability::None;
      19             : 
      20           7 :     return iter->second;
      21             : }
      22             : 
      23             : } // namespace cell

Generated by: LCOV version 1.14