IMP  2.0.0
The Integrative Modeling Platform
mover_macros.h
Go to the documentation of this file.
1 /**
2  * \file IMP/core/mover_macros.h \brief Backwards compatibility.
3  *
4  * Copyright 2007-2013 IMP Inventors. All rights reserved.
5  *
6  */
7 
8 #ifndef IMPCORE_MOVER_MACROS_H
9 #define IMPCORE_MOVER_MACROS_H
10 
12 #include "Mover.h"
13 
14 #if defined(IMP_DOXYGEN) || IMP_HAS_DEPRECATED
15 /** Helper macro for implementing IMP::core::Mover. In
16  addition to the IMP_OBJECT methods, it declares
17  - IMP::core::Mover::propose_move()
18  - IMP::core::Mover::reset_move()
19  */
20 #define IMP_MOVER(Name) \
21  IMP_PRAGMA(message("You should move to IMP::core::MonteCarloMover")) \
22  IMP_IMPLEMENT(virtual ParticlesTemp propose_move(Float size)); \
23  IMP_IMPLEMENT(virtual void reset_move()); \
24  IMP_IMPLEMENT(virtual ParticlesTemp get_output_particles() const); \
25  IMP_OBJECT(Name)
26 #endif
27 
28 
29 #endif /* IMPCORE_MOVER_MACROS_H */