![]() |
User Guide
|
Class that stores all the data of a prefix. More...
Class that stores all the data of a prefix.
Prefixes of units can also be defined in the units file. Those prefixes are then checked during a unit's insertion to the UnitTable to multiply their factor to the unit's factor.
#include <units.hpp>
Public Member Functions | |
const std::string & | get_name () const noexcept |
Getter for the name of the Prefix. More... | |
double | get_factor () const noexcept |
Getter for the factor of the Prefix. More... | |
Ctor & dtor | |
Prefix ()=delete | |
Default constructor for Prefix. More... | |
Prefix (std::string name, const std::string &factor) | |
Constructor that instantiates a Prefix with its name and factor. More... | |
Private Attributes | |
double | prefix_factor = 1 |
Prefix's double factor. More... | |
std::string | prefix_name |
Prefix's name. More... | |
|
delete |
Default constructor for Prefix.
nmodl::units::Prefix::Prefix | ( | std::string | name, |
const std::string & | factor | ||
) |
|
inlinenoexcept |
|
inlinenoexcept |
|
private |
|
private |