12#ifndef IMPCONTAINER_IN_CONTAINER_PAIR_FILTER_H
13#define IMPCONTAINER_IN_CONTAINER_PAIR_FILTER_H
15#include <IMP/container/container_config.h>
18#include <IMP/internal/container_helpers.h>
19#include "internal/PairContainerIndex.h"
24IMPCONTAINER_BEGIN_NAMESPACE
32class IMPCONTAINEREXPORT InContainerPairFilter
33 :
public PairPredicate {
38 std::string name =
"PairFilter %1%");
39 InContainerPairFilter(
PairContainer *c,
bool handle_permutations,
40 std::string name =
"PairFilter %1%");
44 return c_->get_contains(vt);
58IMPCONTAINER_END_NAMESPACE
Class for storing model, its restraints, constraints, and particles.
A shared container for Pairs.
A filter which returns true if a container contains the Pair.
virtual int get_value_index(Model *, const ParticleIndexPair &vt) const override
Compute the predicate and the derivative if needed.
virtual ModelObjectsTemp do_get_inputs(Model *m, const ParticleIndexes &pi) const override
Overload this method to specify the inputs.
IMP::Vector< IMP::Pointer< InContainerPairFilter > > InContainerPairFilters
ParticlesTemp get_particles(Model *m, const ParticleIndexes &ps)
Get the particles from a list of indexes.
Vector< ParticleIndex, std::allocator< ParticleIndex > > ParticleIndexes
A list of particles, each identified by its ParticleIndex.
Array< 2, ParticleIndex > ParticleIndexPair
An ordered pair of particles, each identified by its ParticleIndex.
IMP::Vector< IMP::WeakPointer< ModelObject > > ModelObjectsTemp
Helper macros for implementing IMP Objects.
#define IMP_OBJECTS(Name, PluralName)
Define the types for storing lists of object pointers.
#define IMP_OBJECT_METHODS(Name)
Define the basic things needed by any Object.
Macros for various classes.
#define IMP_PAIR_PREDICATE_METHODS(Name)
Define extra the functions needed for a PairPredicate.
A smart pointer to a ref-counted Object that is a class member.
Macros to control compiler warnings.