aligator  0.10.0
A primal-dual augmented Lagrangian-type solver for nonlinear trajectory optimization.
Loading...
Searching...
No Matches
aligator::python::SlicingVisitor< Class > Struct Template Reference

#include </home/runner/work/aligator/aligator/bindings/python/include/aligator/python/functions.hpp>

Inheritance diagram for aligator::python::SlicingVisitor< Class >:
[legend]
Collaboration diagram for aligator::python::SlicingVisitor< Class >:
[legend]

Public Types

using Scalar = typename Class::Scalar
 
using SliceType = FunctionSliceXprTpl<Scalar, Class>
 

Public Member Functions

template<typename... Args>
void visit (bp::class_< Args... > &cl) const
 

Static Public Member Functions

template<typename Iterator , typename Fn >
static auto do_with_slice (Fn &&fun, bp::slice::range< Iterator > &range)
 
static auto get_slice (xyz::polymorphic< Class > const &fn, bp::slice slice_obj)
 
static auto get_from_index (xyz::polymorphic< Class > const &fn, const int idx)
 
static auto get_from_indices (xyz::polymorphic< Class > const &fn, std::vector< int > const &indices)
 

Detailed Description

template<typename Class>
struct aligator::python::SlicingVisitor< Class >

Definition at line 111 of file functions.hpp.

Member Typedef Documentation

◆ Scalar

template<typename Class >
using aligator::python::SlicingVisitor< Class >::Scalar = typename Class::Scalar

Definition at line 112 of file functions.hpp.

◆ SliceType

template<typename Class >
using aligator::python::SlicingVisitor< Class >::SliceType = FunctionSliceXprTpl<Scalar, Class>

Definition at line 113 of file functions.hpp.

Member Function Documentation

◆ do_with_slice()

template<typename Class >
template<typename Iterator , typename Fn >
static auto aligator::python::SlicingVisitor< Class >::do_with_slice ( Fn && fun,
bp::slice::range< Iterator > & range )
inlinestatic

Definition at line 116 of file functions.hpp.

◆ get_slice()

template<typename Class >
static auto aligator::python::SlicingVisitor< Class >::get_slice ( xyz::polymorphic< Class > const & fn,
bp::slice slice_obj )
inlinestatic

Definition at line 124 of file functions.hpp.

◆ get_from_index()

template<typename Class >
static auto aligator::python::SlicingVisitor< Class >::get_from_index ( xyz::polymorphic< Class > const & fn,
const int idx )
inlinestatic

Definition at line 135 of file functions.hpp.

◆ get_from_indices()

template<typename Class >
static auto aligator::python::SlicingVisitor< Class >::get_from_indices ( xyz::polymorphic< Class > const & fn,
std::vector< int > const & indices )
inlinestatic

Definition at line 139 of file functions.hpp.

◆ visit()

template<typename Class >
template<typename... Args>
void aligator::python::SlicingVisitor< Class >::visit ( bp::class_< Args... > & cl) const
inline

Definition at line 144 of file functions.hpp.


The documentation for this struct was generated from the following file: