IMP  2.1.0
The Integrative Modeling Platform
kernel/key_macros.h
Go to the documentation of this file.
1 /**
2  * \file IMP/kernel/key_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_KEY_MACROS_H
10 #define IMPKERNEL_KEY_MACROS_H
11 #include <IMP/kernel/kernel_config.h>
12 #include <IMP/base/value_macros.h>
14 #include "Key.h"
15 
16 /** \deprecated_at{2.1} Just declare the typedef directly.
17 */
18 #define IMP_DECLARE_KEY_TYPE(Name, Tag) \
19  IMPKERNEL_DEPRECATED_MACRO( \
20  2.1, "Declare the typedef directly.") typedef Key<Tag, true> Name; \
21  IMP_VALUES(Name, Name##s)
22 
23 /** \deprecated_at{2.1} Just declare the typedef directly.
24 */
25 #define IMP_DECLARE_CONTROLLED_KEY_TYPE(Name, Tag) \
26  IMPKERNEL_DEPRECATED_MACRO( \
27  2.1, "Declare the typedef directly.") typedef Key<Tag, false> Name; \
28  IMP_VALUES(Name, Name##s)
29 
30 #endif /* IMPKERNEL_KEY_MACROS_H */
Control display of deprecation information.
Various general useful macros for IMP.
Keys to cache lookup of attribute strings.