Stores and manages index lists. More...
#include <Indexlist.hpp>
Public Member Functions | |
returnValue | addNumber (int addnumber) |
returnValue | addNumber (int addnumber) |
returnValue | addNumber (int addnumber) |
int | getIndex (int givennumber) const |
int | getIndex (int givennumber) const |
int | getIndex (int givennumber) const |
int | getLastNumber () const |
int | getLastNumber () const |
int | getLastNumber () const |
int | getLength () |
int | getLength () |
int | getLength () const |
int | getNumber (int physicalindex) const |
int | getNumber (int physicalindex) const |
int | getNumber (int physicalindex) const |
returnValue | getNumberArray (int *const numberarray) const |
returnValue | getNumberArray (int *const numberarray) const |
returnValue | getNumberArray (int **const numberarray) const |
int | getPhysicalIndex (int givennumber) const |
int | getPhysicalIndex (int givennumber) const |
Indexlist () | |
Indexlist () | |
Indexlist (const Indexlist &rhs) | |
Indexlist (const Indexlist &rhs) | |
Indexlist () | |
Indexlist (int n) | |
Indexlist (const Indexlist &rhs) | |
returnValue | init () |
returnValue | init () |
returnValue | init (int n=0) |
BooleanType | isMember (int _number) const |
BooleanType | isMember (int _number) const |
BooleanType | isMember (int _number) const |
Indexlist & | operator= (const Indexlist &rhs) |
Indexlist & | operator= (const Indexlist &rhs) |
Indexlist & | operator= (const Indexlist &rhs) |
returnValue | removeNumber (int removenumber) |
returnValue | removeNumber (int removenumber) |
returnValue | removeNumber (int removenumber) |
returnValue | swapNumbers (int number1, int number2) |
returnValue | swapNumbers (int number1, int number2) |
returnValue | swapNumbers (int number1, int number2) |
~Indexlist () | |
~Indexlist () | |
~Indexlist () | |
Protected Member Functions | |
returnValue | clear () |
returnValue | copy (const Indexlist &rhs) |
int | findInsert (int i) const |
Protected Attributes | |
int | first |
int * | iSort |
int | last |
int | lastusedindex |
int | length |
int | next [INDEXLISTFACTOR *(NVMAX+NCMAX)] |
int | number [INDEXLISTFACTOR *(NVMAX+NCMAX)] |
int * | number |
int | physicallength |
int | previous [INDEXLISTFACTOR *(NVMAX+NCMAX)] |
Friends | |
class | DenseMatrix |
class | SparseMatrix |
class | SymDenseMat |
class | SymSparseMat |
Stores and manages index lists.
This class manages index lists.
This class manages index lists of active/inactive bounds/constraints.
Definition at line 48 of file examples/code_generation/mpc_mhe/getting_started_export/qpoases/INCLUDE/Indexlist.hpp.
Default constructor.
Definition at line 46 of file examples/code_generation/mpc_mhe/getting_started_export/qpoases/SRC/Indexlist.cpp.
Indexlist::Indexlist | ( | const Indexlist & | rhs | ) |
Copy constructor (deep copy).
rhs | Rhs object. |
Definition at line 66 of file examples/code_generation/mpc_mhe/getting_started_export/qpoases/SRC/Indexlist.cpp.
Destructor.
Definition at line 86 of file examples/code_generation/mpc_mhe/getting_started_export/qpoases/SRC/Indexlist.cpp.
Default constructor.
Indexlist::Indexlist | ( | const Indexlist & | rhs | ) |
Copy constructor (deep copy).
rhs | Rhs object. |
Destructor.
Default constructor.
Indexlist::Indexlist | ( | int | n | ) |
Constructor which takes the desired physical length of the index list.
n | Physical length of index list. |
Definition at line 62 of file external_packages/qpOASES-3.0beta/src/Indexlist.cpp.
Indexlist::Indexlist | ( | const Indexlist & | rhs | ) |
Copy constructor (deep copy).
rhs | Rhs object. |
Destructor.
returnValue Indexlist::addNumber | ( | int | addnumber | ) |
Adds number to index list.
addnumber | Number to be added. |
Definition at line 218 of file examples/code_generation/mpc_mhe/getting_started_export/qpoases/SRC/Indexlist.cpp.
returnValue Indexlist::addNumber | ( | int | addnumber | ) |
Adds number to index list.
addnumber | Number to be added. |
returnValue Indexlist::addNumber | ( | int | addnumber | ) |
Adds number to index list.
addnumber | Number to be added. |
returnValue Indexlist::clear | ( | ) | [protected] |
Frees all allocated memory.
Definition at line 237 of file external_packages/qpOASES-3.0beta/src/Indexlist.cpp.
returnValue Indexlist::copy | ( | const Indexlist & | rhs | ) | [protected] |
Copies all members from given rhs object.
rhs | Rhs object. |
Definition at line 258 of file external_packages/qpOASES-3.0beta/src/Indexlist.cpp.
int Indexlist::findInsert | ( | int | i | ) | const [protected] |
Find first index j between -1 and length in sorted list of indices iSort such that numbers[iSort[j]] <= i < numbers[iSort[j+1]]. Uses bisection.
Definition at line 284 of file external_packages/qpOASES-3.0beta/src/Indexlist.cpp.
int Indexlist::getIndex | ( | int | givennumber | ) | const |
Determines the index within the index list at with a given number is stored.
givennumber | Number whose index shall be determined. |
int Indexlist::getIndex | ( | int | givennumber | ) | const |
Determines the index within the index list at with a given number is stored.
givennumber | Number whose index shall be determined. |
Definition at line 168 of file examples/code_generation/mpc_mhe/getting_started_export/qpoases/SRC/Indexlist.cpp.
int Indexlist::getIndex | ( | int | givennumber | ) | const |
Determines the index within the index list at with a given number is stored.
givennumber | Number whose index shall be determined. |
int Indexlist::getLastNumber | ( | ) | const [inline] |
Returns last number within the index list.
int Indexlist::getLastNumber | ( | ) | const [inline] |
Returns last number within the index list.
int Indexlist::getLastNumber | ( | ) | const [inline] |
Returns last number within the index list.
int Indexlist::getLength | ( | ) | [inline] |
Returns the current length of the index list.
int Indexlist::getLength | ( | ) | [inline] |
Returns the current length of the index list.
int Indexlist::getLength | ( | ) | const [inline] |
Returns the current length of the index list.
int Indexlist::getNumber | ( | int | physicalindex | ) | const |
Returns the number stored at a given physical index.
physicalindex | Physical index of the number to be returned. |
int Indexlist::getNumber | ( | int | physicalindex | ) | const |
Returns the number stored at a given physical index.
physicalindex | Physical index of the number to be returned. |
int Indexlist::getNumber | ( | int | physicalindex | ) | const |
Returns the number stored at a given physical index.
physicalindex | Physical index of the number to be returned. |
returnValue Indexlist::getNumberArray | ( | int *const | numberarray | ) | const |
Creates an array of all numbers within the index set in correct order.
numberarray | Output: Array of numbers (NULL on error). |
Definition at line 145 of file examples/code_generation/mpc_mhe/getting_started_export/qpoases/SRC/Indexlist.cpp.
returnValue Indexlist::getNumberArray | ( | int *const | numberarray | ) | const |
Creates an array of all numbers within the index set in correct order.
numberarray | Output: Array of numbers (NULL on error). |
returnValue Indexlist::getNumberArray | ( | int **const | numberarray | ) | const |
Creates an array of all numbers within the index set in correct order.
numberarray | Output: Array of numbers (NULL on error). |
Definition at line 132 of file external_packages/qpOASES-3.0beta/src/Indexlist.cpp.
int Indexlist::getPhysicalIndex | ( | int | givennumber | ) | const |
Determines the physical index within the index list at with a given number is stored.
givennumber | Number whose physical index shall be determined. |
int Indexlist::getPhysicalIndex | ( | int | givennumber | ) | const |
Determines the physical index within the index list at with a given number is stored.
givennumber | Number whose physical index shall be determined. |
Definition at line 193 of file examples/code_generation/mpc_mhe/getting_started_export/qpoases/SRC/Indexlist.cpp.
Pseudo-constructor.
Definition at line 121 of file examples/code_generation/mpc_mhe/getting_started_export/qpoases/SRC/Indexlist.cpp.
Pseudo-constructor.
returnValue Indexlist::init | ( | int | n = 0 | ) |
Initialises index list of desired physical length.
n | Physical length of index list. |
Definition at line 108 of file external_packages/qpOASES-3.0beta/src/Indexlist.cpp.
BooleanType Indexlist::isMember | ( | int | _number | ) | const [inline] |
Determines if a given number is contained in the index set.
_number | Number to be tested for membership. |
BooleanType Indexlist::isMember | ( | int | _number | ) | const [inline] |
Determines if a given number is contained in the index set.
_number | Number to be tested for membership. |
BooleanType Indexlist::isMember | ( | int | _number | ) | const [inline] |
Determines if a given number is contained in the index set.
_number | Number to be tested for membership. |
Assingment operator (deep copy).
rhs | Rhs object. |
Definition at line 94 of file examples/code_generation/mpc_mhe/getting_started_export/qpoases/SRC/Indexlist.cpp.
Assingment operator (deep copy).
rhs | Rhs object. |
Assingment operator (deep copy).
rhs | Rhs object. |
returnValue Indexlist::removeNumber | ( | int | removenumber | ) |
Removes number from index list.
removenumber | Number to be removed. |
returnValue Indexlist::removeNumber | ( | int | removenumber | ) |
Removes number from index list.
removenumber | Number to be removed. |
Definition at line 290 of file examples/code_generation/mpc_mhe/getting_started_export/qpoases/SRC/Indexlist.cpp.
returnValue Indexlist::removeNumber | ( | int | removenumber | ) |
Removes number from index list.
removenumber | Number to be removed. |
returnValue Indexlist::swapNumbers | ( | int | number1, |
int | number2 | ||
) |
Swaps two numbers within index list.
number1 | First number for swapping. |
number2 | Second number for swapping. |
returnValue Indexlist::swapNumbers | ( | int | number1, |
int | number2 | ||
) |
Swaps two numbers within index list.
number1 | First number for swapping. |
number2 | Second number for swapping. |
Definition at line 323 of file examples/code_generation/mpc_mhe/getting_started_export/qpoases/SRC/Indexlist.cpp.
returnValue Indexlist::swapNumbers | ( | int | number1, |
int | number2 | ||
) |
Swaps two numbers within index list.
number1 | First number for swapping. |
number2 | Second number for swapping. |
friend class DenseMatrix [friend] |
Definition at line 60 of file external_packages/qpOASES-3.0beta/include/qpOASES/Indexlist.hpp.
friend class SparseMatrix [friend] |
Definition at line 62 of file external_packages/qpOASES-3.0beta/include/qpOASES/Indexlist.hpp.
friend class SymDenseMat [friend] |
Definition at line 61 of file external_packages/qpOASES-3.0beta/include/qpOASES/Indexlist.hpp.
friend class SymSparseMat [friend] |
Definition at line 63 of file external_packages/qpOASES-3.0beta/include/qpOASES/Indexlist.hpp.
int Indexlist::first [protected] |
Physical index of first element.
Definition at line 140 of file examples/code_generation/mpc_mhe/getting_started_export/qpoases/INCLUDE/Indexlist.hpp.
int* Indexlist::iSort [protected] |
Index list to sort vector number
Definition at line 174 of file external_packages/qpOASES-3.0beta/include/qpOASES/Indexlist.hpp.
int Indexlist::last [protected] |
Physical index of last element.
Definition at line 141 of file examples/code_generation/mpc_mhe/getting_started_export/qpoases/INCLUDE/Indexlist.hpp.
int Indexlist::lastusedindex [protected] |
Physical index of last entry in index list.
Definition at line 142 of file examples/code_generation/mpc_mhe/getting_started_export/qpoases/INCLUDE/Indexlist.hpp.
int Indexlist::length [protected] |
Length of index list.
Definition at line 139 of file examples/code_generation/mpc_mhe/getting_started_export/qpoases/INCLUDE/Indexlist.hpp.
int Indexlist::next [protected] |
Array to store physical index of successor.
Definition at line 137 of file examples/code_generation/mpc_mhe/getting_started_export/qpoases/INCLUDE/Indexlist.hpp.
int Indexlist::number [protected] |
Array to store numbers of constraints or bounds.
Definition at line 136 of file examples/code_generation/mpc_mhe/getting_started_export/qpoases/INCLUDE/Indexlist.hpp.
int* Indexlist::number [protected] |
Array to store numbers of constraints or bounds.
Definition at line 173 of file external_packages/qpOASES-3.0beta/include/qpOASES/Indexlist.hpp.
int Indexlist::physicallength [protected] |
Physical length of index list.
Definition at line 143 of file examples/code_generation/mpc_mhe/getting_started_export/qpoases/INCLUDE/Indexlist.hpp.
int Indexlist::previous [protected] |
Array to store physical index of predecossor.
Definition at line 138 of file examples/code_generation/mpc_mhe/getting_started_export/qpoases/INCLUDE/Indexlist.hpp.