Periodic Table of Elements
[Miscellaneous]

These classes represent elements and the periodic table of elements. More...
Collaboration diagram for Periodic Table of Elements:

Classes

class BALL::Element
Element class. More...
class BALL::PTE_
Periodic Table of Elements Class. More...

Typedefs

typedef short BALL::Element::Period
Period.
typedef short BALL::Element::AtomicNumber
AtomicNumber.

Enumerations

enum BALL::Element::Name {
ACTINIUM = 0, ALUMINUM, AMERICIUM, ANTIMONY,
STIBIUM = ANTIMONY, ARGON, ARSENIC, ASTATINE,
BARIUM, BERKELIUM, BERYLLIUM, BISMUTH,
WISMUT = BISMUTH, BOHRIUM, BORON, BROMINE,
CADMIUM, CAESIUM, CALCIUM, CALIFORNIUM,
CARBON, CARBONEUM = CARBON, CERIUM, CHLORINE,
CHROMIUM, COBALT, COPPER, CUPRUM = COPPER,
CURIUM, DUBNIUM, DYSPROSIUM, EINSTEINIUM,
ERBIUM, EUROPIUM, FERMIUM, FLUORINE,
FRANCIUM, GADOLINIUM, GALLIUM, GERMANIUM,
GOLD, AURUM = GOLD, HAFNIUM, HAHNIUM,
HELIUM, HOLMIUM, HYDROGEN, HYDROGENIUM = HYDROGEN,
INDIUM, IODINE, JOD = IODINE, IRIDIUM,
IRON, FERRUM = IRON, JOLIOTIUM, KRYPTON,
LANTHANUM, LAWRENCIUM, LEAD, PLUMBUM = LEAD,
LITHIUM, LUTETIUM, MAGNESIUM, MANGANESE,
MANGAN = MANGANESE, MEITNERIUM, MENDELEVIUM, MERCURY,
HYDRARGYRUM = MERCURY, MERCURIUM = MERCURY, MOLYBDENUM, NEODYMIUM,
NEON, NEPTUNIUM, NICKEL, NIOBIUM,
NITROGEN, NITROGENIUM = NITROGEN, NOBELIUM, OSMIUM,
OXYGEN, OXYGENIUM = OXYGEN, PALLADIUM, PHOSPHORUS,
PLATINUM, PLUTONIUM, POLONIUM, POTASSIUM,
KALIUM = POTASSIUM, PRASEODYMIUM, PROMETHIUM, PROTACTINIUM,
RADIUM, RADON, RHENIUM, RHODIUM,
RUBIDIUM, RUTHENIUM, RUTHERFORDIUM, SAMARIUM,
SCANDIUM, SELENIUM, SILICON, SILICIUM = SILICON,
SILVER, ARGENTUM = SILVER, SODIUM, NATRIUM = SODIUM,
STRONTIUM, SULPHUR, SULFUR = SULPHUR, TANTALUM,
TECHNETIUM, TELLURIUM, TERBIUM, THALLIUM,
THORIUM, THULIUM, TIN, STANNUM = TIN,
TITANIUM, TUNGSTEN, WOLFRAM = TUNGSTEN, UNUNBIUM,
UNUNNILIUM, UNUNNINIUM, URANIUM, VANADIUM,
XENON, YTTERBIUM, YTTRIUM, ZINC,
ZINCUM = ZINC, ZIRCONIUM, NUMBER_OF_ELEMENTS
}
Name Element names.

Functions

BALL_EXPORT std::ostream & BALL::operator<< (std::ostream &s, const Element &element)
Element output operator.

Variables

static Element BALL::Element::UNKNOWN
Standard element.
Element * BALL::PTE_::SymbolToElement::element

Symbol

Element symbols.

enum Symbol {
Ac = 0, Al, Am, Sb,
Ar, As, At, Ba,
Bk, Be, Bi, Bh,
B, Br, Cd, Cs,
Ca, Cf, C, Ce,
Cl, Cr, Co, Cu,
Cm, Db, Dy, Es,
Er, Eu, Fm, F,
Fr, Gd, Ga, Ge,
Au, Hf, Hn, He,
Ho, H, In, I,
Ir, Fe, Jl, Kr,
La, Lr, Pb, Li,
Lu, Mg, Mn, Mt,
Md, Hg, Mo, Nd,
Ne, Np, Ni, Nb,
N, No, Os, O,
Pd, P, Pt, Pu,
Po, K, Pr, Pm,
Pa, Ra, Rn, Re,
Rh, Rb, Ru, Rf,
Sm, Sc, Se, Si,
Ag, Na, Sr, S,
Ta, Tc, Te, Tb,
Tl, Th, Tm, Sn,
Ti, W, Uub, Uun,
Uuu, U, V, Xe,
Yb, Y, Zn, Zr
}

Constructors and Destructors.

BALL::Element::Element ()
Default constructor The instance is set to the default values (= UNKNOWN element).
BALL::Element::Element (const Element &element)
Constructor.
BALL::Element::Element (const String &name, const String &symbol, Group group, Period period, AtomicNumber atomic_umber, float atomic_weight, float atomic_radius, float covalent_radius, float van_der_waals_radius, float electronegativity)
Detailed constructor.
virtual BALL::Element::~Element ()
Destructor.
virtual void BALL::Element::clear ()
Clear method.

Assignment

Element & BALL::Element::operator= (const Element &element)
Assignment operator.

Inspectors and Mutators

void BALL::Element::setName (const String &name)
Set the name.
const String & BALL::Element::getName () const
Get the name.
void BALL::Element::setSymbol (const String &symbol)
Set the atomic symbol.
const String & BALL::Element::getSymbol () const
Get the atomic symbol.
void BALL::Element::setGroup (Group group)
Set the atomic group.
Group BALL::Element::getGroup () const
Get the atomic group.
void BALL::Element::setPeriod (Period period)
Set the atomic period.
Period BALL::Element::getPeriod () const
Get the atomic period.
void BALL::Element::setAtomicNumber (AtomicNumber atomic_number)
Set the atomic number.
AtomicNumber BALL::Element::getAtomicNumber () const
Get the atomic number.
void BALL::Element::setAtomicWeight (float atomic_weight)
Set the atomic weight.
float BALL::Element::getAtomicWeight () const
Get the atomic weight.
void BALL::Element::setAtomicRadius (float atomic_radius)
Set the atomic radius.
float BALL::Element::getAtomicRadius () const
Get the atomic radius.
void BALL::Element::setCovalentRadius (float covalent_radius)
Set the covalent radius.
float BALL::Element::getCovalentRadius () const
Get the covalent radius.
void BALL::Element::setVanDerWaalsRadius (float van_der_waals_radius)
Set the VanDerWaals radius.
float BALL::Element::getVanDerWaalsRadius () const
Get the VanDerWaals radius.
void BALL::Element::setElectronegativity (float electronegativity)
Set the electronegativity.
float BALL::Element::getElectronegativity () const
Get the electronegativity.

Operators

bool BALL::Element::operator== (const Element &element) const
Equality operator.
bool BALL::Element::operator!= (const Element &element) const
Inequality operator.
bool BALL::Element::operator< (const Element &element) const
Less operator.
bool BALL::Element::operator<= (const Element &element) const
Less or equal operator.
bool BALL::Element::operator>= (const Element &element) const
Greater or equal operator.
bool BALL::Element::operator> (const Element &element) const
Greater operator.
BALL_EXPORT friend std::ostream & BALL::Element::operator<< (std::ostream &s, const Element &element)
Output operator Prints this instance of Element.

Predicates

bool BALL::Element::isUnknown () const
Test if this instance is unknown.

Constructors and Destructors

BALL::PTE_::PTE_ ()
Default constructor.
BALL::PTE_::PTE_ (const PTE_ &pse)
Default constructor.
virtual BALL::PTE_::~PTE_ ()
Destructor.
virtual void BALL::PTE_::clear ()
Clear method.

Assignment

PTE_ & BALL::PTE_::operator= (const PTE_ &)
Assignment operator Does not assign anything.

Accessors

static Element & BALL::PTE_::getElement (Position position)
Return the element at a given position in the PTE.
static Element & BALL::PTE_::getElement (const String &symbol)
Return the element with a given symbol.

Operators

bool BALL::PTE_::operator== (const PTE_ &pte) const
Equality operator.
Element & BALL::PTE_::operator[] (const String &symbol)
Access operator with a given symbol.
const Element & BALL::PTE_::operator[] (const String &symbol) const
Access operator with a given symbol.
Element & BALL::PTE_::operator[] (Element::Name name)
Access operator with a given name.
const Element & BALL::PTE_::operator[] (Element::Name name) const
Access operator with a given name.
Element & BALL::PTE_::operator[] (Element::Symbol symbol)
Access operator with a given Element::Symbol.
const Element & BALL::PTE_::operator[] (Element::Symbol symbol) const
Access operator with a given Element::Symbol.
Element & BALL::PTE_::operator[] (Position position)
Access operator with a given position.
const Element & BALL::PTE_::operator[] (Position position) const
Access operator with a given position.

Application methods

static bool BALL::PTE_::apply (UnaryProcessor< Element > &applicator)
Application of an unary processor on every contained element.

Detailed Description

These classes represent elements and the periodic table of elements.

The Element class is used to describe common properties of atoms (e.g., mass, nuclear charge, element symbol). Elements can be retrieved from the PTE object (Periodic Table of Elements) which is a global instance of PTE_ .

See also:
Atom::setElement

Atom::getElement


Function Documentation

static bool BALL::PTE_::apply ( UnaryProcessor< Element > & applicator ) [static, inherited]

Application of an unary processor on every contained element.

Parameters:
processor a typed unary processor for Element instances
Returns:
bool - true if application has been terminated successfully, false otherwise

virtual void BALL::Element::clear ( ) [virtual, inherited]

Clear method.

The instance is set to the default values (= UNKNOWN element).

AtomicNumber BALL::Element::getAtomicNumber ( ) const [inherited]

Get the atomic number.

Returns:
AtomicNumber (short) - the atomic number

float BALL::Element::getAtomicRadius ( ) const [inherited]

Get the atomic radius.

Returns:
float the atomic radius (in Angstrom)

float BALL::Element::getAtomicWeight ( ) const [inherited]

Get the atomic weight.

Returns:
float - the atomic weight

float BALL::Element::getCovalentRadius ( ) const [inherited]

Get the covalent radius.

Returns:
float the covalent radius (in Angstrom)

float BALL::Element::getElectronegativity ( ) const [inherited]

Get the electronegativity.

Returns:
float the electronegativity (according to the Pauling scale)

static Element& BALL::PTE_::getElement ( const String & symbol ) [static, inherited]

Return the element with a given symbol.

Returns:
Element the static Element with the symbol symbol

static Element& BALL::PTE_::getElement ( Position position ) [static, inherited]

Return the element at a given position in the PTE.

The position is equal to the atomic number.

Returns:
Element the static Element at the position position

Group BALL::Element::getGroup ( ) const [inherited]

Get the atomic group.

Returns:
Group (short) - the group

const String& BALL::Element::getName ( ) const [inherited]

Get the name.

Returns:
String - the name

Period BALL::Element::getPeriod ( ) const [inherited]

Get the atomic period.

Returns:
Period (short) the period

const String& BALL::Element::getSymbol ( ) const [inherited]

Get the atomic symbol.

Returns:
String the symbol

float BALL::Element::getVanDerWaalsRadius ( ) const [inherited]

Get the VanDerWaals radius.

Returns:
float the VanDerWaals radius (in Angstrom)

bool BALL::Element::isUnknown ( ) const [inherited]

Test if this instance is unknown.

Returns true if instance is equal the static Element UNKNOWN (The default constructor returns such an element).

Returns:
bool

bool BALL::Element::operator!= ( const Element & element ) const [inherited]

Inequality operator.

Tests if the atomic number of two elements are inequal.

Parameters:
element the Element to compare with
Returns:
bool

bool BALL::Element::operator< ( const Element & element ) const [inherited]

Less operator.

Tests if the atomic number of this instance is less compared with element .

Parameters:
element the Element to compare with
Returns:
bool

BALL_EXPORT std::ostream& BALL::operator<< ( std::ostream & s,
const Element & element
)

Element output operator.

Output operator Prints this instance of Element.

Prints the contents of an instance of Element to an ostream.

bool BALL::Element::operator<= ( const Element & element ) const [inherited]

Less or equal operator.

Tests if the atomic number of this instance is less or equal compared with element .

Parameters:
element,the Element to compare with
Returns:
bool

PTE_& BALL::PTE_::operator= ( const PTE_ & ) [inherited]

Assignment operator Does not assign anything.

Implemented just for the OCI.

Element& BALL::Element::operator= ( const Element & element ) [inherited]

Assignment operator.

Parameters:
element the Element to be copied (cloned)
Returns:
Element& - this instance

bool BALL::PTE_::operator== ( const PTE_ & pte ) const [inherited]

Equality operator.

Always returns true. Implemented just for the OCI.

bool BALL::Element::operator== ( const Element & element ) const [inherited]

Equality operator.

Tests if the atomic number of two elements are equal.

Parameters:
element the Element to compare with
Returns:
bool

bool BALL::Element::operator> ( const Element & element ) const [inherited]

Greater operator.

Tests if the atomic number of this instance is greater than element .

Parameters:
element the Element to compare with
Returns:
bool

bool BALL::Element::operator>= ( const Element & element ) const [inherited]

Greater or equal operator.

Tests if the atomic number of this instance is greater or equal compared with element .

Parameters:
element the Element to compare with
Returns:
bool

const Element& BALL::PTE_::operator[] ( Position position ) const [inherited]

Access operator with a given position.

Returns:
Element the const Element with the position position

Element& BALL::PTE_::operator[] ( Position position ) [inherited]

Access operator with a given position.

Returns:
Element the Element with the position position

const Element& BALL::PTE_::operator[] ( Element::Symbol symbol ) const [inherited]

Access operator with a given Element::Symbol.

Returns:
Element the const Element with the symbol symbol

Element& BALL::PTE_::operator[] ( Element::Symbol symbol ) [inherited]

Access operator with a given Element::Symbol.

Returns:
Element the Element with the symbol symbol

const Element& BALL::PTE_::operator[] ( Element::Name name ) const [inherited]

Access operator with a given name.

Returns:
Element the const Element with the name name

Element& BALL::PTE_::operator[] ( Element::Name name ) [inherited]

Access operator with a given name.

Returns:
Element the Element with the name name

const Element& BALL::PTE_::operator[] ( const String & symbol ) const [inherited]

Access operator with a given symbol.

Returns:
Element the const Element with the symbol symbol

Element& BALL::PTE_::operator[] ( const String & symbol ) [inherited]

Access operator with a given symbol.

Returns:
Element the Element with the symbol symbol

void BALL::Element::setAtomicNumber ( AtomicNumber atomic_number ) [inherited]

Set the atomic number.

Parameters:
atomic_number the new atomic number

void BALL::Element::setAtomicRadius ( float atomic_radius ) [inherited]

Set the atomic radius.

Parameters:
atomic_radius the new atomic radius (in Angstrom)

void BALL::Element::setAtomicWeight ( float atomic_weight ) [inherited]

Set the atomic weight.

Parameters:
atomic_weight the new atomic weight

void BALL::Element::setCovalentRadius ( float covalent_radius ) [inherited]

Set the covalent radius.

Parameters:
covalent_radius the new covalent radius (in Angstrom)

void BALL::Element::setElectronegativity ( float electronegativity ) [inherited]

Set the electronegativity.

Parameters:
electronegativity the new electronegativity (according to the Pauling scale)

void BALL::Element::setGroup ( Group group ) [inherited]

Set the atomic group.

Parameters:
group (short) the new group

void BALL::Element::setName ( const String & name ) [inherited]

Set the name.

Parameters:
name the new name

void BALL::Element::setPeriod ( Period period ) [inherited]

Set the atomic period.

Parameters:
period (short) the new period

void BALL::Element::setSymbol ( const String & symbol ) [inherited]

Set the atomic symbol.

Parameters:
symbol the new symbol

void BALL::Element::setVanDerWaalsRadius ( float van_der_waals_radius ) [inherited]

Set the VanDerWaals radius.

Parameters:
van_der_waals_radius the new VanDerWaals radius (in Angstrom)

Variable Documentation

Element BALL::Element::UNKNOWN [static, inherited]

Standard element.

(The default constructor returns such an element).


Friends

BALL_EXPORT friend std::ostream& operator<< ( std::ostream & s,
const Element & element
) [friend, inherited]

Output operator Prints this instance of Element.

Prints the contents of an instance of Element to an ostream.


Generated on Thu Aug 6 18:30:00 2009 for BALL by doxygen 1.5.8