kim-api
2.3.1-git+v2.3.0-git-2-g378406f9.GNU.GNU.
An Application Programming Interface (API) for the Knowledgebase of Interatomic Models (KIM).
|
An Extensible Enumeration for the TemperatureUnit's supported by the KIM API. More...
#include <KIM_TemperatureUnit.hpp>
Public Member Functions | |
TemperatureUnit () | |
Create an uninitialized TemperatureUnit object. More... | |
TemperatureUnit (int const id) | |
Create a TemperatureUnit object with the specified id. More... | |
TemperatureUnit (std::string const &str) | |
Create a TemperatureUnit object corresponding to the provided string. If the string does not match one of the values defined by the KIM API, then an "unknown" object is generated. More... | |
bool | Known () const |
Determines if the object is a quantity known to the KIM API. More... | |
bool | operator== (TemperatureUnit const &rhs) const |
Compares TemperatureUnit objects for equality. More... | |
bool | operator!= (TemperatureUnit const &rhs) const |
Compares TemperatureUnit objects for inequality. More... | |
std::string const & | ToString () const |
Converts the object to a string. More... | |
Public Attributes | |
int | temperatureUnitID |
Integer identifying the specific TemperatureUnit represented. More... | |
An Extensible Enumeration for the TemperatureUnit's supported by the KIM API.
The enumeration constants are contained in the TEMPERATURE_UNIT namespace.
Definition at line 47 of file KIM_TemperatureUnit.hpp.
KIM::TemperatureUnit::TemperatureUnit | ( | ) |
Create an uninitialized TemperatureUnit object.
KIM::TemperatureUnit::TemperatureUnit | ( | int const | id | ) |
Create a TemperatureUnit object with the specified id.
KIM::TemperatureUnit::TemperatureUnit | ( | std::string const & | str | ) |
Create a TemperatureUnit object corresponding to the provided string. If the string does not match one of the values defined by the KIM API, then an "unknown" object is generated.
bool KIM::TemperatureUnit::Known | ( | ) | const |
Determines if the object is a quantity known to the KIM API.
TemperatureUnit's known to the KIM API are found in the TEMPERATURE_UNIT namespace.
bool KIM::TemperatureUnit::operator!= | ( | TemperatureUnit const & | rhs | ) | const |
Compares TemperatureUnit objects for inequality.
bool KIM::TemperatureUnit::operator== | ( | TemperatureUnit const & | rhs | ) | const |
Compares TemperatureUnit objects for equality.
std::string const& KIM::TemperatureUnit::ToString | ( | ) | const |
Converts the object to a string.
int KIM::TemperatureUnit::temperatureUnitID |
Integer identifying the specific TemperatureUnit represented.
Definition at line 60 of file KIM_TemperatureUnit.hpp.