11 #ifndef IMPCONTAINER_IN_CONTAINER_SINGLETON_FILTER_H
12 #define IMPCONTAINER_IN_CONTAINER_SINGLETON_FILTER_H
14 #include <IMP/container/container_config.h>
17 #include <IMP/kernel/internal/container_helpers.h>
18 #include "internal/SingletonContainerIndex.h"
23 IMPCONTAINER_BEGIN_NAMESPACE
37 std::string name =
"SingletonFilter %1%");
39 std::string name =
"SingletonFilter %1%");
43 return c_->get_contains(vt);
57 IMPCONTAINER_END_NAMESPACE
virtual int get_value_index(kernel::Model *, kernel::ParticleIndex vt) const
Compute the predicate and the derivative if needed.
Import IMP/kernel/SingletonContainer.h in the namespace.
ParticlesTemp get_particles(kernel::Model *m, const ParticleIndexes &ps)
Import IMP/kernel/singleton_macros.h in the namespace.
Import IMP/kernel/SingletonPredicate.h in the namespace.
A filter which returns true if a container containers the Singleton.
Various general useful macros for IMP.
#define IMP_OBJECT_METHODS(Name)
Define the basic things needed by any Object.
#define IMP_SINGLETON_PREDICATE_METHODS(Name)
Define extra the functions needed for a SingletonPredicate.
Abstract predicate function.
#define IMP_OBJECTS(Name, PluralName)
Define the types for storing sets of objects.
virtual kernel::ModelObjectsTemp do_get_inputs(kernel::Model *m, const kernel::ParticleIndexes &pi) const
Various general useful macros for IMP.
A shared container for Singletons.
Class for storing model, its restraints, constraints, and particles.