29 #ifndef CDPL_FORCEFIELD_MMFF94PARTIALBONDCHARGEINCREMENTTABLE_HPP
30 #define CDPL_FORCEFIELD_MMFF94PARTIALBONDCHARGEINCREMENTTABLE_HPP
34 #include <unordered_map>
38 #include <boost/iterator/transform_iterator.hpp>
56 typedef std::unordered_map<unsigned int, Entry> DataStorage;
59 typedef std::shared_ptr<MMFF94PartialBondChargeIncrementTable>
SharedPointer;
67 Entry(
unsigned int atom_type,
double part_bond_chg_inc,
double form_chg_adj_factor);
78 unsigned int atomType;
79 double partChargeIncr;
80 double formChargeAdjFactor;
84 typedef boost::transform_iterator<std::function<
const Entry&(
const DataStorage::value_type&)>,
85 DataStorage::const_iterator>
88 typedef boost::transform_iterator<std::function<
Entry&(DataStorage::value_type&)>,
89 DataStorage::iterator>
94 void addEntry(
unsigned int atom_type,
double part_bond_chg_inc,
double form_chg_adj_factor);
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: MMFF94PartialBondChargeIncrementTable.hpp:62
double getPartialChargeIncrement() const
double getFormalChargeAdjustmentFactor() const
Entry(unsigned int atom_type, double part_bond_chg_inc, double form_chg_adj_factor)
unsigned int getAtomType() const
Definition: MMFF94PartialBondChargeIncrementTable.hpp:50
ConstEntryIterator getEntriesBegin() const
EntryIterator getEntriesEnd()
static void set(const SharedPointer &table)
static const SharedPointer & get()
void addEntry(unsigned int atom_type, double part_bond_chg_inc, double form_chg_adj_factor)
ConstEntryIterator getEntriesEnd() const
boost::transform_iterator< std::function< const Entry &(const DataStorage::value_type &)>, DataStorage::const_iterator > ConstEntryIterator
Definition: MMFF94PartialBondChargeIncrementTable.hpp:86
const Entry & getEntry(unsigned int atom_type) const
bool removeEntry(unsigned int atom_type)
std::shared_ptr< MMFF94PartialBondChargeIncrementTable > SharedPointer
Definition: MMFF94PartialBondChargeIncrementTable.hpp:59
EntryIterator getEntriesBegin()
std::size_t getNumEntries() const
MMFF94PartialBondChargeIncrementTable()
EntryIterator removeEntry(const EntryIterator &it)
void load(std::istream &is)
ConstEntryIterator begin() const
ConstEntryIterator end() const
boost::transform_iterator< std::function< Entry &(DataStorage::value_type &)>, DataStorage::iterator > EntryIterator
Definition: MMFF94PartialBondChargeIncrementTable.hpp:90
The namespace of the Chemical Data Processing Library.