29 #ifndef CDPL_FORCEFIELD_MMFF94OUTOFPLANEBENDINGPARAMETERTABLE_HPP
30 #define CDPL_FORCEFIELD_MMFF94OUTOFPLANEBENDINGPARAMETERTABLE_HPP
35 #include <unordered_map>
39 #include <boost/iterator/transform_iterator.hpp>
57 typedef std::unordered_map<std::uint32_t, Entry> DataStorage;
60 typedef std::shared_ptr<MMFF94OutOfPlaneBendingParameterTable>
SharedPointer;
68 Entry(
unsigned int term_atom1_type,
unsigned int ctr_atom_type,
unsigned int term_atom2_type,
69 unsigned int oop_atom_type,
double force_const);
84 unsigned int termAtom1Type;
85 unsigned int ctrAtomType;
86 unsigned int termAtom2Type;
87 unsigned int oopAtomType;
92 typedef boost::transform_iterator<std::function<
const Entry&(
const DataStorage::value_type&)>,
93 DataStorage::const_iterator>
96 typedef boost::transform_iterator<std::function<
Entry&(DataStorage::value_type&)>,
97 DataStorage::iterator>
102 void addEntry(
unsigned int term_atom1_type,
unsigned int ctr_atom_type,
unsigned int term_atom2_type,
103 unsigned int oop_atom_type,
double force_const);
105 const Entry&
getEntry(
unsigned int term_atom1_type,
unsigned int ctr_atom_type,
unsigned int term_atom2_type,
106 unsigned int oop_atom_type)
const;
112 bool removeEntry(
unsigned int term_atom1_type,
unsigned int ctr_atom_type,
unsigned int term_atom2_type,
113 unsigned int oop_atom_type);
Definition of the preprocessor macro CDPL_FORCEFIELD_API.
#define CDPL_FORCEFIELD_API
Tells the compiler/linker which classes, functions and variables are part of the library API.
Definition: MMFF94OutOfPlaneBendingParameterTable.hpp:63
unsigned int getCenterAtomType() const
unsigned int getOutOfPlaneAtomType() const
Entry(unsigned int term_atom1_type, unsigned int ctr_atom_type, unsigned int term_atom2_type, unsigned int oop_atom_type, double force_const)
unsigned int getTerminalAtom2Type() const
double getForceConstant() const
unsigned int getTerminalAtom1Type() const
Definition: MMFF94OutOfPlaneBendingParameterTable.hpp:51
MMFF94OutOfPlaneBendingParameterTable()
static void set(const SharedPointer &table, unsigned int param_set)
void load(std::istream &is)
ConstEntryIterator end() const
static const SharedPointer & get(unsigned int param_set)
bool removeEntry(unsigned int term_atom1_type, unsigned int ctr_atom_type, unsigned int term_atom2_type, unsigned int oop_atom_type)
ConstEntryIterator begin() const
boost::transform_iterator< std::function< Entry &(DataStorage::value_type &)>, DataStorage::iterator > EntryIterator
Definition: MMFF94OutOfPlaneBendingParameterTable.hpp:98
boost::transform_iterator< std::function< const Entry &(const DataStorage::value_type &)>, DataStorage::const_iterator > ConstEntryIterator
Definition: MMFF94OutOfPlaneBendingParameterTable.hpp:94
void addEntry(unsigned int term_atom1_type, unsigned int ctr_atom_type, unsigned int term_atom2_type, unsigned int oop_atom_type, double force_const)
ConstEntryIterator getEntriesEnd() const
std::size_t getNumEntries() const
void loadDefaults(unsigned int param_set)
EntryIterator getEntriesBegin()
const Entry & getEntry(unsigned int term_atom1_type, unsigned int ctr_atom_type, unsigned int term_atom2_type, unsigned int oop_atom_type) const
EntryIterator getEntriesEnd()
std::shared_ptr< MMFF94OutOfPlaneBendingParameterTable > SharedPointer
Definition: MMFF94OutOfPlaneBendingParameterTable.hpp:60
ConstEntryIterator getEntriesBegin() const
EntryIterator removeEntry(const EntryIterator &it)
The namespace of the Chemical Data Processing Library.