|
RMF
|
Various general useful macros for IMP. More...
#include <sstream>#include <iostream>#include <string>#include "RMF/compiler_macros.h"#include "internal/use.h"#include <vector>#include <boost/config.hpp>#include <boost/version.hpp>Go to the source code of this file.
Namespaces | |
| namespace | RMF |
| The namespace for all functionality in the library. | |
Macros | |
| #define | RMF_DECORATOR_CATCH(extra_info) |
| #define | RMF_FOREACH(v, r) |
| #define | RMF_FOREACH_SIMPLE_TYPE(macroname) |
| #define | RMF_FOREACH_TYPE(macroname) |
| #define | RMF_HASHABLE(name, hashret) |
| Implement a hash function for the class. | |
| #define | RMF_NO_RETURN(type) |
| #define | RMF_SHOWABLE(Name, streamed) |
| #define | RMF_UNUSED(variable) |
| #define | RMF_VALIDATOR(Type) |
Comparisons | |
Helper macros for implementing comparisons in terms of either member variables or a member compare function. All of the <,>,== etc are implemented for both C++ and Python. | |
| #define | RMF_COMPARISONS(Name) |
| Implement comparison in a class using field as the variable to compare. | |
Copyright 2007-2022 IMP Inventors. All rights reserved.
Definition in file infrastructure_macros.h.
| #define RMF_COMPARISONS | ( | Name | ) |
| [in] | Name | the name of the class |
Definition at line 42 of file infrastructure_macros.h.
| #define RMF_DECORATOR_CATCH | ( | extra_info | ) |
Definition at line 162 of file infrastructure_macros.h.
| #define RMF_FOREACH | ( | v, | |
| r ) |
Definition at line 22 of file infrastructure_macros.h.
| #define RMF_FOREACH_SIMPLE_TYPE | ( | macroname | ) |
Apply the macro to each supported constant size type (e.g. int as opposed to string).
Definition at line 139 of file infrastructure_macros.h.
| #define RMF_FOREACH_TYPE | ( | macroname | ) |
Expand to applying the macro to each type supported by the RMF library. The macro should take six arguments
Definition at line 153 of file infrastructure_macros.h.
| #define RMF_HASHABLE | ( | name, | |
| hashret ) |
Definition at line 81 of file infrastructure_macros.h.
| #define RMF_NO_RETURN | ( | type | ) |
Provide a dummy return for something that doesn't return.
This is a nasty hack to suppress warnings in some compilers.
Definition at line 132 of file infrastructure_macros.h.
| #define RMF_SHOWABLE | ( | Name, | |
| streamed ) |
Definition at line 103 of file infrastructure_macros.h.
| #define RMF_UNUSED | ( | variable | ) |
Suppress the unused variable compiler warning.
Definition at line 126 of file infrastructure_macros.h.
| #define RMF_VALIDATOR | ( | Type | ) |
Register a validator function. See Validator for more information.
Definition at line 169 of file infrastructure_macros.h.