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