|
Chemical Data Processing Library C++ API - Version 1.0.0
|
Go to the documentation of this file.
29 #ifndef CDPL_CHEM_CIPPRIORITYCALCULATOR_HPP
30 #define CDPL_CHEM_CIPPRIORITYCALCULATOR_HPP
98 AtomNode* allocNode(std::size_t p);
100 typedef std::vector<AtomNode*> NodeList;
108 void addNbrNode(AtomNode*);
110 void setNewPriority(std::size_t);
112 void updateNbrList();
113 void updatePriority();
115 void setPriority(std::size_t p);
117 std::size_t getPriority()
const;
138 std::size_t priority;
139 std::size_t newPriority;
146 NodeList expAtomNodes;
153 #endif // CDPL_CHEM_CIPPRIORITYCALCULATOR_HPP
Definition of the class CDPL::Util::ObjectStack.
void setImplicitHydrogenCountFunction(const ImplicitHydrogenCountFunction &func)
Definition of the preprocessor macro CDPL_CHEM_API.
#define CDPL_CHEM_API
Tells the compiler/linker which classes, functions and variables are part of the library API.
Atom.
Definition: Atom.hpp:52
bool operator()(const AtomNode *, const AtomNode *) const
MolecularGraph.
Definition: MolecularGraph.hpp:52
Definition of the class CDPL::Util::Array.
CIPPriorityCalculator.
Definition: CIPPriorityCalculator.hpp:55
bool operator()(const AtomNode *, const AtomNode *) const
const ImplicitHydrogenCountFunction & getImplicitHydrogenCountFunction()
Definition: CIPPriorityCalculator.hpp:132
Definition: CIPPriorityCalculator.hpp:126
std::function< std::size_t(const Atom &)> ImplicitHydrogenCountFunction
Definition: CIPPriorityCalculator.hpp:58
The namespace of the Chemical Data Processing Library.
Array< std::size_t > STArray
An array of unsigned integers of type std::size_t.
Definition: Array.hpp:567
Definition: CIPPriorityCalculator.hpp:120
void calculate(const MolecularGraph &molgraph, Util::STArray &priorities)
Calculates the topological CIP priorities of the atoms in the molecular graph molgraph.
bool operator()(const AtomNode *, const AtomNode *) const
CIPPriorityCalculator()
Constructs the CIPPriorityCalculator instance.
CIPPriorityCalculator(const MolecularGraph &molgraph, Util::STArray &priorities)
Constructs the CIPPriorityCalculator instance and calculates the topological CIP priorities of the at...