libelemental 2.0.2
Elemental::Element Class Reference

#include <element.hh>

Public Member Functions

const value_baseget_property_base (const PropertyBase &property) const
template<class T>
const T & get_property (const Property< T > &property) const
void make_entries (EntriesView &view) const throw ()
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.

Detailed Description

A chemical element. The element properties are named in the Properties module.

Member Function Documentation

◆ get_phase()

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.

Parameters
tempKThe temperature, in Kelvin, at which to determine phase. By default, the IUPAC standard temperature.
Returns
The phase of matter determined.

References get_phase(), and Elemental::STANDARD_TEMPERATURE.

Referenced by get_phase().

◆ get_property()

template<class T>
const T & Elemental::Element::get_property ( const Property< T > & property) const
inline

Returns the value for the given Property.

Parameters
propertyThe Element Property to be returned.

◆ get_property_base()

const value_base & Elemental::Element::get_property_base ( const PropertyBase & property) const

Returns the value_base of the value for the given Property.

Parameters
propertyThe Element Property to be returned.

◆ make_entries() [1/2]

void Elemental::Element::make_entries ( EntriesView & view) const
throw ( )

Generates entries for all properties.

Parameters
viewAn EntriesView to be populated.

◆ make_entries() [2/2]

void Elemental::Element::make_entries ( EntriesView & view,
const Category & category,
bool all = false ) const
throw ( )

Generates entries for the properties in the given Category.

Parameters
viewAn EntriesView to be populated.
categoryThe Category whose properties will be provided.
allFor C_GENERAL, controls whether the EntriesView will also receive the element's primary name, symbol, and atomic number.

The documentation for this class was generated from the following file: