#include <PTE.h>
Public Types |
|
enum | 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. |
|
typedef short | Group |
Group. |
|
typedef short | Period |
Period. |
|
typedef short | AtomicNumber |
AtomicNumber. |
|
Symbol
|
|
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 } |
Public Member Functions |
|
Constructors and Destructors.
|
|
Element () | |
Default constructor The instance is
set to the default values (= UNKNOWN element). |
|
Element (const Element &element) | |
Constructor. |
|
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 | ~Element () |
Destructor. |
|
virtual void | clear () |
Clear method. |
|
Assignment
|
|
Element & | operator= (const Element &element) |
Assignment operator. |
|
Inspectors and Mutators
|
|
void | setName (const String &name) |
Set the name. |
|
const String & | getName () const |
Get the name. |
|
void | setSymbol (const String &symbol) |
Set the atomic symbol. |
|
const String & | getSymbol () const |
Get the atomic symbol. |
|
void | setGroup (Group group) |
Set the atomic group. |
|
Group | getGroup () const |
Get the atomic group. |
|
void | setPeriod (Period period) |
Set the atomic period. |
|
Period | getPeriod () const |
Get the atomic period. |
|
void | setAtomicNumber (AtomicNumber atomic_number) |
Set the atomic number. |
|
AtomicNumber | getAtomicNumber () const |
Get the atomic number. |
|
void | setAtomicWeight (float atomic_weight) |
Set the atomic weight. |
|
float | getAtomicWeight () const |
Get the atomic weight. |
|
void | setAtomicRadius (float atomic_radius) |
Set the atomic radius. |
|
float | getAtomicRadius () const |
Get the atomic radius. |
|
void | setCovalentRadius (float covalent_radius) |
Set the covalent radius. |
|
float | getCovalentRadius () const |
Get the covalent radius. |
|
void | setVanDerWaalsRadius (float van_der_waals_radius) |
Set the
VanDerWaals radius. |
|
float | getVanDerWaalsRadius () const |
Get the
VanDerWaals radius. |
|
void | setElectronegativity (float electronegativity) |
Set the electronegativity. |
|
float | getElectronegativity () const |
Get the electronegativity. |
|
Predicates
|
|
bool | isUnknown () const |
Test if this instance is unknown.
|
|
Static Public Attributes |
|
static Element | UNKNOWN |
Standard element. |
|
Operators |
|
bool | operator== (const Element &element) const |
Equality operator. |
|
bool | operator!= (const Element &element) const |
Inequality operator. |
|
bool | operator< (const Element &element) const |
Less operator. |
|
bool | operator<= (const Element &element) const |
Less or equal operator. |
|
bool | operator>= (const Element &element) const |
Greater or equal operator. |
|
bool | operator> (const Element &element) const |
Greater operator. |
|
BALL_EXPORT friend std::ostream & | operator<< (std::ostream &s, const Element &element) |
Output operator Prints this
instance of Element. |