dune-common
2.3.1
|
Provides check for implementation of interface methods when using static polymorphism, i.e. the Barton-Nackman trick. More...
#include <dune/common/exceptions.hh>
Go to the source code of this file.
Macros | |
#define | CHECK_INTERFACE_IMPLEMENTATION(__interface_method_to_call__) |
#define | CHECK_AND_CALL_INTERFACE_IMPLEMENTATION(__interface_method_to_call__) CHECK_INTERFACE_IMPLEMENTATION(__interface_method_to_call__) |
Provides check for implementation of interface methods when using static polymorphism, i.e. the Barton-Nackman trick.
#define CHECK_AND_CALL_INTERFACE_IMPLEMENTATION | ( | __interface_method_to_call__ | ) | CHECK_INTERFACE_IMPLEMENTATION(__interface_method_to_call__) |
The macro CHECK_AND_CALL_INTERFACE_IMPLEMENTATION throws an exception, if the interface method ist not implemented and just calls the method otherwise. If NDEBUG is defined no checking is done and the method is just called.
#define CHECK_INTERFACE_IMPLEMENTATION | ( | __interface_method_to_call__ | ) |