|
enum | BALL::Element::Name {
BALL::Element::ACTINIUM = 0,
BALL::Element::ALUMINUM,
BALL::Element::AMERICIUM,
BALL::Element::ANTIMONY,
BALL::Element::STIBIUM = ANTIMONY,
BALL::Element::ARGON,
BALL::Element::ARSENIC,
BALL::Element::ASTATINE,
BALL::Element::BARIUM,
BALL::Element::BERKELIUM,
BALL::Element::BERYLLIUM,
BALL::Element::BISMUTH,
BALL::Element::WISMUT = BISMUTH,
BALL::Element::BOHRIUM,
BALL::Element::BORON,
BALL::Element::BROMINE,
BALL::Element::CADMIUM,
BALL::Element::CAESIUM,
BALL::Element::CALCIUM,
BALL::Element::CALIFORNIUM,
BALL::Element::CARBON,
BALL::Element::CARBONEUM = CARBON,
BALL::Element::CERIUM,
BALL::Element::CHLORINE,
BALL::Element::CHROMIUM,
BALL::Element::COBALT,
BALL::Element::COPPER,
BALL::Element::CUPRUM = COPPER,
BALL::Element::CURIUM,
BALL::Element::DUBNIUM,
BALL::Element::DYSPROSIUM,
BALL::Element::EINSTEINIUM,
BALL::Element::ERBIUM,
BALL::Element::EUROPIUM,
BALL::Element::FERMIUM,
BALL::Element::FLUORINE,
BALL::Element::FRANCIUM,
BALL::Element::GADOLINIUM,
BALL::Element::GALLIUM,
BALL::Element::GERMANIUM,
BALL::Element::GOLD,
BALL::Element::AURUM = GOLD,
BALL::Element::HAFNIUM,
BALL::Element::HAHNIUM,
BALL::Element::HELIUM,
BALL::Element::HOLMIUM,
BALL::Element::HYDROGEN,
BALL::Element::HYDROGENIUM = HYDROGEN,
BALL::Element::INDIUM,
BALL::Element::IODINE,
BALL::Element::JOD = IODINE,
BALL::Element::IRIDIUM,
BALL::Element::IRON,
BALL::Element::FERRUM = IRON,
BALL::Element::JOLIOTIUM,
BALL::Element::KRYPTON,
BALL::Element::LANTHANUM,
BALL::Element::LAWRENCIUM,
BALL::Element::LEAD,
BALL::Element::PLUMBUM = LEAD,
BALL::Element::LITHIUM,
BALL::Element::LUTETIUM,
BALL::Element::MAGNESIUM,
BALL::Element::MANGANESE,
BALL::Element::MANGAN = MANGANESE,
BALL::Element::MEITNERIUM,
BALL::Element::MENDELEVIUM,
BALL::Element::MERCURY,
BALL::Element::HYDRARGYRUM = MERCURY,
BALL::Element::MERCURIUM = MERCURY,
BALL::Element::MOLYBDENUM,
BALL::Element::NEODYMIUM,
BALL::Element::NEON,
BALL::Element::NEPTUNIUM,
BALL::Element::NICKEL,
BALL::Element::NIOBIUM,
BALL::Element::NITROGEN,
BALL::Element::NITROGENIUM = NITROGEN,
BALL::Element::NOBELIUM,
BALL::Element::OSMIUM,
BALL::Element::OXYGEN,
BALL::Element::OXYGENIUM = OXYGEN,
BALL::Element::PALLADIUM,
BALL::Element::PHOSPHORUS,
BALL::Element::PLATINUM,
BALL::Element::PLUTONIUM,
BALL::Element::POLONIUM,
BALL::Element::POTASSIUM,
BALL::Element::KALIUM = POTASSIUM,
BALL::Element::PRASEODYMIUM,
BALL::Element::PROMETHIUM,
BALL::Element::PROTACTINIUM,
BALL::Element::RADIUM,
BALL::Element::RADON,
BALL::Element::RHENIUM,
BALL::Element::RHODIUM,
BALL::Element::RUBIDIUM,
BALL::Element::RUTHENIUM,
BALL::Element::RUTHERFORDIUM,
BALL::Element::SAMARIUM,
BALL::Element::SCANDIUM,
BALL::Element::SELENIUM,
BALL::Element::SILICON,
BALL::Element::SILICIUM = SILICON,
BALL::Element::SILVER,
BALL::Element::ARGENTUM = SILVER,
BALL::Element::SODIUM,
BALL::Element::NATRIUM = SODIUM,
BALL::Element::STRONTIUM,
BALL::Element::SULPHUR,
BALL::Element::SULFUR = SULPHUR,
BALL::Element::TANTALUM,
BALL::Element::TECHNETIUM,
BALL::Element::TELLURIUM,
BALL::Element::TERBIUM,
BALL::Element::THALLIUM,
BALL::Element::THORIUM,
BALL::Element::THULIUM,
BALL::Element::TIN,
BALL::Element::STANNUM = TIN,
BALL::Element::TITANIUM,
BALL::Element::TUNGSTEN,
BALL::Element::WOLFRAM = TUNGSTEN,
BALL::Element::UNUNBIUM,
BALL::Element::UNUNNILIUM,
BALL::Element::UNUNNINIUM,
BALL::Element::URANIUM,
BALL::Element::VANADIUM,
BALL::Element::XENON,
BALL::Element::YTTERBIUM,
BALL::Element::YTTRIUM,
BALL::Element::ZINC,
BALL::Element::ZINCUM = ZINC,
BALL::Element::ZIRCONIUM,
BALL::Element::NUMBER_OF_ELEMENTS
} |
|
|
Element symbols.
|
enum | BALL::Element::Symbol {
BALL::Element::Ac = 0,
BALL::Element::Al,
BALL::Element::Am,
BALL::Element::Sb,
BALL::Element::Ar,
BALL::Element::As,
BALL::Element::At,
BALL::Element::Ba,
BALL::Element::Bk,
BALL::Element::Be,
BALL::Element::Bi,
BALL::Element::Bh,
BALL::Element::B,
BALL::Element::Br,
BALL::Element::Cd,
BALL::Element::Cs,
BALL::Element::Ca,
BALL::Element::Cf,
BALL::Element::C,
BALL::Element::Ce,
BALL::Element::Cl,
BALL::Element::Cr,
BALL::Element::Co,
BALL::Element::Cu,
BALL::Element::Cm,
BALL::Element::Db,
BALL::Element::Dy,
BALL::Element::Es,
BALL::Element::Er,
BALL::Element::Eu,
BALL::Element::Fm,
BALL::Element::F,
BALL::Element::Fr,
BALL::Element::Gd,
BALL::Element::Ga,
BALL::Element::Ge,
BALL::Element::Au,
BALL::Element::Hf,
BALL::Element::Hn,
BALL::Element::He,
BALL::Element::Ho,
BALL::Element::H,
BALL::Element::In,
BALL::Element::I,
BALL::Element::Ir,
BALL::Element::Fe,
BALL::Element::Jl,
BALL::Element::Kr,
BALL::Element::La,
BALL::Element::Lr,
BALL::Element::Pb,
BALL::Element::Li,
BALL::Element::Lu,
BALL::Element::Mg,
BALL::Element::Mn,
BALL::Element::Mt,
BALL::Element::Md,
BALL::Element::Hg,
BALL::Element::Mo,
BALL::Element::Nd,
BALL::Element::Ne,
BALL::Element::Np,
BALL::Element::Ni,
BALL::Element::Nb,
BALL::Element::N,
BALL::Element::No,
BALL::Element::Os,
BALL::Element::O,
BALL::Element::Pd,
BALL::Element::P,
BALL::Element::Pt,
BALL::Element::Pu,
BALL::Element::Po,
BALL::Element::K,
BALL::Element::Pr,
BALL::Element::Pm,
BALL::Element::Pa,
BALL::Element::Ra,
BALL::Element::Rn,
BALL::Element::Re,
BALL::Element::Rh,
BALL::Element::Rb,
BALL::Element::Ru,
BALL::Element::Rf,
BALL::Element::Sm,
BALL::Element::Sc,
BALL::Element::Se,
BALL::Element::Si,
BALL::Element::Ag,
BALL::Element::Na,
BALL::Element::Sr,
BALL::Element::S,
BALL::Element::Ta,
BALL::Element::Tc,
BALL::Element::Te,
BALL::Element::Tb,
BALL::Element::Tl,
BALL::Element::Th,
BALL::Element::Tm,
BALL::Element::Sn,
BALL::Element::Ti,
BALL::Element::W,
BALL::Element::Uub,
BALL::Element::Uun,
BALL::Element::Uuu,
BALL::Element::U,
BALL::Element::V,
BALL::Element::Xe,
BALL::Element::Yb,
BALL::Element::Y,
BALL::Element::Zn,
BALL::Element::Zr
} |
|
|
| BALL::Element::Element () |
|
| BALL::Element::Element (const Element &element) |
|
| 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, bool is_metal, float electronegativity) |
|
virtual | BALL::Element::~Element () |
|
virtual void | BALL::Element::clear () |
|
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
§ AtomicNumber
AtomicNumber
Definition at line 70 of file PTE.h.
§ Group
Group
Definition at line 62 of file PTE.h.
§ Period
Period
Definition at line 66 of file PTE.h.
§ Name
Name Element names.
Enumerator |
---|
ACTINIUM | |
ALUMINUM | |
AMERICIUM | |
ANTIMONY | |
STIBIUM | |
ARGON | |
ARSENIC | |
ASTATINE | |
BARIUM | |
BERKELIUM | |
BERYLLIUM | |
BISMUTH | |
WISMUT | |
BOHRIUM | |
BORON | |
BROMINE | |
CADMIUM | |
CAESIUM | |
CALCIUM | |
CALIFORNIUM | |
CARBON | |
CARBONEUM | |
CERIUM | |
CHLORINE | |
CHROMIUM | |
COBALT | |
COPPER | |
CUPRUM | |
CURIUM | |
DUBNIUM | |
DYSPROSIUM | |
EINSTEINIUM | |
ERBIUM | |
EUROPIUM | |
FERMIUM | |
FLUORINE | |
FRANCIUM | |
GADOLINIUM | |
GALLIUM | |
GERMANIUM | |
GOLD | |
AURUM | |
HAFNIUM | |
HAHNIUM | |
HELIUM | |
HOLMIUM | |
HYDROGEN | |
HYDROGENIUM | |
INDIUM | |
IODINE | |
JOD | |
IRIDIUM | |
IRON | |
FERRUM | |
JOLIOTIUM | |
KRYPTON | |
LANTHANUM | |
LAWRENCIUM | |
LEAD | |
PLUMBUM | |
LITHIUM | |
LUTETIUM | |
MAGNESIUM | |
MANGANESE | |
MANGAN | |
MEITNERIUM | |
MENDELEVIUM | |
MERCURY | |
HYDRARGYRUM | |
MERCURIUM | |
MOLYBDENUM | |
NEODYMIUM | |
NEON | |
NEPTUNIUM | |
NICKEL | |
NIOBIUM | |
NITROGEN | |
NITROGENIUM | |
NOBELIUM | |
OSMIUM | |
OXYGEN | |
OXYGENIUM | |
PALLADIUM | |
PHOSPHORUS | |
PLATINUM | |
PLUTONIUM | |
POLONIUM | |
POTASSIUM | |
KALIUM | |
PRASEODYMIUM | |
PROMETHIUM | |
PROTACTINIUM | |
RADIUM | |
RADON | |
RHENIUM | |
RHODIUM | |
RUBIDIUM | |
RUTHENIUM | |
RUTHERFORDIUM | |
SAMARIUM | |
SCANDIUM | |
SELENIUM | |
SILICON | |
SILICIUM | |
SILVER | |
ARGENTUM | |
SODIUM | |
NATRIUM | |
STRONTIUM | |
SULPHUR | |
SULFUR | |
TANTALUM | |
TECHNETIUM | |
TELLURIUM | |
TERBIUM | |
THALLIUM | |
THORIUM | |
THULIUM | |
TIN | |
STANNUM | |
TITANIUM | |
TUNGSTEN | |
WOLFRAM | |
UNUNBIUM | |
UNUNNILIUM | |
UNUNNINIUM | |
URANIUM | |
VANADIUM | |
XENON | |
YTTERBIUM | |
YTTRIUM | |
ZINC | |
ZINCUM | |
ZIRCONIUM | |
NUMBER_OF_ELEMENTS | |
Definition at line 75 of file PTE.h.
§ Symbol
Enumerator |
---|
Ac | |
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 | |
Definition at line 196 of file PTE.h.
§ Element() [1/3]
BALL::Element::Element |
( |
| ) |
|
Default constructor The instance is set to the default values (= UNKNOWN element).
§ Element() [2/3]
BALL::Element::Element |
( |
const Element & |
element | ) |
|
§ Element() [3/3]
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, |
|
|
bool |
is_metal, |
|
|
float |
electronegativity |
|
) |
| |
§ PTE_() [1/2]
§ PTE_() [2/2]
BALL::PTE_::PTE_ |
( |
const PTE_ & |
pse | ) |
|
§ ~Element()
virtual BALL::Element::~Element |
( |
| ) |
|
|
virtual |
§ ~PTE_()
virtual BALL::PTE_::~PTE_ |
( |
| ) |
|
|
virtual |
§ apply()
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
§ clear() [1/2]
virtual void BALL::Element::clear |
( |
| ) |
|
|
virtual |
Clear method. The instance is set to the default values (= UNKNOWN element).
§ clear() [2/2]
virtual void BALL::PTE_::clear |
( |
| ) |
|
|
virtual |
§ getAtomicNumber()
Get the atomic number.
- Returns
- AtomicNumber (short) - the atomic number
§ getAtomicRadius()
float BALL::Element::getAtomicRadius |
( |
| ) |
const |
Get the atomic radius.
- Returns
- float the atomic radius (in Angstrom)
§ getAtomicWeight()
float BALL::Element::getAtomicWeight |
( |
| ) |
const |
Get the atomic weight.
- Returns
- float - the atomic weight
§ getCovalentRadius()
float BALL::Element::getCovalentRadius |
( |
| ) |
const |
Get the covalent radius.
- Returns
- float the covalent radius (in Angstrom)
§ getElectronegativity()
float BALL::Element::getElectronegativity |
( |
| ) |
const |
Get the electronegativity.
- Returns
- float the electronegativity (according to the Pauling scale)
§ getElement() [1/2]
Return the element that has the specified atomic number.
§ getElement() [2/2]
Return the element with a given symbol.
- Returns
- Element the static Element with the symbol symbol
§ getGroup()
Group BALL::Element::getGroup |
( |
| ) |
const |
Get the atomic group.
- Returns
- Group (short) - the group
§ getName()
const String& BALL::Element::getName |
( |
| ) |
const |
Get the name.
- Returns
- The name of the element. For example if the Element is a hydrogen the string "Hydrogen" is returned.
§ getPeriod()
Period BALL::Element::getPeriod |
( |
| ) |
const |
Get the atomic period.
- Returns
- Period (short) the period
§ getSymbol()
const String& BALL::Element::getSymbol |
( |
| ) |
const |
Get the atomic symbol.
- Returns
- String the symbol
§ getVanDerWaalsRadius()
float BALL::Element::getVanDerWaalsRadius |
( |
| ) |
const |
§ isMetal()
bool BALL::Element::isMetal |
( |
| ) |
const |
Test if the Element is a metal.
- Returns
- true if the Element represents a metal.
§ isUnknown()
bool BALL::Element::isUnknown |
( |
| ) |
const |
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
§ operator!=()
bool BALL::Element::operator!= |
( |
const Element & |
element | ) |
const |
Inequality operator. Tests if the atomic number of two elements are inequal.
- Parameters
-
- Returns
- bool
§ operator<()
bool BALL::Element::operator< |
( |
const Element & |
element | ) |
const |
Less operator. Tests if the atomic number of this instance is less compared with element .
- Parameters
-
- Returns
- bool
§ operator<<()
Element output operator. Prints the contents of an instance of Element to an ostream
.
§ operator<=()
bool BALL::Element::operator<= |
( |
const Element & |
element | ) |
const |
Less or equal operator. Tests if the atomic number of this instance is less or equal compared with element .
- Parameters
-
- Returns
- bool
§ operator=() [1/2]
Assignment operator.
- Parameters
-
element | the Element to be copied (cloned) |
- Returns
- Element& - this instance
§ operator=() [2/2]
PTE_& BALL::PTE_::operator= |
( |
const PTE_ & |
| ) |
|
Assignment operator Does not assign anything. Implemented just for the OCI.
§ operator==() [1/2]
bool BALL::Element::operator== |
( |
const Element & |
element | ) |
const |
Equality operator. Tests if the atomic number of two elements are equal.
- Parameters
-
- Returns
- bool
§ operator==() [2/2]
bool BALL::PTE_::operator== |
( |
const PTE_ & |
pte | ) |
const |
Equality operator. Always returns true. Implemented just for the OCI.
§ operator>()
bool BALL::Element::operator> |
( |
const Element & |
element | ) |
const |
Greater operator. Tests if the atomic number of this instance is greater than element .
- Parameters
-
- Returns
- bool
§ operator>=()
bool BALL::Element::operator>= |
( |
const Element & |
element | ) |
const |
Greater or equal operator. Tests if the atomic number of this instance is greater or equal compared with element .
- Parameters
-
- Returns
- bool
§ operator[]() [1/8]
Access operator with a given symbol.
- Returns
- Element the Element with the symbol symbol
§ operator[]() [2/8]
const Element& BALL::PTE_::operator[] |
( |
const String & |
symbol | ) |
const |
Access operator with a given symbol.
- Returns
- Element the const Element with the symbol symbol
§ operator[]() [3/8]
Access operator with a given name.
- Returns
- Element the Element with the name name
§ operator[]() [4/8]
Access operator with a given name.
- Returns
- Element the const Element with the name name
§ operator[]() [5/8]
§ operator[]() [6/8]
§ operator[]() [7/8]
Access operator with a given position.
- Returns
- Element the Element with the position position
§ operator[]() [8/8]
Access operator with a given position.
- Returns
- Element the const Element with the position position
§ setAtomicNumber()
void BALL::Element::setAtomicNumber |
( |
AtomicNumber |
atomic_number | ) |
|
Set the atomic number.
- Parameters
-
atomic_number | the new atomic number |
§ setAtomicRadius()
void BALL::Element::setAtomicRadius |
( |
float |
atomic_radius | ) |
|
Set the atomic radius.
- Parameters
-
atomic_radius | the new atomic radius (in Angstrom) |
§ setAtomicWeight()
void BALL::Element::setAtomicWeight |
( |
float |
atomic_weight | ) |
|
Set the atomic weight.
- Parameters
-
atomic_weight | the new atomic weight |
§ setCovalentRadius()
void BALL::Element::setCovalentRadius |
( |
float |
covalent_radius | ) |
|
Set the covalent radius.
- Parameters
-
covalent_radius | the new covalent radius (in Angstrom) |
§ setElectronegativity()
void BALL::Element::setElectronegativity |
( |
float |
electronegativity | ) |
|
Set the electronegativity.
- Parameters
-
electronegativity | the new electronegativity (according to the Pauling scale) |
§ setGroup()
void BALL::Element::setGroup |
( |
Group |
group | ) |
|
Set the atomic group.
- Parameters
-
group | (short) the new group |
§ setName()
void BALL::Element::setName |
( |
const String & |
name | ) |
|
§ setPeriod()
void BALL::Element::setPeriod |
( |
Period |
period | ) |
|
Set the atomic period.
- Parameters
-
period | (short) the new period |
§ setSymbol()
void BALL::Element::setSymbol |
( |
const String & |
symbol | ) |
|
Set the atomic symbol.
- Parameters
-
§ setVanDerWaalsRadius()
void BALL::Element::setVanDerWaalsRadius |
( |
float |
van_der_waals_radius | ) |
|
§ element
Element* BALL::PTE_::SymbolToElement::element |
§ symbol
const char* BALL::PTE_::SymbolToElement::symbol |
§ UNKNOWN
Standard element. (The default constructor returns such an element).
Definition at line 550 of file PTE.h.
§ operator<<
Output operator Prints this instance of Element.
Element output operator. Prints the contents of an instance of Element to an ostream
.