OEReceptorHasProteinConstraints

bool OEReceptorHasProteinConstraints(const OEChem::OEMolBase& receptor,
                                     bool enabledOnly = true)

Returns true if receptor is a valid receptor and has one or more protein constraints. If enabledOnly the constraint(s) must also be enabled.