29 #ifndef CDPL_CHEM_CIPPRIORITYCALCULATOR_HPP
30 #define CDPL_CHEM_CIPPRIORITYCALCULATOR_HPP
96 AtomNode* allocNode(std::size_t
p);
98 typedef std::vector<AtomNode*> NodeList;
106 void addNbrNode(AtomNode*);
108 void setNewPriority(std::size_t);
110 void updateNbrList();
111 void updatePriority();
113 void setPriority(std::size_t
p);
115 std::size_t getPriority()
const;
136 std::size_t priority;
137 std::size_t newPriority;
144 NodeList expAtomNodes;
Definition of class CDPL::Util::Array.
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.
Definition of class CDPL::Util::ObjectStack.
Computes a topological approximation of CIP (Cahn-Ingold-Prelog) priorities for the atoms of a molecu...
Definition: CIPPriorityCalculator.hpp:59
CIPPriorityCalculator & operator=(const CIPPriorityCalculator &)=delete
CIPPriorityCalculator(const CIPPriorityCalculator &)=delete
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...
void calculate(const MolecularGraph &molgraph, Util::STArray &priorities)
Calculates the topological CIP priorities of the atoms in the molecular graph molgraph.
Abstract base class for representations of a chemical structure as a graph of bonded atoms.
Definition: MolecularGraph.hpp:57
constexpr unsigned int p
Specifies that the stereocenter has p configuration.
Definition: CIPDescriptor.hpp:121
Array< std::size_t > STArray
Array storing unsigned integers of type std::size_t.
Definition: Array.hpp:575
The namespace of the Chemical Data Processing Library.
Definition: CIPPriorityCalculator.hpp:118
bool operator()(const AtomNode *, const AtomNode *) const
Definition: CIPPriorityCalculator.hpp:130
bool operator()(const AtomNode *, const AtomNode *) const
Definition: CIPPriorityCalculator.hpp:124
bool operator()(const AtomNode *, const AtomNode *) const