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. |
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_ .
static bool BALL::PTE_::apply | ( | UnaryProcessor< Element > & | applicator | ) | [static, inherited] |
Application of an unary processor on every contained element.
processor | a typed unary processor for Element instances |
true
if application has been
terminated successfully, false
otherwisevirtual 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.
float BALL::Element::getAtomicRadius | ( | ) | const [inherited] |
Get the atomic radius.
float BALL::Element::getAtomicWeight | ( | ) | const [inherited] |
Get the atomic weight.
float BALL::Element::getCovalentRadius | ( | ) | const [inherited] |
Get the covalent radius.
float BALL::Element::getElectronegativity | ( | ) | const [inherited] |
Get the electronegativity.
static Element& BALL::PTE_::getElement | ( | const String & | symbol | ) | [static, inherited] |
static Element& BALL::PTE_::getElement | ( | Position | position | ) | [static, inherited] |
Group BALL::Element::getGroup | ( | ) | const [inherited] |
Get the atomic group.
const String& BALL::Element::getName | ( | ) | const [inherited] |
Get the name.
Period BALL::Element::getPeriod | ( | ) | const [inherited] |
Get the atomic period.
const String& BALL::Element::getSymbol | ( | ) | const [inherited] |
Get the atomic symbol.
float BALL::Element::getVanDerWaalsRadius | ( | ) | const [inherited] |
Get the VanDerWaals radius.
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).
bool BALL::Element::operator!= | ( | const Element & | element | ) | const [inherited] |
Inequality operator.
Tests if the atomic number of two elements are inequal.
element | the Element to compare with |
bool BALL::Element::operator< | ( | const Element & | element | ) | const [inherited] |
Less operator.
Tests if the atomic number of this instance is less compared with element .
element | the Element to compare with |
BALL_EXPORT std::ostream& BALL::operator<< | ( | std::ostream & | s, | |
const Element & | element | |||
) |
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 .
element,the | Element to compare with |
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] |
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.
element | the Element to compare with |
bool BALL::Element::operator> | ( | const Element & | element | ) | const [inherited] |
Greater operator.
Tests if the atomic number of this instance is greater than element .
element | the Element to compare with |
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 .
element | the Element to compare with |
const Element& BALL::PTE_::operator[] | ( | Position | position | ) | const [inherited] |
Element& BALL::PTE_::operator[] | ( | Position | position | ) | [inherited] |
const Element& BALL::PTE_::operator[] | ( | Element::Symbol | symbol | ) | const [inherited] |
Element& BALL::PTE_::operator[] | ( | Element::Symbol | symbol | ) | [inherited] |
const Element& BALL::PTE_::operator[] | ( | Element::Name | name | ) | const [inherited] |
Element& BALL::PTE_::operator[] | ( | Element::Name | name | ) | [inherited] |
const Element& BALL::PTE_::operator[] | ( | const String & | symbol | ) | const [inherited] |
Element& BALL::PTE_::operator[] | ( | const String & | symbol | ) | [inherited] |
void BALL::Element::setAtomicNumber | ( | AtomicNumber | atomic_number | ) | [inherited] |
Set the atomic number.
atomic_number | the new atomic number |
void BALL::Element::setAtomicRadius | ( | float | atomic_radius | ) | [inherited] |
Set the atomic radius.
atomic_radius | the new atomic radius (in Angstrom) |
void BALL::Element::setAtomicWeight | ( | float | atomic_weight | ) | [inherited] |
Set the atomic weight.
atomic_weight | the new atomic weight |
void BALL::Element::setCovalentRadius | ( | float | covalent_radius | ) | [inherited] |
Set the covalent radius.
covalent_radius | the new covalent radius (in Angstrom) |
void BALL::Element::setElectronegativity | ( | float | electronegativity | ) | [inherited] |
Set the electronegativity.
electronegativity | the new electronegativity (according to the Pauling scale) |
void BALL::Element::setGroup | ( | Group | group | ) | [inherited] |
Set the atomic group.
group | (short) the new group |
void BALL::Element::setName | ( | const String & | name | ) | [inherited] |
Set the name.
name | the new name |
void BALL::Element::setPeriod | ( | Period | period | ) | [inherited] |
Set the atomic period.
period | (short) the new period |
void BALL::Element::setSymbol | ( | const String & | symbol | ) | [inherited] |
Set the atomic symbol.
symbol | the new symbol |
void BALL::Element::setVanDerWaalsRadius | ( | float | van_der_waals_radius | ) | [inherited] |
Set the VanDerWaals radius.
van_der_waals_radius | the new VanDerWaals radius (in Angstrom) |
Element BALL::Element::UNKNOWN
[static, inherited] |
Standard element.
(The default constructor returns such an element).