29 #ifndef CDPL_CHEM_FRAGMENTFUNCTIONS_HPP
30 #define CDPL_CHEM_FRAGMENTFUNCTIONS_HPP
Type declaration of a generic wrapper class for storing user-defined Chem::Atom predicates.
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.
Concrete Chem::MolecularGraph implementation that stores references to a selectable subset of atoms a...
Definition: Fragment.hpp:57
CDPL_CHEM_API void removeAtomsIfNot(Fragment &frag, const AtomPredicate &pred)
Removes all atoms of the fragment frag for which the predicate pred returns false.
std::function< bool(const Chem::Atom &)> AtomPredicate
Generic wrapper class used to store a user-defined atom predicate.
Definition: AtomPredicate.hpp:41
CDPL_CHEM_API bool makeOrdinaryHydrogenDeplete(Fragment &frag, unsigned int flags)
Removes all explicit ordinary hydrogen atoms from the fragment frag.
CDPL_CHEM_API void removeAtomsIf(Fragment &frag, const AtomPredicate &pred)
Removes all atoms of the fragment frag for which the predicate pred returns true.
CDPL_CHEM_API bool makeHydrogenDeplete(Fragment &frag)
Removes all explicit hydrogen atoms from the fragment frag.
The namespace of the Chemical Data Processing Library.