singleton class for retrieving information about atoms More...
#include <PeriodicTable.h>
Public Member Functions | |
| ~PeriodicTable () | |
| double | getAtomicWeight (UINT atomicNumber) const |
| returns the atomic weight | |
| double | getAtomicWeight (const std::string &elementSymbol) const |
| double | getAtomicWeight (char *elementSymbol) const |
| int | getAtomicNumber (char *elementSymbol) const |
| returns the atomic number | |
| int | getAtomicNumber (const std::string &elementSymbol) const |
| overload | |
| std::string | getElementSymbol (UINT atomicNumber) const |
| returns the atomic symbol | |
| double | getRvdw (UINT atomicNumber) const |
| returns the atom's van der Waals radius | |
| double | getRvdw (const std::string &elementSymbol) const |
| double | getRvdw (char *elementSymbol) const |
| double | getRcovalent (UINT atomicNumber) const |
| returns the atom's covalent radius | |
| double | getRcovalent (const std::string &elementSymbol) const |
| double | getRcovalent (char *elementSymbol) const |
| double | getRb0 (UINT atomicNumber) const |
| returns the atom's bond radius | |
| double | getRb0 (const std::string &elementSymbol) const |
| double | getRb0 (char *elementSymbol) const |
| int | getDefaultValence (UINT atomicNumber) const |
| returns the atom's default valence | |
| int | getDefaultValence (const std::string &elementSymbol) const |
| int | getDefaultValence (char *elementSymbol) const |
| const INT_VECT & | getValenceList (UINT atomicNumber) const |
| const INT_VECT & | getValenceList (const std::string &elementSymbol) const |
| const INT_VECT & | getValenceList (char *elementSymbol) const |
| int | getNouterElecs (UINT atomicNumber) const |
| returns the number of outer shell electrons | |
| int | getNouterElecs (const std::string &elementSymbol) const |
| int | getNouterElecs (char *elementSymbol) const |
| int | getMostCommonIsotope (UINT atomicNumber) const |
| returns the number of the most common isotope | |
| int | getMostCommonIsotope (const std::string &elementSymbol) const |
| int | getMostCommonIsotope (char *elementSymbol) const |
| double | getMostCommonIsotopeMass (UINT atomicNumber) const |
| returns the mass of the most common isotope | |
| double | getMostCommonIsotopeMass (const std::string &elementSymbol) const |
| double | getMostCommonIsotopeMass (char *elementSymbol) const |
| bool | moreElectroNegative (UINT anum1, UINT anum2) const |
| convenience function to determine which atom is more electronegative | |
Static Public Member Functions | |
| static PeriodicTable * | getTable () |
| returns a pointer to the singleton PeriodicTable | |
singleton class for retrieving information about atoms
Use the singleton like this:
const PeriodicTable *tbl = PeriodicTable::getTable();
tbl->getAtomicWeight(6); // get atomic weight for Carbon
tbl->getAtomicWeight("C"); // get atomic weight for Carbon
Definition at line 31 of file PeriodicTable.h.
| RDKit::PeriodicTable::~PeriodicTable | ( | ) | [inline] |
Definition at line 48 of file PeriodicTable.h.
| int RDKit::PeriodicTable::getAtomicNumber | ( | char * | elementSymbol | ) | const [inline] |
returns the atomic number
Definition at line 73 of file PeriodicTable.h.
| int RDKit::PeriodicTable::getAtomicNumber | ( | const std::string & | elementSymbol | ) | const [inline] |
| double RDKit::PeriodicTable::getAtomicWeight | ( | UINT | atomicNumber | ) | const [inline] |
returns the atomic weight
Definition at line 55 of file PeriodicTable.h.
References PRECONDITION.
Referenced by getAtomicWeight().
| double RDKit::PeriodicTable::getAtomicWeight | ( | char * | elementSymbol | ) | const [inline] |
This is an overloaded member function, provided for convenience. It differs from the above function only in what argument(s) it accepts.
Definition at line 68 of file PeriodicTable.h.
References getAtomicWeight().
| double RDKit::PeriodicTable::getAtomicWeight | ( | const std::string & | elementSymbol | ) | const [inline] |
This is an overloaded member function, provided for convenience. It differs from the above function only in what argument(s) it accepts.
Definition at line 61 of file PeriodicTable.h.
References PRECONDITION.
| int RDKit::PeriodicTable::getDefaultValence | ( | UINT | atomicNumber | ) | const [inline] |
returns the atom's default valence
Definition at line 143 of file PeriodicTable.h.
References PRECONDITION.
Referenced by getDefaultValence().
| int RDKit::PeriodicTable::getDefaultValence | ( | const std::string & | elementSymbol | ) | const [inline] |
This is an overloaded member function, provided for convenience. It differs from the above function only in what argument(s) it accepts.
Definition at line 148 of file PeriodicTable.h.
References getDefaultValence(), and PRECONDITION.
| int RDKit::PeriodicTable::getDefaultValence | ( | char * | elementSymbol | ) | const [inline] |
This is an overloaded member function, provided for convenience. It differs from the above function only in what argument(s) it accepts.
Definition at line 153 of file PeriodicTable.h.
References getDefaultValence().
| std::string RDKit::PeriodicTable::getElementSymbol | ( | UINT | atomicNumber | ) | const [inline] |
| int RDKit::PeriodicTable::getMostCommonIsotope | ( | UINT | atomicNumber | ) | const [inline] |
returns the number of the most common isotope
Definition at line 190 of file PeriodicTable.h.
References PRECONDITION.
Referenced by getMostCommonIsotope().
| int RDKit::PeriodicTable::getMostCommonIsotope | ( | const std::string & | elementSymbol | ) | const [inline] |
This is an overloaded member function, provided for convenience. It differs from the above function only in what argument(s) it accepts.
Definition at line 195 of file PeriodicTable.h.
References getMostCommonIsotope(), and PRECONDITION.
| int RDKit::PeriodicTable::getMostCommonIsotope | ( | char * | elementSymbol | ) | const [inline] |
This is an overloaded member function, provided for convenience. It differs from the above function only in what argument(s) it accepts.
Definition at line 200 of file PeriodicTable.h.
References getMostCommonIsotope().
| double RDKit::PeriodicTable::getMostCommonIsotopeMass | ( | char * | elementSymbol | ) | const [inline] |
This is an overloaded member function, provided for convenience. It differs from the above function only in what argument(s) it accepts.
Definition at line 215 of file PeriodicTable.h.
References getMostCommonIsotopeMass().
| double RDKit::PeriodicTable::getMostCommonIsotopeMass | ( | UINT | atomicNumber | ) | const [inline] |
returns the mass of the most common isotope
Definition at line 205 of file PeriodicTable.h.
References PRECONDITION.
Referenced by getMostCommonIsotopeMass().
| double RDKit::PeriodicTable::getMostCommonIsotopeMass | ( | const std::string & | elementSymbol | ) | const [inline] |
This is an overloaded member function, provided for convenience. It differs from the above function only in what argument(s) it accepts.
Definition at line 210 of file PeriodicTable.h.
References getMostCommonIsotopeMass(), and PRECONDITION.
| int RDKit::PeriodicTable::getNouterElecs | ( | UINT | atomicNumber | ) | const [inline] |
returns the number of outer shell electrons
Definition at line 175 of file PeriodicTable.h.
References PRECONDITION.
Referenced by getNouterElecs(), and moreElectroNegative().
| int RDKit::PeriodicTable::getNouterElecs | ( | const std::string & | elementSymbol | ) | const [inline] |
This is an overloaded member function, provided for convenience. It differs from the above function only in what argument(s) it accepts.
Definition at line 180 of file PeriodicTable.h.
References getNouterElecs(), and PRECONDITION.
| int RDKit::PeriodicTable::getNouterElecs | ( | char * | elementSymbol | ) | const [inline] |
This is an overloaded member function, provided for convenience. It differs from the above function only in what argument(s) it accepts.
Definition at line 185 of file PeriodicTable.h.
References getNouterElecs().
| double RDKit::PeriodicTable::getRb0 | ( | char * | elementSymbol | ) | const [inline] |
This is an overloaded member function, provided for convenience. It differs from the above function only in what argument(s) it accepts.
Definition at line 138 of file PeriodicTable.h.
References getRb0().
| double RDKit::PeriodicTable::getRb0 | ( | UINT | atomicNumber | ) | const [inline] |
returns the atom's bond radius
Definition at line 128 of file PeriodicTable.h.
References PRECONDITION.
Referenced by getRb0().
| double RDKit::PeriodicTable::getRb0 | ( | const std::string & | elementSymbol | ) | const [inline] |
This is an overloaded member function, provided for convenience. It differs from the above function only in what argument(s) it accepts.
Definition at line 133 of file PeriodicTable.h.
References getRb0(), and PRECONDITION.
| double RDKit::PeriodicTable::getRcovalent | ( | char * | elementSymbol | ) | const [inline] |
This is an overloaded member function, provided for convenience. It differs from the above function only in what argument(s) it accepts.
Definition at line 123 of file PeriodicTable.h.
References getRcovalent().
| double RDKit::PeriodicTable::getRcovalent | ( | const std::string & | elementSymbol | ) | const [inline] |
This is an overloaded member function, provided for convenience. It differs from the above function only in what argument(s) it accepts.
Definition at line 118 of file PeriodicTable.h.
References getRcovalent(), and PRECONDITION.
| double RDKit::PeriodicTable::getRcovalent | ( | UINT | atomicNumber | ) | const [inline] |
returns the atom's covalent radius
Definition at line 113 of file PeriodicTable.h.
References PRECONDITION.
Referenced by getRcovalent().
| double RDKit::PeriodicTable::getRvdw | ( | UINT | atomicNumber | ) | const [inline] |
returns the atom's van der Waals radius
Definition at line 98 of file PeriodicTable.h.
References PRECONDITION.
Referenced by getRvdw().
| double RDKit::PeriodicTable::getRvdw | ( | const std::string & | elementSymbol | ) | const [inline] |
This is an overloaded member function, provided for convenience. It differs from the above function only in what argument(s) it accepts.
Definition at line 103 of file PeriodicTable.h.
References getRvdw(), and PRECONDITION.
| double RDKit::PeriodicTable::getRvdw | ( | char * | elementSymbol | ) | const [inline] |
This is an overloaded member function, provided for convenience. It differs from the above function only in what argument(s) it accepts.
Definition at line 108 of file PeriodicTable.h.
References getRvdw().
| static PeriodicTable* RDKit::PeriodicTable::getTable | ( | ) | [static] |
returns a pointer to the singleton PeriodicTable
| const INT_VECT& RDKit::PeriodicTable::getValenceList | ( | const std::string & | elementSymbol | ) | const [inline] |
This is an overloaded member function, provided for convenience. It differs from the above function only in what argument(s) it accepts.
Definition at line 165 of file PeriodicTable.h.
References getValenceList(), and PRECONDITION.
| const INT_VECT& RDKit::PeriodicTable::getValenceList | ( | char * | elementSymbol | ) | const [inline] |
This is an overloaded member function, provided for convenience. It differs from the above function only in what argument(s) it accepts.
Definition at line 170 of file PeriodicTable.h.
References getValenceList().
returns a vector of all stable valences. For atoms where we really don't have any idea what a reasonable maximum valence is (like transition metals), the vector ends with -1
Definition at line 160 of file PeriodicTable.h.
References PRECONDITION.
Referenced by getValenceList().
convenience function to determine which atom is more electronegative
check if atom with atomic number anum1 is more electronegative than the one with anum2 this is rather lame but here is how we do it
Definition at line 232 of file PeriodicTable.h.
References getNouterElecs(), and PRECONDITION.
1.7.1