9 #ifndef IMPKERNEL_RESTRAINT_MACROS_H
10 #define IMPKERNEL_RESTRAINT_MACROS_H
11 #include <IMP/kernel/kernel_config.h>
14 #include "internal/scoring_functions.h"
21 #define IMP_RESTRAINT(Name) \
22 IMPKERNEL_DEPRECATED_MACRO(2.1, "Declare the methods yourself"); \
25 double unprotected_evaluate(IMP::kernel::DerivativeAccumulator *accum) const \
27 IMP_MODEL_OBJECT_BACKWARDS_MACRO_INPUTS; \
28 IMP_OBJECT_NO_WARNING(Name)
32 #define IMP_RESTRAINT_2(Name) \
34 IMPKERNEL_DEPRECATED_MACRO(2.1, "Declare the methods yourself"); \
35 virtual double unprotected_evaluate( \
36 IMP::kernel::DerivativeAccumulator *accum) const IMP_OVERRIDE; \
37 virtual IMP::kernel::ModelObjectsTemp do_get_inputs() const IMP_OVERRIDE; \
38 IMP_OBJECT_NO_WARNING(Name)
42 #define IMP_RESTRAINT_ACCUMULATOR(Name) \
44 IMPKERNEL_DEPRECATED_MACRO(2.1, "Declare the methods yourself"); \
45 void do_add_score_and_derivatives(IMP::kernel::ScoreAccumulator sa) const; \
46 IMP::kernel::ModelObjectsTemp do_get_inputs() const; \
47 IMP_OBJECT_NO_WARNING(Name)
Abstract base class for containers of particles.
Various general useful macros for IMP.
Control display of deprecation information.
Various useful constants.