8#ifndef IMPMISC_STATE_ADAPTOR_H
9#define IMPMISC_STATE_ADAPTOR_H
11#include <IMP/misc/misc_config.h>
16IMPMISC_BEGIN_NAMESPACE
Class for adding derivatives from restraints to the model.
Shared optimizer state that is invoked upon commitment of new coordinates.
StateAdaptor(Model *m, OptimizerState *before, OptimizerState *after)
set the before and after states
virtual ModelObjectsTemp do_get_outputs() const override
virtual void do_before_evaluate() override
Update the state given the current state of the model.
virtual void do_after_evaluate(DerivativeAccumulator *da) override
Do any necessary updates after the model score is calculated.
virtual ModelObjectsTemp do_get_inputs() const override
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.