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>
18 IMPCORE_BEGIN_NAMESPACE
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 shared container for Pairs.
A container for Singletons.
virtual void do_before_evaluate()=0
Update the state given the current state of the model.
virtual void do_after_evaluate(DerivativeAccumulator *) override
Do any necessary updates after the model score is calculated.
#define IMP_OBJECT_METHODS(Name)
Define the basic things needed by any Object.
const ParticleIndexes & get_neighbors(ParticleIndex pi) const
A more IMP-like version of the std::vector.
IMP::Vector< IMP::WeakPointer< ModelObject > > ModelObjectsTemp
virtual ModelObjectsTemp do_get_inputs() const override
ScoreStates maintain invariants in the Model.
A smart pointer to a ref-counted Object that is a class member.
A nullptr-initialized pointer to an IMP Object.
virtual ModelObjectsTemp do_get_outputs() const override
Class for adding derivatives from restraints to the model.
void set_was_used(bool tf) const