#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. | |
Static Public Member Functions | |
| static ParamCollection * | getParams (const std::string ¶mData="") |
| gets a pointer to the singleton ParamCollection | |
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");
Definition at line 56 of file Params.h.
| static ParamCollection* ForceFields::UFF::ParamCollection::getParams | ( | const std::string & | paramData = "" |
) | [static] |
gets a pointer to the singleton ParamCollection
| paramData | (optional) a string with parameter data. See below for more information about this argument |
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. | const AtomicParams* ForceFields::UFF::ParamCollection::operator() | ( | const std::string & | symbol | ) | const [inline] |
Looks up the parameters for a particular UFF key and returns them.
1.5.3