36 #ifndef QPOASES_CONSTRAINTS_H 37 #define QPOASES_CONSTRAINTS_H 337 int numberOfType = 0;
339 if ( _THIS->
type != 0 )
341 for( i=0; i<_THIS->
n; ++i )
342 if ( _THIS->
type[i] == _type )
355 if ( ( i >= 0 ) && ( i < _THIS->n ) )
356 return _THIS->
type[i];
367 if ( ( i >= 0 ) && ( i < _THIS->n ) )
379 if ( ( i >= 0 ) && ( i < _THIS->n ) )
381 _THIS->
type[i] = value;
394 if ( ( i >= 0 ) && ( i < _THIS->n ) )
returnValue Constraints_rotate(Constraints *_THIS, int offset)
SubjectToType type[NCMAX]
static int Constraints_getNC(Constraints *_THIS)
Manages working sets of constraints.
static int Constraints_getNUC(Constraints *_THIS)
static SubjectToStatus Constraints_getStatus(Constraints *_THIS, int i)
static Indexlist * Constraints_getInactive(Constraints *_THIS)
returnValue Constraints_print(Constraints *_THIS)
static void Constraints_setNoUpper(Constraints *_THIS, BooleanType _status)
Allows to pass back messages to the calling function.
static void Constraints_setNoLower(Constraints *_THIS, BooleanType _status)
#define THROWERROR(retval)
returnValue Constraints_setupConstraint(Constraints *_THIS, int number, SubjectToStatus _status)
returnValue Constraints_addIndex(Constraints *_THIS, Indexlist *const indexlist, int newnumber, SubjectToStatus newstatus)
returnValue Constraints_moveInactiveToActive(Constraints *_THIS, int number, SubjectToStatus _status)
static int Constraints_getNEC(Constraints *_THIS)
void ConstraintsCPY(Constraints *FROM, Constraints *TO)
static Indexlist * Constraints_getActive(Constraints *_THIS)
static SubjectToType Constraints_getType(Constraints *_THIS, int i)
returnValue Constraints_swapIndex(Constraints *_THIS, Indexlist *const indexlist, int number1, int number2)
static int Indexlist_getLength(Indexlist *_THIS)
returnValue Constraints_setupAllLower(Constraints *_THIS)
SubjectToStatus status[NCMAX]
returnValue Constraints_moveActiveToInactive(Constraints *_THIS, int number)
#define END_NAMESPACE_QPOASES
returnValue Constraints_init(Constraints *_THIS, int _n)
returnValue Constraints_removeIndex(Constraints *_THIS, Indexlist *const indexlist, int removenumber)
static int Constraints_getNumberOfType(Constraints *_THIS, SubjectToType _type)
static returnValue Constraints_setStatus(Constraints *_THIS, int i, SubjectToStatus value)
returnValue Constraints_setupAllUpper(Constraints *_THIS)
Stores and manages index lists.
returnValue Constraints_flipFixed(Constraints *_THIS, int number)
static BooleanType Constraints_hasNoLower(Constraints *_THIS)
static int Constraints_getNIC(Constraints *_THIS)
static returnValue Constraints_setType(Constraints *_THIS, int i, SubjectToType value)
returnValue Constraints_shift(Constraints *_THIS, int offset)
static int Constraints_getNIAC(Constraints *_THIS)
#define BEGIN_NAMESPACE_QPOASES
static BooleanType Constraints_hasNoUpper(Constraints *_THIS)
returnValue Constraints_setupAll(Constraints *_THIS, SubjectToStatus _status)
void ConstraintsCON(Constraints *_THIS, int _n)
static int Constraints_getNAC(Constraints *_THIS)
returnValue Constraints_setupAllInactive(Constraints *_THIS)