IMP  2.1.0
The Integrative Modeling Platform
kernel/optimizer_macros.h
Go to the documentation of this file.
1 /**
2  * \file IMP/kernel/optimizer_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_OPTIMIZER_MACROS_H
10 #define IMPKERNEL_OPTIMIZER_MACROS_H
11 #include <IMP/kernel/kernel_config.h>
12 #include <IMP/base/value_macros.h>
13 #include "Optimizer.h"
14 
15 /** \deprecated_at{2.1} Declare the methods directly.
16 */
17 #define IMP_OPTIMIZER(Name) \
18  IMPKERNEL_DEPRECATED_MACRO(2.1, "Expand methods directly instead."); \
19  virtual Float do_optimize(unsigned int max_steps) IMP_OVERRIDE; \
20  IMP_OBJECT_NO_WARNING(Name)
21 
22 #endif /* IMPKERNEL_OPTIMIZER_MACROS_H */
Base class for all optimizers.
Various general useful macros for IMP.