#include "aligator/fwd.hpp"
#include "aligator/context.hpp"
#include <eigenpy/eigenpy.hpp>
#include <eigenpy/std-vector.hpp>
#include "aligator/python/polymorphic.hpp"
Go to the source code of this file.
|
#define | ALIGATOR_PYTHON_OVERRIDE_IMPL(ret_type, pyname, ...) |
|
#define | ALIGATOR_PYTHON_OVERRIDE_PURE(ret_type, pyname, ...) |
| Define the body of a virtual function override. This is meant to reduce boilerplate code when exposing virtual member functions.
|
|
#define | ALIGATOR_PYTHON_OVERRIDE(ret_type, cname, fname, ...) |
| Define the body of a virtual function override. This is meant to reduce boilerplate code when exposing virtual member functions.
|
|
◆ ALIGATOR_PYTHON_OVERRIDE_IMPL
#define ALIGATOR_PYTHON_OVERRIDE_IMPL |
( |
| ret_type, |
|
|
| pyname, |
|
|
| ... ) |
Value: do { \
if (bp::override fo = this->get_override(pyname)) { \
decltype(auto) o = fo(__VA_ARGS__); \
return ::
aligator::python::internal::suppress_if_void<ret_type>( \
std::move(o)); \
} \
} while (false)
Definition at line 77 of file fwd.hpp.
◆ ALIGATOR_PYTHON_OVERRIDE_PURE
#define ALIGATOR_PYTHON_OVERRIDE_PURE |
( |
| ret_type, |
|
|
| pyname, |
|
|
| ... ) |
Value:
ALIGATOR_RUNTIME_ERROR("Tried to call pure virtual function {:s}.", pyname)
#define ALIGATOR_PYTHON_OVERRIDE_IMPL(ret_type, pyname,...)
Define the body of a virtual function override. This is meant to reduce boilerplate code when exposing virtual member functions.
Definition at line 91 of file fwd.hpp.
◆ ALIGATOR_PYTHON_OVERRIDE
#define ALIGATOR_PYTHON_OVERRIDE |
( |
| ret_type, |
|
|
| cname, |
|
|
| fname, |
|
|
| ... ) |
Value:
return cname::fname(__VA_ARGS__)
Define the body of a virtual function override. This is meant to reduce boilerplate code when exposing virtual member functions.
Definition at line 99 of file fwd.hpp.