29 #ifndef CDPL_CHEM_CIPPRIORITYCALCULATOR_HPP
30 #define CDPL_CHEM_CIPPRIORITYCALCULATOR_HPP
91 AtomNode* allocNode(std::size_t
p);
93 typedef std::vector<AtomNode*> NodeList;
101 void addNbrNode(AtomNode*);
103 void setNewPriority(std::size_t);
105 void updateNbrList();
106 void updatePriority();
108 void setPriority(std::size_t
p);
110 std::size_t getPriority()
const;
131 std::size_t priority;
132 std::size_t newPriority;
139 NodeList expAtomNodes;
Definition of the 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 the class CDPL::Util::ObjectStack.
CIPPriorityCalculator.
Definition: CIPPriorityCalculator.hpp:54
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.
MolecularGraph.
Definition: MolecularGraph.hpp:52
constexpr unsigned int p
Specifies that the stereocenter has p configuration.
Definition: CIPDescriptor.hpp:121
Array< std::size_t > STArray
An array of unsigned integers of type std::size_t.
Definition: Array.hpp:567
The namespace of the Chemical Data Processing Library.
Definition: CIPPriorityCalculator.hpp:113
bool operator()(const AtomNode *, const AtomNode *) const
Definition: CIPPriorityCalculator.hpp:125
bool operator()(const AtomNode *, const AtomNode *) const
Definition: CIPPriorityCalculator.hpp:119
bool operator()(const AtomNode *, const AtomNode *) const