9 #ifndef IMPCORE_BALL_MOVER_H
10 #define IMPCORE_BALL_MOVER_H
12 #include <IMP/core/core_config.h>
16 #include <cereal/access.hpp>
17 #include <cereal/types/base_class.hpp>
18 #include <cereal/types/polymorphic.hpp>
20 IMPCORE_BEGIN_NAMESPACE
32 friend class cereal::access;
34 template<
class Archive>
void serialize(Archive &ar) {
35 ar(cereal::base_class<MonteCarloMover>(
this),
36 pis_, keys_, radius_, originals_);
74 void set_radius(
Float radius) {
80 Float get_radius()
const {
return radius_; }
#define IMP_OBJECT_METHODS(Name)
Define the basic things needed by any Object.
virtual void do_reject()=0
Implement reset_proposed_move()
Return value of the MonteCarloMover::propose() function.
Move continuous particle variables by perturbing them within a ball.
Exception definitions and assertions.
Class for storing model, its restraints, constraints, and particles.
A base class for classes which perturb particles.
The base class for movers for Monte Carlo optimization.
#define IMP_OBJECT_SERIALIZE_DECL(Name)
Declare methods needed for serialization of Object pointers.
virtual MonteCarloMoverResult do_propose()=0
Implement propose_move()
double Float
Basic floating-point value (could be float, double...)
#define IMP_ALWAYS_CHECK(condition, message, exception_name)
Throw an exception if a check fails.
An exception for an invalid value being passed to IMP.
virtual ModelObjectsTemp do_get_inputs() const =0