Stores and manages index lists. More...
#include <Indexlist.hpp>
Public Member Functions | |
returnValue | addNumber (int addnumber) |
returnValue | addNumber (int addnumber) |
returnValue | addNumber (int addnumber) |
returnValue | addNumber (int_t addnumber) |
int | getIndex (int givennumber) const |
int | getIndex (int givennumber) const |
int | getIndex (int givennumber) const |
int_t | getIndex (int_t givennumber) const |
returnValue | getISortArray (int_t **const iSortArray) const |
int | getLastNumber () const |
int | getLastNumber () const |
int | getLastNumber () const |
int_t | getLastNumber () const |
int | getLength () |
int | getLength () |
int | getLength () const |
int_t | getLength () const |
int | getNumber (int physicalindex) const |
int | getNumber (int physicalindex) const |
int | getNumber (int physicalindex) const |
int_t | getNumber (int_t physicalindex) const |
returnValue | getNumberArray (int *const numberarray) const |
returnValue | getNumberArray (int *const numberarray) const |
returnValue | getNumberArray (int **const numberarray) const |
returnValue | getNumberArray (int_t **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 () | |
Indexlist (int n) | |
Indexlist (int_t n) | |
Indexlist (const Indexlist &rhs) | |
Indexlist (const Indexlist &rhs) | |
returnValue | init () |
returnValue | init () |
returnValue | init (int n=0) |
returnValue | init (int_t n=0) |
BooleanType | isMember (int _number) const |
BooleanType | isMember (int _number) const |
BooleanType | isMember (int _number) const |
BooleanType | isMember (int_t _number) const |
Indexlist & | operator= (const Indexlist &rhs) |
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 | removeNumber (int_t removenumber) |
returnValue | swapNumbers (int number1, int number2) |
returnValue | swapNumbers (int number1, int number2) |
returnValue | swapNumbers (int number1, int number2) |
returnValue | swapNumbers (int_t number1, int_t number2) |
~Indexlist () | |
~Indexlist () | |
~Indexlist () | |
~Indexlist () | |
Public Attributes | |
int | iSort [NVCMAX] |
Protected Member Functions | |
returnValue | clear () |
returnValue | clear () |
returnValue | copy (const Indexlist &rhs) |
returnValue | copy (const Indexlist &rhs) |
int | findInsert (int i) const |
int_t | findInsert (int_t i) const |
Protected Attributes | |
int | first |
int_t | first |
int * | iSort |
int_t * | iSort |
int | last |
int_t | last |
int | lastusedindex |
int_t | lastusedindex |
int | length |
int_t | length |
int | next [INDEXLISTFACTOR *(NVMAX+NCMAX)] |
int | number [INDEXLISTFACTOR *(NVMAX+NCMAX)] |
int * | number |
int_t * | number |
int | physicallength |
int_t | physicallength |
int | previous [INDEXLISTFACTOR *(NVMAX+NCMAX)] |
Friends | |
class | DenseMatrix |
class | SparseMatrix |
class | SparseMatrixRow |
class | SymDenseMat |
class | SymSparseMat |
Stores and manages index lists.
This class manages index lists.
\author Hans Joachim Ferreau \version 1.3embedded \date 2007-2008
This class manages index lists of active/inactive bounds/constraints.
This class manages index lists of active/inactive bounds/constraints.
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.
BEGIN_NAMESPACE_QPOASES Indexlist::Indexlist | ( | ) |
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.
Indexlist::~Indexlist | ( | ) |
Destructor.
Definition at line 86 of file examples/code_generation/mpc_mhe/getting_started_export/qpoases/SRC/Indexlist.cpp.
Indexlist::Indexlist | ( | ) |
Default constructor.
Indexlist::Indexlist | ( | const Indexlist & | rhs | ) |
Copy constructor (deep copy).
rhs | Rhs object. |
Indexlist::~Indexlist | ( | ) |
Destructor.
Indexlist::Indexlist | ( | ) |
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. |
Indexlist::~Indexlist | ( | ) |
Destructor.
Indexlist::Indexlist | ( | ) |
Default constructor.
Indexlist::Indexlist | ( | int_t | n | ) |
Constructor which takes the desired physical length of the index list.
n | Physical length of index list. |
Indexlist::Indexlist | ( | const Indexlist & | rhs | ) |
Copy constructor (deep copy).
rhs | Rhs object. |
Indexlist::~Indexlist | ( | ) |
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::addNumber | ( | int_t | addnumber | ) |
Adds number to index list.
addnumber | Number to be added. |
|
protected |
Frees all allocated memory.
Definition at line 237 of file external_packages/qpOASES-3.0beta/src/Indexlist.cpp.
|
protected |
Frees all allocated memory.
|
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.
|
protected |
Copies all members from given rhs object.
rhs | Rhs object. |
|
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.
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.
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_t 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. |
Determines the index within the index list at which a given number is stored.
givennumber | Number whose index shall be determined. |
returnValue Indexlist::getISortArray | ( | int_t **const | iSortArray | ) | const |
Creates an array of all numbers within the index set in correct order.
iSortArray | Output: iSort Array. |
Definition at line 146 of file external_packages/qpOASES-3.2.0/src/Indexlist.cpp.
|
inline |
Returns last number within the index list.
|
inline |
Returns last number within the index list.
|
inline |
Returns last number within the index list.
|
inline |
Returns last number within the index list.
|
inline |
Returns the current length of the index list.
|
inline |
Returns the current length of the index list.
|
inline |
Returns the current length of the index list.
|
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. |
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.
returnValue Indexlist::getNumberArray | ( | int_t **const | numberarray | ) | const |
Creates an array of all numbers within the index set in correct order.
numberarray | Output: Array of numbers (NULL on error). |
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.
returnValue Indexlist::init | ( | ) |
Pseudo-constructor.
returnValue Indexlist::init | ( | ) |
Pseudo-constructor.
Definition at line 121 of file examples/code_generation/mpc_mhe/getting_started_export/qpoases/SRC/Indexlist.cpp.
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.
returnValue Indexlist::init | ( | int_t | n = 0 | ) |
Initialises index list of desired physical length.
n | Physical length of index list. |
|
inline |
Determines if a given number is contained in the index set.
_number | Number to be tested for membership. |
|
inline |
Determines if a given number is contained in the index set.
_number | Number to be tested for membership. |
|
inline |
Determines if a given number is contained in the index set.
_number | Number to be tested for membership. |
|
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. |
Assingment operator (deep copy).
rhs | Rhs object. |
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::removeNumber | ( | int | removenumber | ) |
Removes number from index list.
removenumber | Number to be removed. |
returnValue Indexlist::removeNumber | ( | int_t | 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. |
returnValue Indexlist::swapNumbers | ( | int_t | number1, |
int_t | number2 | ||
) |
Swaps two numbers within index list.
number1 | First number for swapping. |
number2 | Second number for swapping. |
|
friend |
Definition at line 60 of file external_packages/qpOASES-3.0beta/include/qpOASES/Indexlist.hpp.
|
friend |
Definition at line 62 of file external_packages/qpOASES-3.0beta/include/qpOASES/Indexlist.hpp.
|
friend |
Definition at line 63 of file external_packages/qpOASES-3.2.0/include/qpOASES/Indexlist.hpp.
|
friend |
Definition at line 61 of file external_packages/qpOASES-3.0beta/include/qpOASES/Indexlist.hpp.
|
friend |
Definition at line 63 of file external_packages/qpOASES-3.0beta/include/qpOASES/Indexlist.hpp.
|
protected |
Physical index of first element.
Definition at line 140 of file examples/code_generation/mpc_mhe/getting_started_export/qpoases/INCLUDE/Indexlist.hpp.
|
protected |
Physical index of first element.
Definition at line 184 of file external_packages/qpOASES-3.2.0/include/qpOASES/Indexlist.hpp.
int Indexlist::iSort[NVCMAX] |
Index list to sort vector number
Definition at line 58 of file Indexlist.h.
|
protected |
Index list to sort vector number
Definition at line 174 of file external_packages/qpOASES-3.0beta/include/qpOASES/Indexlist.hpp.
|
protected |
Index list to sort vector number
Definition at line 181 of file external_packages/qpOASES-3.2.0/include/qpOASES/Indexlist.hpp.
|
protected |
Physical index of last element.
Definition at line 141 of file examples/code_generation/mpc_mhe/getting_started_export/qpoases/INCLUDE/Indexlist.hpp.
|
protected |
Physical index of last element.
Definition at line 185 of file external_packages/qpOASES-3.2.0/include/qpOASES/Indexlist.hpp.
|
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.
|
protected |
Physical index of last entry in index list.
Definition at line 186 of file external_packages/qpOASES-3.2.0/include/qpOASES/Indexlist.hpp.
|
protected |
Length of index list.
Definition at line 139 of file examples/code_generation/mpc_mhe/getting_started_export/qpoases/INCLUDE/Indexlist.hpp.
|
protected |
Length of index list.
Definition at line 183 of file external_packages/qpOASES-3.2.0/include/qpOASES/Indexlist.hpp.
|
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.
|
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.
|
protected |
Array to store numbers of constraints or bounds.
Definition at line 173 of file external_packages/qpOASES-3.0beta/include/qpOASES/Indexlist.hpp.
|
protected |
Array to store numbers of constraints or bounds.
Definition at line 180 of file external_packages/qpOASES-3.2.0/include/qpOASES/Indexlist.hpp.
|
protected |
Physical length of index list.
Definition at line 143 of file examples/code_generation/mpc_mhe/getting_started_export/qpoases/INCLUDE/Indexlist.hpp.
|
protected |
Physical length of index list.
Definition at line 187 of file external_packages/qpOASES-3.2.0/include/qpOASES/Indexlist.hpp.
|
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.