29 #ifndef CDPL_CONFGEN_TORSIONRULE_HPP
30 #define CDPL_CONFGEN_TORSIONRULE_HPP
53 typedef std::vector<AngleEntry> AngleEntryList;
60 AngleEntry(
double ang,
double tol1 = 0.0,
double tol2 = 0.0,
double score = 0.0):
61 angle(ang), tolerance1(tol1), tolerance2(tol2), score(score) {}
103 void addAngle(
double angle,
double tol1 = 0.0,
double tol2 = 0.0,
double score = 0.0);
134 void checkAngleIndex(std::size_t idx,
bool it)
const;
136 std::string matchPatternStr;
138 AngleEntryList angles;
Definition of the preprocessor macro CDPL_CONFGEN_API.
#define CDPL_CONFGEN_API
Tells the compiler/linker which classes, functions and variables are part of the library API.
Definition of the class CDPL::Chem::MolecularGraph.
std::shared_ptr< MolecularGraph > SharedPointer
A reference-counted smart pointer [SHPTR] for dynamically allocated MolecularGraph instances.
Definition: MolecularGraph.hpp:58
Definition: TorsionRule.hpp:57
double getTolerance2() const
Definition: TorsionRule.hpp:73
double getTolerance1() const
Definition: TorsionRule.hpp:68
double getScore() const
Definition: TorsionRule.hpp:78
double getAngle() const
Definition: TorsionRule.hpp:63
AngleEntry(double ang, double tol1=0.0, double tol2=0.0, double score=0.0)
Definition: TorsionRule.hpp:60
Definition: TorsionRule.hpp:47
AngleEntryList::iterator AngleEntryIterator
Definition: TorsionRule.hpp:90
AngleEntryIterator begin()
void setMatchPatternString(const std::string &ptn_str)
void setMatchPattern(const Chem::MolecularGraph::SharedPointer &ptn)
ConstAngleEntryIterator getAnglesBegin() const
const std::string & getMatchPatternString() const
ConstAngleEntryIterator end() const
ConstAngleEntryIterator begin() const
AngleEntryList::const_iterator ConstAngleEntryIterator
Definition: TorsionRule.hpp:91
const Chem::MolecularGraph::SharedPointer & getMatchPattern() const
const AngleEntry & getAngle(std::size_t idx) const
AngleEntryIterator getAnglesBegin()
void removeAngle(const AngleEntryIterator &it)
void addAngle(double angle, double tol1=0.0, double tol2=0.0, double score=0.0)
void addAngle(const AngleEntry &ang_entry)
void removeAngle(std::size_t idx)
ConstAngleEntryIterator getAnglesEnd() const
void swap(TorsionRule &rule)
std::size_t getNumAngles() const
AngleEntryIterator getAnglesEnd()
The namespace of the Chemical Data Processing Library.