Web Analytics Made Easy - Statcounter
Skip to content

Class SBMElementTable#

ClassList > 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:

SBQuantity::length r = SBElementTable::getCovalentRadius(SBElement::Carbon);

Note that convenience functions exist in atoms to access the properties of their element:

SBQuantity::length r = atom->getCovalentRadius();

Short name: SBElementTable

Short name: SBPeriodicTable

See also: SBMElement

See also: SAMSON's unit system

Public Functions Documentation#

function print#

Prints the periodic table.

virtual void SBMElementTable::print () const


Public Static Functions Documentation#

function getAtomicWeight#

Returns the atomic weight of periodic table element element .

static SBQuantity::mass SBMElementTable::getAtomicWeight (
    SBMElement::Type element
) 


function getBlock#

Returns the block of periodic table element element .

static std::string SBMElementTable::getBlock (
    SBMElement::Type element
) 


function getCovalentRadius [1/2]#

Returns the covalent radius of periodic table element element .

static SBQuantity::length SBMElementTable::getCovalentRadius (
    SBMElement::Type 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 .

static SBQuantity::dimensionless SBMElementTable::getElectronegativity (
    SBMElement::Type element
) 


function getElement#

Returns a reference to periodic table element element .

static const SBElement & SBMElementTable::getElement (
    SBMElement::Type element
) 


function getElementName#

Returns the name of periodic table element element .

static std::string SBMElementTable::getElementName (
    SBMElement::Type element
) 


function getElementSymbol#

Returns the symbol of periodic table element element .

static std::string SBMElementTable::getElementSymbol (
    SBMElement::Type element
) 


function getElementTypeByName [1/2]#

Returns the type of periodic table element named elementName .

static SBElement::Type SBMElementTable::getElementTypeByName (
    char * elementName
) 


function getElementTypeByName [2/2]#

Returns the type of periodic table element named elementName .

static SBElement::Type SBMElementTable::getElementTypeByName (
    const std::string & elementName
) 


function getElementTypeBySymbol [1/2]#

Returns the type of periodic table element with symbol elementSymbol .

static SBElement::Type SBMElementTable::getElementTypeBySymbol (
    char * 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.

static SBMElement *const * SBMElementTable::getElementVector () 


function getGroup#

Returns the group of periodic table element element .

static unsigned int SBMElementTable::getGroup (
    SBMElement::Type 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 .

static std::string SBMElementTable::getMetalSubcategoryString (
    SBMElement::Type element
) 


function getNumberOfElements#

Returns the number of defined periodic table elements, including the Unknown element.

static unsigned int SBMElementTable::getNumberOfElements () 


function getPeriod#

Returns the period of periodic table element element .

static std::string SBMElementTable::getPeriod (
    SBMElement::Type element
) 


function getVanDerWaalsRadius#

Returns the van der Waals radius of periodic table element element .

static SBQuantity::length SBMElementTable::getVanDerWaalsRadius (
    SBMElement::Type element
) 


function hasOxidationState#

Returns true if the element element is has known oxidation state with the valuevalue .

static bool SBMElementTable::hasOxidationState (
    SBMElement::Type element,
    int value
) 


function isActinide#

Returns true if the element element is actinide metal.

static bool SBMElementTable::isActinide (
    SBMElement::Type element
) 


function isAlkaliMetal#

Returns true if the element element is alkali metal.

static bool SBMElementTable::isAlkaliMetal (
    SBMElement::Type element
) 


function isAlkalineEarthMetal#

Returns true if the element element is alkaline earth metal.

static bool SBMElementTable::isAlkalineEarthMetal (
    SBMElement::Type element
) 


function isDiatomicNonmetal#

Returns true if the element element is diatomic nonmetal.

static bool SBMElementTable::isDiatomicNonmetal (
    SBMElement::Type element
) 


function isHalogen#

Returns true if the element element is halogen.

static bool SBMElementTable::isHalogen (
    SBMElement::Type element
) 


function isLanthanide#

Returns true if the element element is lanthanide metal.

static bool SBMElementTable::isLanthanide (
    SBMElement::Type element
) 


function isMetal#

Returns true if the element element is metal.

static bool SBMElementTable::isMetal (
    SBMElement::Type element
) 


function isMetalloid#

Returns true if the element element is metalloid.

static bool SBMElementTable::isMetalloid (
    SBMElement::Type element
) 


function isNobleGas#

Returns true if the element element is noble gas.

static bool SBMElementTable::isNobleGas (
    SBMElement::Type element
) 


function isPolyatomicNonmetal#

Returns true if the element element is polyatomic nonmetal.

static bool SBMElementTable::isPolyatomicNonmetal (
    SBMElement::Type element
) 


function isPostTransitionMetal#

Returns true if the element element is post-transition metal.

static bool SBMElementTable::isPostTransitionMetal (
    SBMElement::Type element
) 


function isReactiveNonmetal#

Returns true if the element element is reactive nonmetal.

static bool SBMElementTable::isReactiveNonmetal (
    SBMElement::Type element
) 


function isTransitionMetal#

Returns true if the element element is transition metal.

static bool SBMElementTable::isTransitionMetal (
    SBMElement::Type element
)