IMP  2.1.1
The Integrative Modeling Platform
kernel/scoring_function_macros.h
Go to the documentation of this file.
1 /**
2  * \file IMP/kernel/scoring_function_macros.h
3  * \brief Various general useful macros for IMP.
4  *
5  * Copyright 2007-2013 IMP Inventors. All rights reserved.
6  *
7  */
8 
9 #ifndef IMPKERNEL_SCORING_FUNCTION_MACROS_H
10 #define IMPKERNEL_SCORING_FUNCTION_MACROS_H
11 #include <IMP/kernel/kernel_config.h>
13 #include <IMP/base/object_macros.h>
14 #include "ScoringFunction.h"
15 
16 /** \deprecated_at{2.1} Declare the needed methods yourself. */
17 #define IMP_SCORING_FUNCTION(Name) \
18  IMPKERNEL_DEPRECATED_MACRO(2.1, "Declare the needed methods yourself"); \
19  void do_add_score_and_derivatives(IMP::kernel::ScoreAccumulator sa, \
20  const ScoreStatesTemp &ss) IMP_OVERRIDE; \
21  Restraints create_restraints() const IMP_OVERRIDE; \
22  ScoreStatesTemp get_required_score_states() const IMP_OVERRIDE; \
23  IMP_OBJECT_METHODS(Name)
24 
25 #endif /* IMPKERNEL_SCORING_FUNCTION_MACROS_H */
Various general useful macros for IMP.
Storage of a model, its restraints, constraints and particles.
Various general useful macros for IMP.