9#ifndef IMPCORE_NEIGHBORS_TABLE_H
10#define IMPCORE_NEIGHBORS_TABLE_H
12#include <IMP/core/core_config.h>
16#include <boost/unordered_map.hpp>
18IMPCORE_BEGIN_NAMESPACE
28class IMPCOREEXPORT NeighborsTable :
public ScoreState {
30 std::size_t input_version_;
31 boost::unordered_map<ParticleIndex, ParticleIndexes> data_;
45 std::string name =
"CloseNeighborsTable%1%");
50 return data_.find(pi)->second;
A nullptr-initialized pointer to an IMP Object.
A container for Singletons.
Class for adding derivatives from restraints to the model.
void set_was_used(bool tf) const
A shared container for Pairs.
virtual ModelObjectsTemp do_get_outputs() const override
const ParticleIndexes & get_neighbors(ParticleIndex pi) const
virtual void do_before_evaluate() override
Update the state given the current state of the model.
virtual ModelObjectsTemp do_get_inputs() const override
virtual void do_after_evaluate(DerivativeAccumulator *) override
Do any necessary updates after the model score is calculated.
Index< ParticleIndexTag > ParticleIndex
Vector< ParticleIndex, std::allocator< ParticleIndex > > ParticleIndexes
A list of particles, each identified by its ParticleIndex.
IMP::Vector< IMP::WeakPointer< ModelObject > > ModelObjectsTemp
#define IMP_OBJECT_METHODS(Name)
Define the basic things needed by any Object.
A smart pointer to a ref-counted Object that is a class member.