29 #ifndef CDPL_FORCEFIELD_MMFF94BONDCHARGEINCREMENTTABLE_HPP
30 #define CDPL_FORCEFIELD_MMFF94BONDCHARGEINCREMENTTABLE_HPP
35 #include <unordered_map>
39 #include <boost/iterator/transform_iterator.hpp>
57 typedef std::unordered_map<std::uint32_t, Entry> DataStorage;
68 Entry(
unsigned int bond_type_idx,
unsigned int atom1_type,
unsigned int atom2_type,
double bond_chg_inc);
81 unsigned int bondTypeIdx;
82 unsigned int atom1Type;
83 unsigned int atom2Type;
88 typedef boost::transform_iterator<std::function<
const Entry&(
const DataStorage::value_type&)>,
89 DataStorage::const_iterator>
92 typedef boost::transform_iterator<std::function<
Entry&(DataStorage::value_type&)>,
93 DataStorage::iterator>
98 void addEntry(
unsigned int bond_type_idx,
unsigned int atom1_type,
unsigned int atom2_type,
double bond_chg_inc);
100 const Entry&
getEntry(
unsigned int bond_type_idx,
unsigned int atom1_type,
unsigned int atom2_type)
const;
106 bool removeEntry(
unsigned int bond_type_idx,
unsigned int atom1_type,
unsigned int atom2_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: MMFF94BondChargeIncrementTable.hpp:63
unsigned int getBondTypeIndex() const
unsigned int getAtom1Type() const
unsigned int getAtom2Type() const
Entry(unsigned int bond_type_idx, unsigned int atom1_type, unsigned int atom2_type, double bond_chg_inc)
double getChargeIncrement() const
Definition: MMFF94BondChargeIncrementTable.hpp:51
const Entry & getEntry(unsigned int bond_type_idx, unsigned int atom1_type, unsigned int atom2_type) const
ConstEntryIterator getEntriesBegin() const
static const SharedPointer & get()
EntryIterator removeEntry(const EntryIterator &it)
EntryIterator getEntriesEnd()
EntryIterator getEntriesBegin()
boost::transform_iterator< std::function< Entry &(DataStorage::value_type &)>, DataStorage::iterator > EntryIterator
Definition: MMFF94BondChargeIncrementTable.hpp:94
void load(std::istream &is)
void addEntry(unsigned int bond_type_idx, unsigned int atom1_type, unsigned int atom2_type, double bond_chg_inc)
ConstEntryIterator getEntriesEnd() const
bool removeEntry(unsigned int bond_type_idx, unsigned int atom1_type, unsigned int atom2_type)
std::size_t getNumEntries() const
ConstEntryIterator end() const
std::shared_ptr< MMFF94BondChargeIncrementTable > SharedPointer
Definition: MMFF94BondChargeIncrementTable.hpp:60
boost::transform_iterator< std::function< const Entry &(const DataStorage::value_type &)>, DataStorage::const_iterator > ConstEntryIterator
Definition: MMFF94BondChargeIncrementTable.hpp:90
static void set(const SharedPointer &table)
ConstEntryIterator begin() const
MMFF94BondChargeIncrementTable()
The namespace of the Chemical Data Processing Library.