![]() |
RDKit
Open-source cheminformatics and machine learning.
|
singleton class for retrieving UFF AtomParams More...
#include <Params.h>
Public Member Functions | |
| const AtomicParams * | operator() (const std::string &symbol) const |
| Looks up the parameters for a particular UFF key and returns them. | |
| ParamCollection (std::string paramData) | |
Static Public Member Functions | |
| static const ParamCollection * | getParams (const std::string ¶mData="") |
| gets a pointer to the singleton ParamCollection | |
singleton class for retrieving UFF AtomParams
Use the singleton like this:
ParamCollection *params=ParamCollection::getParams();
const AtomParams *ap=params("C_3");
If you have your own parameter data, it can be supplied as a string:
ParamCollection *params=ParamCollection::getParams(myParamData);
const AtomParams *ap=params("C_3");
You are responsible for making sure that the data is in the correct format (see Params.cpp for an example).
Definition at line 108 of file UFF/Params.h.
| ForceFields::UFF::ParamCollection::ParamCollection | ( | std::string | paramData | ) |
Referenced by getParams().
|
static |
gets a pointer to the singleton ParamCollection
| paramData | (optional) a string with parameter data. See below for more information about this argument |
Notes:
paramData is empty, the singleton will be returned.paramData is empty and the singleton ParamCollection has not yet been instantiated, the default UFF parameters (from Params.cpp) will be used.paramData is supplied, a new singleton will be instantiated. The current instantiation (if there is one) will be deleted. References ParamCollection().
|
inline |
Looks up the parameters for a particular UFF key and returns them.
Definition at line 132 of file UFF/Params.h.
References symbol.