libelemental 2.0.2
|
A chemical element. More...
#include <element.hh>
Public Member Functions | |
const value_base & | get_property_base (const PropertyBase &property) const |
Returns the value_base of the value for the given Property. | |
template<class T > | |
const T & | get_property (const Property< T > &property) const |
Returns the value for the given Property. | |
void | make_entries (EntriesView &view) const throw () |
Generates entries for all properties. | |
void | make_entries (EntriesView &view, const Category &category, bool all=false) const throw () |
Generates entries for the properties in the given Category. | |
Phase | get_phase (double tempK=STANDARD_TEMPERATURE) const throw () |
Returns the phase of matter assumed by the element at a temperature. | |
Public Attributes | |
std::string | symbol |
The chemical symbol for this element. | |
AtomicNumber | number |
The atomic number of this element. | |
A chemical element.
The element properties are named in the Properties module.
Phase Elemental::Element::get_phase | ( | double | tempK = STANDARD_TEMPERATURE | ) | const |
throw | ( | ||||
) |
Returns the phase of matter assumed by the element at a temperature.
Standard pressure is implied.
tempK | The temperature, in Kelvin, at which to determine phase. By default, the IUPAC standard temperature. |
|
inline |
const value_base & Elemental::Element::get_property_base | ( | const PropertyBase & | property | ) | const |
Returns the value_base of the value for the given Property.
void Elemental::Element::make_entries | ( | EntriesView & | view | ) | const |
throw | ( | ||||
) |
Generates entries for all properties.
view | An EntriesView to be populated. |
void Elemental::Element::make_entries | ( | EntriesView & | view, |
const Category & | category, | ||
bool | all = false |
||
) | const | ||
throw | ( | ||
) |
Generates entries for the properties in the given Category.
view | An EntriesView to be populated. |
category | The Category whose properties will be provided. |
all | For C_GENERAL , controls whether the EntriesView will also receive the element's primary name, symbol, and atomic number. |