12 #ifndef IMPCONTAINER_IN_CONTAINER_SINGLETON_FILTER_H
13 #define IMPCONTAINER_IN_CONTAINER_SINGLETON_FILTER_H
15 #include <IMP/container/container_config.h>
18 #include <IMP/internal/container_helpers.h>
19 #include "internal/SingletonContainerIndex.h"
24 IMPCONTAINER_BEGIN_NAMESPACE
38 std::string name =
"SingletonFilter %1%");
40 std::string name =
"SingletonFilter %1%");
44 return c_->get_contains(vt);
58 IMPCONTAINER_END_NAMESPACE
Various general useful macros for IMP.
A container for Singletons.
#define IMP_OBJECT_METHODS(Name)
Define the basic things needed by any Object.
Macros for various classes.
ParticlesTemp get_particles(Model *m, const ParticleIndexes &ps)
A more IMP-like version of the std::vector.
Define SingletonPredicate.
Class for storing model, its restraints, constraints, and particles.
A filter which returns true if a container containers the Singleton.
virtual int get_value_index(Model *, ParticleIndex vt) const
Compute the predicate and the derivative if needed.
Various general useful macros for IMP.
A shared container for Singletons.
virtual ModelObjectsTemp do_get_inputs(Model *m, const ParticleIndexes &pi) const
Overload this method to specify the inputs.
#define IMP_OBJECTS(Name, PluralName)
Define the types for storing lists of object pointers.
#define IMP_SINGLETON_PREDICATE_METHODS(Name)
Define extra the functions needed for a SingletonPredicate.
Abstract predicate function.
#define IMP_OVERRIDE
Cause a compile error if this method does not override a parent method.