14 shared_ptr<StageFunctionTpl<Scalar>>
func;
15 shared_ptr<ConstraintSetBase<Scalar>>
set;
25 using iterator =
typename std::vector<ConstraintType>::iterator;
40 const std::vector<long> &
dims()
const {
return dims_; }
42 ALIGATOR_DEPRECATED
const std::vector<long> &
getDims()
const {
return dims_; }
48 assert((j < this->
storage_.size()) &&
"i exceeds number of constraints!");
54 assert((j < this->
storage_.size()) &&
"i exceeds number of constraints!");
67#include "aligator/core/constraint.hxx"
69#ifdef ALIGATOR_ENABLE_TEMPLATE_INSTANTIATION
70#include "aligator/core/constraint.txx"
Base definitions for ternary functions.
Convenience class to manage a stack of constraints.
const std::vector< long > & dims() const
Get the set of dimensions for each constraint in the stack.
void pushBack(const ConstraintType &el, const long nr)
ConstraintType & operator[](std::size_t j)
Get the i-th constraint.
typename std::vector< ConstraintType >::iterator iterator
std::vector< long > indices_
ALIGATOR_DYNAMIC_TYPEDEFS(Scalar)
std::vector< ConstraintType > storage_
StageConstraintTpl< Scalar > ConstraintType
ConstraintType value_type
std::vector< long > dims_
void pushBack(const ConstraintType &el)
const ConstraintType & operator[](std::size_t j) const
Get the i-th constraint.
ALIGATOR_DEPRECATED const std::vector< long > & getDims() const
Simple struct holding together a function and set, to describe a constraint.
shared_ptr< ConstraintSetBase< Scalar > > set
shared_ptr< StageFunctionTpl< Scalar > > func
const int nr
Function codimension.