8#ifndef IMPCORE_RIGID_CLOSE_PAIRS_FINDER_H
9#define IMPCORE_RIGID_CLOSE_PAIRS_FINDER_H
14#include <cereal/access.hpp>
15#include <cereal/types/base_class.hpp>
17IMPCORE_BEGIN_NAMESPACE
61class IMPCOREEXPORT RigidClosePairsFinder :
public ClosePairsFinder {
65 friend class cereal::access;
67 template<
class Archive>
void serialize(Archive &ar) {
68 ar(cereal::base_class<ClosePairsFinder>(
this), cpf_);
69 if (std::is_base_of<cereal::detail::InputArchiveBase, Archive>::value) {
70 k_ = get_hierarchy_key();
78 RigidClosePairsFinder(ClosePairsFinder *cpf =
nullptr);
85 void set_distance(
double d)
override {
86 cpf_->set_distance(d);
87 ClosePairsFinder::set_distance(d);
90#if !defined(SWIG) && !defined(IMP_DOXYGEN)
91 internal::MovedSingletonContainer *get_moved_singleton_container(
A base class for algorithms to detect proximities.
Refine a particle into a list of particles.
Class for storing model, its restraints, constraints, and particles.
A shared container for Singletons.
virtual ParticleIndexPairs get_close_pairs(Model *m, const ParticleIndexes &pca, const ParticleIndexes &pcb) const override
return all close pairs among pc in model m
virtual ParticleIndexPairs get_close_pairs(Model *m, const ParticleIndexes &pc) const override
return all close pairs among pc in model m
virtual ModelObjectsTemp do_get_inputs(Model *m, const ParticleIndexes &pis) const override
Overload this method to specify the inputs.
IMP::Vector< BoundingBox3D > BoundingBox3Ds
Index< ParticleIndexTag > ParticleIndex
IMP::Vector< ParticleIndexPair, std::allocator< ParticleIndexPair > > ParticleIndexPairs
IMP::Vector< IntPair > IntPairs
Vector< ParticleIndex, std::allocator< ParticleIndex > > ParticleIndexes
A list of particles, each identified by its ParticleIndex.
Key< 4 > ObjectKey
The type used to identify an Object attribute.
IMP::Vector< IMP::WeakPointer< ModelObject > > ModelObjectsTemp
#define IMP_OBJECT_SERIALIZE_DECL(Name)
Declare methods needed for serialization of Object pointers.
#define IMP_OBJECT_METHODS(Name)
Define the basic things needed by any Object.
functionality for defining rigid bodies
A smart pointer to a ref-counted Object that is a class member.