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.
Classes | |
class | RMF::Nullable< Tr > |
Return a possibly null value. More... | |
Namespaces | |
RMF | |
The namespace for all functionality in the library. | |
Macros | |
#define | RMF_DECORATOR_CATCH(extra_info) |
#define | RMF_FOREACH(v, r) for (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) return type() |
#define | RMF_SHOWABLE(Name, streamed) |
#define | RMF_UNUSED(variable) RMF::internal::use(variable); |
#define | RMF_VALIDATOR(Type) RMF::Registrar<Type> Type##Reg(#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. More... | |
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_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_NO_RETURN | ( | type | ) | 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_UNUSED | ( | variable | ) | RMF::internal::use(variable); |
Suppress the unused variable compiler warning.
Definition at line 126 of file infrastructure_macros.h.
#define RMF_VALIDATOR | ( | Type | ) | RMF::Registrar<Type> Type##Reg(#Type); |
Register a validator function. See Validator for more information.
Definition at line 169 of file infrastructure_macros.h.