12 #ifndef IMPKERNEL_PAIR_PREDICATE_H
13 #define IMPKERNEL_PAIR_PREDICATE_H
15 #include <IMP/kernel_config.h>
18 #include "internal/container_helpers.h"
21 IMPKERNEL_BEGIN_NAMESPACE
38 IMPKERNEL_DEPRECATED_METHOD_DECL(2.1)
42 IMPKERNEL_DEPRECATED_METHOD_DECL(2.1)
45 #if !defined(IMP_DOXYGEN) && !defined(SWIG)
66 return get_value_index(m, vt);
73 return get_value_index(m, vt);
79 for (
unsigned int i = 0; i < o.size(); ++i) {
80 ret[i] += get_value_index(m, o[i]);
88 IMPKERNEL_END_NAMESPACE
virtual int get_value_index_in_batch(Model *m, const ParticleIndexPair &vt) const
A class to store an fixed array of same-typed values.
Class for adding derivatives from restraints to the model.
int operator()(Model *m, const ParticleIndexPair &vt) const
Enable them to be use as functors.
Base class for objects that take particle arguments and read from them.
#define IMP_REF_COUNTED_DESTRUCTOR(Name)
Ref counted objects should have private destructors.
virtual void setup_for_get_value_index_in_batch(Model *) const
Class for storing model, its restraints, constraints, and particles.
Common base class for heavy weight IMP objects.
Classes used in the construction of ModelObjects.
Abstract predicate function.