12#ifndef IMPKERNEL_QUAD_PREDICATE_H
13#define IMPKERNEL_QUAD_PREDICATE_H
15#include <IMP/kernel_config.h>
18#include "internal/container_helpers.h"
21IMPKERNEL_BEGIN_NAMESPACE
36 QuadPredicate(std::string name =
"QuadPredicate %1%");
38#if !defined(IMP_DOXYGEN) && !defined(SWIG)
72 for (
unsigned int i = 0; i < o.size(); ++i) {
73 ret[i] += get_value_index(m, o[i]);
81IMPKERNEL_END_NAMESPACE
Class for adding derivatives from restraints to the model.
Class for storing model, its restraints, constraints, and particles.
Object(std::string name)
Construct an object with the given name.
Base class for objects that take particle arguments and read from them.
virtual int get_value_index_in_batch(Model *m, const ParticleIndexQuad &vt) const
int operator()(Model *m, const ParticleIndexQuad &vt) const
Enable them to be use as functors.
virtual void setup_for_get_value_index_in_batch(Model *) const
virtual int get_value_index(Model *m, const ParticleIndexQuad &vt) const =0
Compute the predicate and the derivative if needed.
Classes used in the construction of ModelObjects.
Array< 4, WeakPointer< Particle >, Particle * > ParticleQuad
IMP::Vector< Int > Ints
Standard way to pass a bunch of Int values.
IMP::Vector< ParticleIndexQuad, std::allocator< ParticleIndexQuad > > ParticleIndexQuads
Array< 4, ParticleIndex > ParticleIndexQuad
An ordered quad of particles, each identified by its ParticleIndex.
#define IMP_REF_COUNTED_DESTRUCTOR(Name)
Set up destructor for a ref counted object.