openCARP
Doxygen code documentation for the open cardiac electrophysiology simulator openCARP
ion_type.cc
Go to the documentation of this file.
1 // ----------------------------------------------------------------------------
2 // openCARP is an open cardiac electrophysiology simulator.
3 //
4 // Copyright (C) 2020 openCARP project
5 //
6 // This program is licensed under the openCARP Academic Public License (APL)
7 // v1.0: You can use and redistribute it and/or modify it in non-commercial
8 // academic environments under the terms of APL as published by the openCARP
9 // project v1.0, or (at your option) any later version. Commercial use requires
10 // a commercial license (info@opencarp.org).
11 //
12 // This program is distributed without any warranty; see the openCARP APL for
13 // more details.
14 //
15 // You should have received a copy of the openCARP APL along with this program
16 // and can find it online: http://www.opencarp.org/license
17 // ----------------------------------------------------------------------------
18 
19 #include "ion_type.h"
20 
21 namespace limpet {
22 
23 const std::string& IonType::get_name() const {
24  return this->_name;
25 }
26 
27 bool IonType::is_plugin() const {
28  return this->_plugin;
29 }
30 
31 bool IonType::operator==(const IonType& other) const {
32  return this == &other;
33 }
34 
35 bool IonType::operator!=(const IonType& other) const {
36  return !(*this == other);
37 }
38 
39 } // limpet namespace
const std::string & get_name() const
Gets the model name.
Definition: ion_type.cc:23
bool operator!=(const IonType &other) const
Definition: ion_type.cc:35
bool operator==(const IonType &other) const
Definition: ion_type.cc:31
Abstract class representing an ionic model type.
Definition: ion_type.h:59
bool is_plugin() const
Returns whether this model is a plugin or not.
Definition: ion_type.cc:27