openCARP
Doxygen code documentation for the open cardiac electrophysiology simulator openCARP
ion_type.cc
Go to the documentation of this file.
1 // SPDX-FileCopyrightText: Copyright (c) NumeriCor GmbH
2 // SPDX-License-Identifier: LicenseRef-APL-1.1
3 
4 #include "ion_type.h"
5 
6 namespace limpet {
7 
8 const std::string& IonType::get_name() const {
9  return this->_name;
10 }
11 
12 bool IonType::is_plugin() const {
13  return this->_plugin;
14 }
15 
16 bool IonType::operator==(const IonType& other) const {
17  return this == &other;
18 }
19 
20 bool IonType::operator!=(const IonType& other) const {
21  return !(*this == other);
22 }
23 
24 } // limpet namespace
Abstract class representing an ionic model type.
Definition: ion_type.h:44
bool is_plugin() const
Returns whether this model is a plugin or not.
Definition: ion_type.cc:12
const std::string & get_name() const
Gets the model name.
Definition: ion_type.cc:8
bool operator==(const IonType &other) const
Definition: ion_type.cc:16
bool operator!=(const IonType &other) const
Definition: ion_type.cc:20