aligator
0.6.1
A primal-dual augmented Lagrangian-type solver for nonlinear trajectory optimization.
|
Mixin which makes a class/class hierarchy cloneable. More...
#include <aligator/core/clone.hpp>
Public Member Functions | |
shared_ptr< T > | clone () const |
Protected Member Functions | |
virtual Cloneable * | clone_impl () const =0 |
Mixin which makes a class/class hierarchy cloneable.
Inheriting from Cloneable<T> creates a function clone() returning shared_ptr<T>. Child classes of T only need to implement the virtual member function clone_impl() which returns the covariant pointer type T*.
The | class (or base class in a hierarchy) we want to make cloneable. |
|
inline |
|
protectedpure virtual |