Open Babel
3.0
|
#include <openbabel/typer.h>
Public Member Functions | |
OBAtomTyper () | |
OBAtomTyper (const OBAtomTyper &rhs) | |
~OBAtomTyper () | |
const OBAtomTyper & | operator= (const OBAtomTyper &rhs) |
void | ParseLine (const char *) |
size_t | GetSize () |
void | AssignHyb (OBMol &) |
void | AssignTypes (OBMol &) |
void | Init () |
void | SetReadDirectory (char *dir) |
void | SetEnvironmentVariable (char *var) |
Protected Attributes | |
bool | _init |
const char * | _dataptr |
std::string | _filename |
std::string | _dir |
std::string | _subdir |
std::string | _envvar |
Assigns atom types, hybridization, and formal charges.
The OBAtomTyper class is designed to read in a list of atom typing rules and apply them to molecules. The code that performs atom typing is not usually used directly as atom typing, hybridization assignment, and charge are all done automatically when their corresponding values are requested of atoms:
OBAtomTyper | ( | ) |
|
inline |
~OBAtomTyper | ( | ) |
|
inline |
|
virtual |
Specified by particular table classes (parses an individual data line)
Reimplemented from OBGlobalDataBase.
|
inlinevirtual |
Reimplemented from OBGlobalDataBase.
void AssignHyb | ( | OBMol & | mol | ) |
Assign atomic hybridization (1 = sp, 2 = sp2, 3 = sp3...)
void AssignTypes | ( | OBMol & | mol | ) |
Assign external atomic types (i.e., EXTTYP lines in atomtyp.txt)
|
inherited |
Read in the data file, falling back as needed.
Referenced by OBRotorList::Init().
|
inlineinherited |
Set the directory before calling Init()
|
inlineinherited |
Set the environment variable to use before calling Init()
|
protectedinherited |
Whether the data been read already.
|
protectedinherited |
Default data table if file is unreadable.
|
protectedinherited |
File to search for.
|
protectedinherited |
Data directory for file if _envvar fails.
|
protectedinherited |
Subdirectory (if using environment variable)
|
protectedinherited |
Environment variable to check first.