Class SBMElementTable#
This class is used to describe the periodic table. More...
#include <SBMElementTable.hpp>
Public Functions#
Type | Name |
---|---|
virtual void | print () const Prints the periodic table. |
Public Static Functions#
Type | Name |
---|---|
SBQuantity::mass | getAtomicWeight (SBMElement::Type element) Returns the atomic weight of periodic table element element . |
std::string | getBlock (SBMElement::Type element) Returns the block of periodic table element element . |
SBQuantity::length | getCovalentRadius (SBMElement::Type element) Returns the covalent radius of periodic table element element . |
SBQuantity::length | getCovalentRadius (SBMElement::Type element, int bondType) Returns the covalent radius of periodic table element element for bond typebondType (1 for single bond, 2 for double bond, 3 for triple bond, for other values it returnsgetCovalentRadius() ) |
SBQuantity::dimensionless | getElectronegativity (SBMElement::Type element) Returns the electronegativity of periodic table element element . |
const SBElement & | getElement (SBMElement::Type element) Returns a reference to periodic table element element . |
std::string | getElementName (SBMElement::Type element) Returns the name of periodic table element element . |
std::string | getElementSymbol (SBMElement::Type element) Returns the symbol of periodic table element element . |
SBElement::Type | getElementTypeByName (char * elementName) Returns the type of periodic table element named elementName . |
SBElement::Type | getElementTypeByName (const std::string & elementName) Returns the type of periodic table element named elementName . |
SBElement::Type | getElementTypeBySymbol (char * elementSymbol) Returns the type of periodic table element with symbol elementSymbol . |
SBElement::Type | getElementTypeBySymbol (const std::string & elementSymbol) Returns the type of periodic table element with symbol elementSymbol . |
SBMElement *const * | getElementVector () Returns the vector of periodic table elements. |
unsigned int | getGroup (SBMElement::Type element) Returns the group of periodic table element element . |
SBElement::MetalSubcategory | getMetalSubcategory (SBMElement::Type element) Returns the subcategory type in the metal–metalloid–nonmetal trend for an element element . |
std::string | getMetalSubcategoryString (SBMElement::Type element) Returns the string representation of the subcategory type in the metal–metalloid–nonmetal trend of an element element . |
unsigned int | getNumberOfElements () Returns the number of defined periodic table elements, including the Unknown element. |
std::string | getPeriod (SBMElement::Type element) Returns the period of periodic table element element . |
SBQuantity::length | getVanDerWaalsRadius (SBMElement::Type element) Returns the van der Waals radius of periodic table element element . |
bool | hasOxidationState (SBMElement::Type element, int value) Returns true if the element element is has known oxidation state with the valuevalue . |
bool | isActinide (SBMElement::Type element) Returns true if the element element is actinide metal. |
bool | isAlkaliMetal (SBMElement::Type element) Returns true if the element element is alkali metal. |
bool | isAlkalineEarthMetal (SBMElement::Type element) Returns true if the element element is alkaline earth metal. |
bool | isDiatomicNonmetal (SBMElement::Type element) Returns true if the element element is diatomic nonmetal. |
bool | isHalogen (SBMElement::Type element) Returns true if the element element is halogen. |
bool | isLanthanide (SBMElement::Type element) Returns true if the element element is lanthanide metal. |
bool | isMetal (SBMElement::Type element) Returns true if the element element is metal. |
bool | isMetalloid (SBMElement::Type element) Returns true if the element element is metalloid. |
bool | isNobleGas (SBMElement::Type element) Returns true if the element element is noble gas. |
bool | isPolyatomicNonmetal (SBMElement::Type element) Returns true if the element element is polyatomic nonmetal. |
bool | isPostTransitionMetal (SBMElement::Type element) Returns true if the element element is post-transition metal. |
bool | isReactiveNonmetal (SBMElement::Type element) Returns true if the element element is reactive nonmetal. |
bool | isTransitionMetal (SBMElement::Type element) Returns true if the element element is transition metal. |
Detailed Description#
This class is used to describe the periodic table in SAMSON.
Typically, this class is used when accessing properties of periodic table elements:
Note that convenience functions exist in atoms to access the properties of their element:
Short name: SBElementTable
Short name: SBPeriodicTable
See also: SBMElement
See also: SAMSON's unit system
Public Functions Documentation#
function print#
Prints the periodic table.
Public Static Functions Documentation#
function getAtomicWeight#
Returns the atomic weight of periodic table element element
.
function getBlock#
Returns the block of periodic table element element
.
function getCovalentRadius [1/2]#
Returns the covalent radius of periodic table element element
.
function getCovalentRadius [2/2]#
Returns the covalent radius of periodic table element element
for bond typebondType
(1 for single bond, 2 for double bond, 3 for triple bond, for other values it returnsgetCovalentRadius() )
static SBQuantity::length SBMElementTable::getCovalentRadius (
SBMElement::Type element,
int bondType
)
function getElectronegativity#
Returns the electronegativity of periodic table element element
.
function getElement#
Returns a reference to periodic table element element
.
function getElementName#
Returns the name of periodic table element element
.
function getElementSymbol#
Returns the symbol of periodic table element element
.
function getElementTypeByName [1/2]#
Returns the type of periodic table element named elementName
.
function getElementTypeByName [2/2]#
Returns the type of periodic table element named elementName
.
function getElementTypeBySymbol [1/2]#
Returns the type of periodic table element with symbol elementSymbol
.
function getElementTypeBySymbol [2/2]#
Returns the type of periodic table element with symbol elementSymbol
.
static SBElement::Type SBMElementTable::getElementTypeBySymbol (
const std::string & elementSymbol
)
function getElementVector#
Returns the vector of periodic table elements.
function getGroup#
Returns the group of periodic table element element
.
function getMetalSubcategory#
Returns the subcategory type in the metal–metalloid–nonmetal trend for an element element
.
static SBElement::MetalSubcategory SBMElementTable::getMetalSubcategory (
SBMElement::Type element
)
function getMetalSubcategoryString#
Returns the string representation of the subcategory type in the metal–metalloid–nonmetal trend of an element element
.
function getNumberOfElements#
Returns the number of defined periodic table elements, including the Unknown element.
function getPeriod#
Returns the period of periodic table element element
.
function getVanDerWaalsRadius#
Returns the van der Waals radius of periodic table element element
.
function hasOxidationState#
Returns true if the element element
is has known oxidation state with the valuevalue
.
function isActinide#
Returns true if the element element
is actinide metal.
function isAlkaliMetal#
Returns true if the element element
is alkali metal.
function isAlkalineEarthMetal#
Returns true if the element element
is alkaline earth metal.
function isDiatomicNonmetal#
Returns true if the element element
is diatomic nonmetal.
function isHalogen#
Returns true if the element element
is halogen.
function isLanthanide#
Returns true if the element element
is lanthanide metal.
function isMetal#
Returns true if the element element
is metal.
function isMetalloid#
Returns true if the element element
is metalloid.
function isNobleGas#
Returns true if the element element
is noble gas.
function isPolyatomicNonmetal#
Returns true if the element element
is polyatomic nonmetal.
function isPostTransitionMetal#
Returns true if the element element
is post-transition metal.
function isReactiveNonmetal#
Returns true if the element element
is reactive nonmetal.
function isTransitionMetal#
Returns true if the element element
is transition metal.