9 #ifndef IMPKERNEL_FUNCTOR_H
10 #define IMPKERNEL_FUNCTOR_H
12 #include <IMP/kernel_config.h>
13 #include "internal/functors.h"
15 IMPKERNEL_BEGIN_NAMESPACE
22 return internal::PredicateEquals<Pred, true>(p, m, value);
29 const Pred *p,
Model *m,
int value) {
30 return internal::PredicateEquals<Pred, false>(p, m, value);
33 IMPKERNEL_END_NAMESPACE
internal::PredicateEquals< Pred, false > make_predicate_not_equal(const Pred *p, Model *m, int value)
Class for storing model, its restraints, constraints, and particles.
internal::PredicateEquals< Pred, true > make_predicate_equal(const Pred *p, Model *m, int value)
Return a functor that returns true when the predicate has a certain value.