![]() |
Chemical Data Processing Library C++ API - Version 1.4.0
|
Data structure for the storage and lookup of MMFF94 stretch-bend interaction parameters. More...
#include <MMFF94StretchBendParameterTable.hpp>
Classes | |
| class | Entry |
| Data structure for the storage of values associated with a single table entry. More... | |
Public Types | |
| typedef std::shared_ptr< MMFF94StretchBendParameterTable > | SharedPointer |
A reference-counted smart pointer [SHPTR] for dynamically allocated MMFF94StretchBendParameterTable instances. More... | |
| typedef boost::transform_iterator< std::function< const Entry &(const DataStorage::value_type &)>, DataStorage::const_iterator > | ConstEntryIterator |
| A constant iterator over the entries of the table. More... | |
| typedef boost::transform_iterator< std::function< Entry &(DataStorage::value_type &)>, DataStorage::iterator > | EntryIterator |
| A mutable iterator over the entries of the table. More... | |
Public Member Functions | |
| MMFF94StretchBendParameterTable () | |
Constructs an empty MMFF94StretchBendParameterTable instance. More... | |
| void | addEntry (unsigned int sb_type_idx, unsigned int term_atom1_type, unsigned int ctr_atom_type, unsigned int term_atom2_type, double ijk_force_const, double kji_force_const) |
| Adds a new (or overwrites an existing) entry for the given query and parameter values. More... | |
| const Entry & | getEntry (unsigned int sb_type_idx, unsigned int term_atom1_type, unsigned int ctr_atom_type, unsigned int term_atom2_type) const |
| Returns a reference to the entry matching the specified query values. More... | |
| std::size_t | getNumEntries () const |
| Returns the number of entries in the table. More... | |
| void | clear () |
| Removes all entries from the table. More... | |
| bool | removeEntry (unsigned int sb_type_idx, unsigned int term_atom1_type, unsigned int ctr_atom_type, unsigned int term_atom2_type) |
| Removes the entry matching the specified query values. More... | |
| EntryIterator | removeEntry (const EntryIterator &it) |
| Removes the entry pointed to by the iterator it. More... | |
| ConstEntryIterator | getEntriesBegin () const |
| Returns a constant iterator pointing to the beginning of the entry list. More... | |
| ConstEntryIterator | getEntriesEnd () const |
| Returns a constant iterator pointing one past the last entry. More... | |
| EntryIterator | getEntriesBegin () |
| Returns a mutable iterator pointing to the beginning of the entry list. More... | |
| EntryIterator | getEntriesEnd () |
| Returns a mutable iterator pointing one past the last entry. More... | |
| ConstEntryIterator | begin () const |
| Returns a constant iterator pointing to the beginning of the entry list (alias of getEntriesBegin()). More... | |
| ConstEntryIterator | end () const |
| Returns a constant iterator pointing one past the last entry (alias of getEntriesEnd()). More... | |
| EntryIterator | begin () |
| Returns a mutable iterator pointing to the beginning of the entry list (alias of getEntriesBegin()). More... | |
| EntryIterator | end () |
| Returns a mutable iterator pointing one past the last entry (alias of getEntriesEnd()). More... | |
| void | load (std::istream &is) |
| Loads table entries from the input stream is. More... | |
| void | loadDefaults () |
| Loads the built-in default MMFF94 stretch-bend parameter entries. More... | |
Static Public Member Functions | |
| static void | set (const SharedPointer &table) |
| Replaces the process-wide default table by table. More... | |
| static const SharedPointer & | get () |
| Returns the process-wide default table (lazily initialized on first call). More... | |
Data structure for the storage and lookup of MMFF94 stretch-bend interaction parameters.
Two directional force constants are stored per entry: IJK couples the bond i-j to the angle i-j-k, and KJI couples the bond j-k to the same angle.
| typedef std::shared_ptr<MMFF94StretchBendParameterTable> CDPL::ForceField::MMFF94StretchBendParameterTable::SharedPointer |
A reference-counted smart pointer [SHPTR] for dynamically allocated MMFF94StretchBendParameterTable instances.
| typedef boost::transform_iterator<std::function<const Entry&(const DataStorage::value_type&)>, DataStorage::const_iterator> CDPL::ForceField::MMFF94StretchBendParameterTable::ConstEntryIterator |
A constant iterator over the entries of the table.
| typedef boost::transform_iterator<std::function<Entry&(DataStorage::value_type&)>, DataStorage::iterator> CDPL::ForceField::MMFF94StretchBendParameterTable::EntryIterator |
A mutable iterator over the entries of the table.
| CDPL::ForceField::MMFF94StretchBendParameterTable::MMFF94StretchBendParameterTable | ( | ) |
Constructs an empty MMFF94StretchBendParameterTable instance.
| void CDPL::ForceField::MMFF94StretchBendParameterTable::addEntry | ( | unsigned int | sb_type_idx, |
| unsigned int | term_atom1_type, | ||
| unsigned int | ctr_atom_type, | ||
| unsigned int | term_atom2_type, | ||
| double | ijk_force_const, | ||
| double | kji_force_const | ||
| ) |
Adds a new (or overwrites an existing) entry for the given query and parameter values.
| sb_type_idx | The MMFF94 stretch-bend type index. |
| term_atom1_type | The numeric MMFF94 atom type of the first terminal atom. |
| ctr_atom_type | The numeric MMFF94 atom type of the center atom. |
| term_atom2_type | The numeric MMFF94 atom type of the second terminal atom. |
| ijk_force_const | The IJK stretch-bend force constant. |
| kji_force_const | The KJI stretch-bend force constant. |
| const Entry& CDPL::ForceField::MMFF94StretchBendParameterTable::getEntry | ( | unsigned int | sb_type_idx, |
| unsigned int | term_atom1_type, | ||
| unsigned int | ctr_atom_type, | ||
| unsigned int | term_atom2_type | ||
| ) | const |
Returns a reference to the entry matching the specified query values.
| sb_type_idx | The MMFF94 stretch-bend type index. |
| term_atom1_type | The numeric MMFF94 atom type of the first terminal atom. |
| ctr_atom_type | The numeric MMFF94 atom type of the center atom. |
| term_atom2_type | The numeric MMFF94 atom type of the second terminal atom. |
const reference to the matching entry or to an uninitialized entry if no matching entry exists. | std::size_t CDPL::ForceField::MMFF94StretchBendParameterTable::getNumEntries | ( | ) | const |
Returns the number of entries in the table.
| void CDPL::ForceField::MMFF94StretchBendParameterTable::clear | ( | ) |
Removes all entries from the table.
| bool CDPL::ForceField::MMFF94StretchBendParameterTable::removeEntry | ( | unsigned int | sb_type_idx, |
| unsigned int | term_atom1_type, | ||
| unsigned int | ctr_atom_type, | ||
| unsigned int | term_atom2_type | ||
| ) |
Removes the entry matching the specified query values.
| sb_type_idx | The MMFF94 stretch-bend type index. |
| term_atom1_type | The numeric MMFF94 atom type of the first terminal atom. |
| ctr_atom_type | The numeric MMFF94 atom type of the center atom. |
| term_atom2_type | The numeric MMFF94 atom type of the second terminal atom. |
true if a matching entry was removed, and false if no such entry existed. | EntryIterator CDPL::ForceField::MMFF94StretchBendParameterTable::removeEntry | ( | const EntryIterator & | it | ) |
Removes the entry pointed to by the iterator it.
| it | An iterator pointing to the entry to remove. |
| ConstEntryIterator CDPL::ForceField::MMFF94StretchBendParameterTable::getEntriesBegin | ( | ) | const |
Returns a constant iterator pointing to the beginning of the entry list.
| ConstEntryIterator CDPL::ForceField::MMFF94StretchBendParameterTable::getEntriesEnd | ( | ) | const |
Returns a constant iterator pointing one past the last entry.
| EntryIterator CDPL::ForceField::MMFF94StretchBendParameterTable::getEntriesBegin | ( | ) |
Returns a mutable iterator pointing to the beginning of the entry list.
| EntryIterator CDPL::ForceField::MMFF94StretchBendParameterTable::getEntriesEnd | ( | ) |
Returns a mutable iterator pointing one past the last entry.
| ConstEntryIterator CDPL::ForceField::MMFF94StretchBendParameterTable::begin | ( | ) | const |
Returns a constant iterator pointing to the beginning of the entry list (alias of getEntriesBegin()).
| ConstEntryIterator CDPL::ForceField::MMFF94StretchBendParameterTable::end | ( | ) | const |
Returns a constant iterator pointing one past the last entry (alias of getEntriesEnd()).
| EntryIterator CDPL::ForceField::MMFF94StretchBendParameterTable::begin | ( | ) |
Returns a mutable iterator pointing to the beginning of the entry list (alias of getEntriesBegin()).
| EntryIterator CDPL::ForceField::MMFF94StretchBendParameterTable::end | ( | ) |
Returns a mutable iterator pointing one past the last entry (alias of getEntriesEnd()).
| void CDPL::ForceField::MMFF94StretchBendParameterTable::load | ( | std::istream & | is | ) |
Loads table entries from the input stream is.
| is | The input stream to read from. |
| void CDPL::ForceField::MMFF94StretchBendParameterTable::loadDefaults | ( | ) |
Loads the built-in default MMFF94 stretch-bend parameter entries.
|
static |
Replaces the process-wide default table by table.
| table | The new default table (nullptr resets to the built-in default). |
|
static |
Returns the process-wide default table (lazily initialized on first call).