libelemental 2.0.2
Classes | Typedefs | Enumerations | Functions | Variables
Elemental Namespace Reference

A periodic table library with detailed information on elements. More...

Classes

class  Block
 A qualified value representing a periodic table block. More...
 
class  Category
 A category of properties of the chemical elements. More...
 
struct  color
 A color description. More...
 
class  color_value_base
 A base class for qualified values which have representative colors. More...
 
class  ColorValue
 A qualified value representing a display color. More...
 
class  Element
 A chemical element. More...
 
class  EntriesStream
 An adapter for the display of value entries on an output stream. More...
 
class  EntriesView
 An interface for the display of value entries. More...
 
class  Event
 A qualified value representing the time and location of an event. More...
 
class  LatticeType
 A qualified value representing a Bravais lattice type. More...
 
class  Message
 A qualified UTF-8 string value that requires translation. More...
 
class  Phase
 A qualified value representing a phase of matter. More...
 
class  Property
 A typed property of the chemical elements. More...
 
class  Property< Float >
 A floating-point property of the chemical elements. More...
 
class  PropertyBase
 A property of the chemical elements. More...
 
class  Series
 A qualified value representing a chemical series. More...
 
class  Value
 A qualified value of a generic type. More...
 
class  value_base
 A base class for qualified values. More...
 
class  ValueList
 A qualified list of values of a generic type. More...
 

Typedefs

typedef unsigned int AtomicNumber
 An atomic number.
 
typedef Value< doubleFloat
 A qualified floating-point value.
 
typedef Value< long > Int
 A qualified integer value.
 
typedef Value< ustring > String
 A qualified UTF-8 string value that does not require translation.
 
typedef ValueList< doubleFloatList
 A qualified list of floating-point values.
 
typedef ValueList< long > IntList
 A qualified list of integer values.
 
typedef Property< FloatFloatProperty
 A floating-point property of the chemical elements.
 
typedef std::vector< const Element * > Table
 The periodic table of elements.
 

Enumerations

enum  Qualifier {
  Q_NEUTRAL ,
  Q_UNK ,
  Q_NA ,
  Q_EST ,
  Q_CA ,
  Q_ISO
}
 A qualification of the meaning of a value. More...
 

Functions

void initialize () throw ()
 Initializes libelemental.
 
const Tableget_table () throw ()
 Returns the periodic table of elements.
 
const Elementget_element (AtomicNumber number)
 Returns the element with a given atomic number.
 
const Elementget_element (const std::string &which)
 Returns the element with a given symbol or atomic number.
 

Variables

const double STANDARD_TEMPERATURE
 The standard temperature, in Kelvin, as defined by IUPAC.
 
std::list< Category * > CATEGORIES
 The categories of available properties of the chemical elements.
 
General Properties
Category C_GENERAL
 
Property< MessageP_NAME
 
Property< StringP_OFFICIAL_NAME
 
Property< StringP_ALTERNATE_NAME
 
Property< std::string > P_SYMBOL
 
Property< AtomicNumberP_NUMBER
 
Property< SeriesP_SERIES
 
Property< IntP_GROUP
 
Property< IntP_PERIOD
 
Property< BlockP_BLOCK
 
Historical Properties
Category C_HISTORICAL
 
Property< EventP_DISCOVERY
 
Property< MessageP_DISCOVERED_BY
 
Property< MessageP_ETYMOLOGY
 
Physical Properties
Category C_PHYSICAL
 
Property< PhaseP_PHASE
 
Property< FloatP_DENSITY_SOLID
 
Property< FloatP_DENSITY_LIQUID
 
Property< FloatP_DENSITY_GAS
 
Property< MessageP_APPEARANCE
 
Thermal Properties
Category C_THERMAL
 
Property< FloatP_MELTING_POINT
 
Property< FloatP_BOILING_POINT
 
Property< FloatP_FUSION_HEAT
 
Property< FloatP_VAPORIZATION_HEAT
 
Property< FloatP_SPECIFIC_HEAT
 
Property< FloatP_THERMAL_CONDUCTIVITY
 
Property< FloatP_DEBYE_TEMPERATURE
 
Atomic Properties
Category C_ATOMIC
 
Property< FloatP_ATOMIC_MASS
 
Property< FloatP_ATOMIC_VOLUME
 
Property< FloatP_ATOMIC_RADIUS
 
Property< FloatP_COVALENT_RADIUS
 
Property< FloatP_VAN_DER_WAALS_RADIUS
 
Property< StringP_IONIC_RADII
 
Crystallographic Properties
Category C_CRYSTALLOGRAPHIC
 
Property< LatticeTypeP_LATTICE_TYPE
 
Property< IntP_SPACE_GROUP
 
Property< FloatListP_LATTICE_EDGES
 
Property< FloatListP_LATTICE_ANGLES
 
Property< FloatP_LATTICE_VOLUME
 
Electronic Properties
Category C_ELECTRONIC
 
Property< StringP_CONFIGURATION
 
Property< IntListP_OXIDATION_STATES
 
Property< FloatP_ELECTRONEGATIVITY
 
Property< FloatP_ELECTRON_AFFINITY
 
Property< FloatP_FIRST_ENERGY
 
Miscellaneous Properties
Category C_MISCELLANEOUS
 
Property< ColorValueP_COLOR
 
Property< MessageP_NOTES
 

Detailed Description

A periodic table library with detailed information on elements.

Enumeration Type Documentation

◆ Qualifier

A qualification of the meaning of a value.

Enumerator
Q_NEUTRAL 

Indicates a presumably valid value.

Q_UNK 

Indicates that a value is unknown or unavailable.

Q_NA 

Indicates that a value is not applicable for an element.

Q_EST 

Indicates that a value is estimated or calculated.

Q_CA 

Indicates that a value is approximate.

Q_ISO 

Indicates a value for the most stable isotope of an element.

Function Documentation

◆ get_element() [1/2]

const Element & Elemental::get_element ( AtomicNumber  number)

Returns the element with a given atomic number.

Parameters
numberThe atomic number of an element.
Returns
A reference to the corresponding element.
Exceptions
std::out_of_rangeif the atomic number is invalid.

◆ get_element() [2/2]

const Element & Elemental::get_element ( const std::string &  which)

Returns the element with a given symbol or atomic number.

Parameters
whichThe standard symbol of an element, or the string representation of the atomic number of an element.
Returns
A reference to the corresponding element.
Exceptions
std::invalid_argumentif the symbol or number is invalid.

◆ get_table()

const Table & Elemental::get_table ( )
throw (
)

Returns the periodic table of elements.

The table is a singleton.

◆ initialize()

void Elemental::initialize ( )
throw (
)

Initializes libelemental.

This function may be called more than once. This function, or one of the get_table() or get_element() functions, which call it, should be called before any other features in the library are used.

Referenced by Elemental::Property< Float >::is_colorable().