#include <elements.h>
Inheritance diagram for Elements:
Public Member Functions | |
General functions for building and manipulating the set of elements | |
Elements (string aFileName, string aGramAtomFileName) | |
~Elements () | |
Atom * | operator[] (string aSymbol) |
Atom * | getElement (string aSymbol) |
void | loadGramAtoms (string filename) |
string | getAtomKernelName () |
void | loadDefinition (string aFilename) |
uint | numElements () |
Public Attributes | |
float | gramAtom [NUMELEMENTS][NUMELEMENTS] |
string | gramAtomName |
Private Attributes | |
map< string, Atom * > | periodicTable |
FOR: SNSF SPONSORED PROJECT
PURPOSE: Instanciates the chemical elements (each of class Atom) and load their physico-chemical properties
Physico-chemical properties are loaded from file ELEMENTSFILENAME in the chemcpp distribution.
Atom* myPointer = elements["H"];
for example to get the covalent radius value of an atom use:
float myCR = myPointer->getFloatDescriptor(CR)->getValue();
|
loads the elements from a file. |
|
elements destructor. at the moment only a default desctructor, but could eventually delete all chemical elements this class created. |
|
returns the filename of the atom kernel matrix loaded. returns "default" if no kernel matrix was loaded. |
|
returns a pointer to the element designed by aSymbol. |
|
loads the definition of elements. |
|
function to load a gram matrix to compare atoms. this matrix will then be used by the kashima kernel. by default without calling this function, the identity matrix is loaded by the elements constructor. |
|
returns the number of elements in periodicTable. |
|
returns an atom pointer to an element designed using its chemical symbol. |
|
gram matrix used to compare atoms. can be set with loadGramAtom(). this matrix is initialized to the identity matrix by the constructor. |
|
filename of the atom kernel matrix loaded. |
|
hash of atoms indexed by their symbolic names (ex: H, Na,...). |