Data structure for the storage and lookup of MMFF94 bond-stretching interaction parameters.
More...
#include <MMFF94BondStretchingParameterTable.hpp>
|
| class | Entry |
| | Data structure for the storage of values associated with a single parameter table entry. More...
|
| |
|
| typedef std::shared_ptr< MMFF94BondStretchingParameterTable > | SharedPointer |
| | A reference-counted smart pointer [SHPTR] for dynamically allocated MMFF94BondStretchingParameterTable 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...
|
| |
Data structure for the storage and lookup of MMFF94 bond-stretching interaction parameters.
◆ SharedPointer
A reference-counted smart pointer [SHPTR] for dynamically allocated MMFF94BondStretchingParameterTable instances.
◆ ConstEntryIterator
A constant iterator over the entries of the table.
◆ EntryIterator
A mutable iterator over the entries of the table.
◆ MMFF94BondStretchingParameterTable()
| CDPL::ForceField::MMFF94BondStretchingParameterTable::MMFF94BondStretchingParameterTable |
( |
| ) |
|
Constructs an empty MMFF94BondStretchingParameterTable instance.
◆ addEntry()
| void CDPL::ForceField::MMFF94BondStretchingParameterTable::addEntry |
( |
unsigned int |
bond_type_idx, |
|
|
unsigned int |
atom1_type, |
|
|
unsigned int |
atom2_type, |
|
|
double |
force_const, |
|
|
double |
ref_length |
|
) |
| |
Adds a new (or overwrites an existing) entry for the given query and parameter values.
- Parameters
-
| bond_type_idx | The MMFF94 bond type index. |
| atom1_type | The numeric MMFF94 atom type of the first bonded atom. |
| atom2_type | The numeric MMFF94 atom type of the second bonded atom. |
| force_const | The bond-stretching force constant. |
| ref_length | The reference bond length. |
◆ getEntry()
| const Entry& CDPL::ForceField::MMFF94BondStretchingParameterTable::getEntry |
( |
unsigned int |
bond_type_idx, |
|
|
unsigned int |
atom1_type, |
|
|
unsigned int |
atom2_type |
|
) |
| const |
Returns a reference to the entry matching the specified query values.
- Parameters
-
| bond_type_idx | The MMFF94 bond type index. |
| atom1_type | The numeric MMFF94 atom type of the first bonded atom. |
| atom2_type | The numeric MMFF94 atom type of the second bonded atom. |
- Returns
- A
const reference to the matching entry or to an uninitialized entry if no matching entry exists.
◆ getNumEntries()
| std::size_t CDPL::ForceField::MMFF94BondStretchingParameterTable::getNumEntries |
( |
| ) |
const |
Returns the number of entries in the table.
- Returns
- The entry count.
◆ clear()
| void CDPL::ForceField::MMFF94BondStretchingParameterTable::clear |
( |
| ) |
|
Removes all entries from the table.
◆ removeEntry() [1/2]
| bool CDPL::ForceField::MMFF94BondStretchingParameterTable::removeEntry |
( |
unsigned int |
bond_type_idx, |
|
|
unsigned int |
atom1_type, |
|
|
unsigned int |
atom2_type |
|
) |
| |
Removes the entry matching the specified query values.
- Parameters
-
| bond_type_idx | The MMFF94 bond type index. |
| atom1_type | The numeric MMFF94 atom type of the first bonded atom. |
| atom2_type | The numeric MMFF94 atom type of the second bonded atom. |
- Returns
true if a matching entry was removed, and false if no such entry existed.
◆ removeEntry() [2/2]
Removes the entry pointed to by the iterator it.
- Parameters
-
| it | An iterator pointing to the entry to remove. |
- Returns
- An iterator pointing to the entry immediately following the removed one.
◆ getEntriesBegin() [1/2]
| ConstEntryIterator CDPL::ForceField::MMFF94BondStretchingParameterTable::getEntriesBegin |
( |
| ) |
const |
Returns a constant iterator pointing to the beginning of the entry list.
- Returns
- A constant iterator to the first entry.
◆ getEntriesEnd() [1/2]
| ConstEntryIterator CDPL::ForceField::MMFF94BondStretchingParameterTable::getEntriesEnd |
( |
| ) |
const |
Returns a constant iterator pointing one past the last entry.
- Returns
- A constant iterator to the end of the entry list.
◆ getEntriesBegin() [2/2]
| EntryIterator CDPL::ForceField::MMFF94BondStretchingParameterTable::getEntriesBegin |
( |
| ) |
|
Returns a mutable iterator pointing to the beginning of the entry list.
- Returns
- A mutable iterator to the first entry.
◆ getEntriesEnd() [2/2]
| EntryIterator CDPL::ForceField::MMFF94BondStretchingParameterTable::getEntriesEnd |
( |
| ) |
|
Returns a mutable iterator pointing one past the last entry.
- Returns
- A mutable iterator to the end of the entry list.
◆ begin() [1/2]
Returns a constant iterator pointing to the beginning of the entry list (alias of getEntriesBegin()).
- Returns
- A constant iterator to the first entry.
◆ end() [1/2]
Returns a constant iterator pointing one past the last entry (alias of getEntriesEnd()).
- Returns
- A constant iterator to the end of the entry list.
◆ begin() [2/2]
| EntryIterator CDPL::ForceField::MMFF94BondStretchingParameterTable::begin |
( |
| ) |
|
Returns a mutable iterator pointing to the beginning of the entry list (alias of getEntriesBegin()).
- Returns
- A mutable iterator to the first entry.
◆ end() [2/2]
| EntryIterator CDPL::ForceField::MMFF94BondStretchingParameterTable::end |
( |
| ) |
|
Returns a mutable iterator pointing one past the last entry (alias of getEntriesEnd()).
- Returns
- A mutable iterator to the end of the entry list.
◆ load()
| void CDPL::ForceField::MMFF94BondStretchingParameterTable::load |
( |
std::istream & |
is | ) |
|
Loads table entries from the input stream is.
- Parameters
-
| is | The input stream to read from. |
◆ loadDefaults()
| void CDPL::ForceField::MMFF94BondStretchingParameterTable::loadDefaults |
( |
| ) |
|
Loads the built-in default bond-stretching parameter entries.
◆ set()
| static void CDPL::ForceField::MMFF94BondStretchingParameterTable::set |
( |
const SharedPointer & |
table | ) |
|
|
static |
Replaces the process-wide default table by table.
- Parameters
-
| table | The new default table (a nullptr resets to the built-in default). |
◆ get()
| static const SharedPointer& CDPL::ForceField::MMFF94BondStretchingParameterTable::get |
( |
| ) |
|
|
static |
Returns the process-wide default table (lazily initialized on first call).
- Returns
- A
const reference to the default-table shared pointer.
The documentation for this class was generated from the following file: