aligator  0.14.0
A primal-dual augmented Lagrangian-type solver for nonlinear trajectory optimization.
Loading...
Searching...
No Matches
fwd.hpp File Reference
#include "aligator/fwd.hpp"
#include "aligator/context.hpp"
#include <eigenpy/eigenpy.hpp>
#include <eigenpy/std-vector.hpp>
#include "aligator/python/polymorphic.hpp"
Include dependency graph for fwd.hpp:
This graph shows which files directly or indirectly include this file:

Go to the source code of this file.

Namespaces

namespace  boost
 
namespace  aligator
 Main package namespace.
 
namespace  aligator::python
 The Python bindings.
 

Macros

#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.
 

Functions

template<typename T, typename A>
T * boost::get_pointer (::xyz::polymorphic< T, A > const &x)
 
bp::arg aligator::python::operator""_a (const char *argname, std::size_t)
 User-defined literal for defining boost::python::arg.
 
void aligator::python::exposeGAR ()
 Expose GAR module.
 
void aligator::python::exposeFunctions ()
 Expose stagewise function classes.
 
void aligator::python::exposeCosts ()
 Expose cost functions.
 
void aligator::python::exposeConstraint ()
 Expose constraints.
 
void aligator::python::exposeStage ()
 Expose StageModel and StageData.
 
void aligator::python::exposeProblem ()
 Expose TrajOptProblem.
 
void aligator::python::exposeDynamics ()
 Expose discrete dynamics.
 
void aligator::python::exposeContinuousDynamics ()
 Expose continuous dynamics.
 
void aligator::python::exposeIntegrators ()
 Expose numerical integrators.
 
void aligator::python::exposeSolvers ()
 Expose solvers.
 
void aligator::python::exposeCallbacks ()
 Expose solver callbacks.
 
void aligator::python::exposeAutodiff ()
 Expose autodiff helpers.
 
void aligator::python::exposeUtils ()
 Expose utils.
 
void aligator::python::exposeFilter ()
 Expose filter strategy.
 

Macro Definition Documentation

◆ 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)
Main package namespace.

Definition at line 77 of file fwd.hpp.

◆ ALIGATOR_PYTHON_OVERRIDE_PURE

#define ALIGATOR_PYTHON_OVERRIDE_PURE ( ret_type,
pyname,
... )
Value:
ALIGATOR_PYTHON_OVERRIDE_IMPL(ret_type, pyname, __VA_ARGS__); \
ALIGATOR_RUNTIME_ERROR("Tried to call pure virtual function {:s}.", pyname)
#define ALIGATOR_PYTHON_OVERRIDE_IMPL(ret_type, pyname,...)
Definition fwd.hpp:77

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:
ALIGATOR_PYTHON_OVERRIDE_IMPL(ret_type, #fname, __VA_ARGS__); \
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.